|
60 | 60 | <maven-source-plugin.version>3.1.0</maven-source-plugin.version> |
61 | 61 | <maven-javadoc-plugin.version>3.5.0</maven-javadoc-plugin.version> |
62 | 62 | <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> |
63 | | - <nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version> |
64 | 63 | <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version> |
| 64 | + <central-publishing-maven-plugin.version>0.9.0</central-publishing-maven-plugin.version> |
65 | 65 |
|
66 | 66 | <revision>0.1.1</revision> |
67 | 67 | </properties> |
68 | 68 |
|
69 | | - <!--发布仓库的定义--> |
| 69 | + <!-- 发布配置 --> |
70 | 70 | <distributionManagement> |
71 | 71 | <snapshotRepository> |
72 | 72 | <id>ossrh</id> |
73 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 73 | + <name>OSS Sonatype Snapshots</name> |
| 74 | + <url>https://central.sonatype.com/content/repositories/snapshots</url> |
74 | 75 | </snapshotRepository> |
75 | 76 | <repository> |
76 | 77 | <id>ossrh</id> |
77 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 78 | + <name>OSS Sonatype Releases</name> |
| 79 | + <url>https://central.sonatype.com/content/repositories/releases</url> |
78 | 80 | </repository> |
79 | 81 | </distributionManagement> |
80 | 82 |
|
|
87 | 89 | <enabled>false</enabled> |
88 | 90 | </snapshots> |
89 | 91 | </repository> |
90 | | - <repository> |
91 | | - <id>sonatype-nexus-snapshots</id> |
92 | | - <name>Sonatype Nexus Snapshots</name> |
93 | | - <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
94 | | - <snapshots> |
95 | | - <enabled>true</enabled> |
96 | | - </snapshots> |
97 | | - </repository> |
98 | 92 | </repositories> |
99 | 93 |
|
100 | 94 | <pluginRepositories> |
|
187 | 181 | </plugin> |
188 | 182 | <!--上传jar包插件--> |
189 | 183 | <plugin> |
190 | | - <groupId>org.sonatype.plugins</groupId> |
191 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
192 | | - <version>${nexus-staging-maven-plugin.version}</version> |
| 184 | + <groupId>org.sonatype.central</groupId> |
| 185 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 186 | + <version>${central-publishing-maven-plugin.version}</version> |
193 | 187 | <extensions>true</extensions> |
194 | 188 | <configuration> |
195 | | - <serverId>ossrh</serverId> |
196 | | - <nexusUrl>https://ossrh-staging-api.central.sonatype.com</nexusUrl> |
197 | | - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
| 189 | + <publishingServerId>ossrh</publishingServerId> |
198 | 190 | </configuration> |
199 | 191 | </plugin> |
200 | 192 | <plugin> |
|
275 | 267 | </plugin> |
276 | 268 | <!-- 发布包到nexus插件--> |
277 | 269 | <plugin> |
278 | | - <groupId>org.sonatype.plugins</groupId> |
279 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 270 | + <groupId>org.sonatype.central</groupId> |
| 271 | + <artifactId>central-publishing-maven-plugin</artifactId> |
280 | 272 | </plugin> |
281 | 273 | </plugins> |
282 | 274 | </build> |
|
0 commit comments