Skip to content

Commit 5866843

Browse files
committed
build(pom): 更新 Maven 配置以适配 Maven Central 新版发布流程
- 替换 nexus-staging-maven-plugin 为 central-publishing-maven-plugin - 更新插件配置以适应新的发布流程
1 parent 740f3f2 commit 5866843

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

pom.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@
208208
</plugin>
209209

210210
<plugin>
211-
<groupId>org.sonatype.plugins</groupId>
212-
<artifactId>nexus-staging-maven-plugin</artifactId>
213-
<version>1.7.0</version>
211+
<groupId>org.sonatype.central</groupId>
212+
<artifactId>central-publishing-maven-plugin</artifactId>
213+
<version>0.8.0</version>
214214
<extensions>true</extensions>
215215
<configuration>
216-
<serverId>ossrh</serverId>
217-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
218-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
216+
<publishingServerId>central</publishingServerId>
217+
<autoPublish>true</autoPublish>
218+
<waitUntil>published</waitUntil>
219219
</configuration>
220220
</plugin>
221221

@@ -329,7 +329,6 @@
329329
</executions>
330330
</plugin>
331331

332-
<!--
333332
<plugin>
334333
<groupId>org.apache.maven.plugins</groupId>
335334
<artifactId>maven-javadoc-plugin</artifactId>
@@ -349,7 +348,6 @@
349348
</execution>
350349
</executions>
351350
</plugin>
352-
-->
353351

354352
</plugins>
355353
</build>

0 commit comments

Comments
 (0)