Skip to content

Commit 88bf7da

Browse files
authored
Change OSSRH to Central Portal (#1382)
* Upgrade staging plugin version to 1.7.0 Signed-off-by: JermaineHua <crazyhzm@apache.org> * Change ossrh to central portal Signed-off-by: JermaineHua <crazyhzm@apache.org> --------- Signed-off-by: JermaineHua <crazyhzm@apache.org>
1 parent b316495 commit 88bf7da

2 files changed

Lines changed: 14 additions & 36 deletions

File tree

pom.xml

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<project.build.encoding>UTF-8</project.build.encoding>
4545
<!--maven plugin-->
4646
<maven.staging.plugin>1.7.0</maven.staging.plugin>
47+
<central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version>
4748
<maven.gpg.pluign>1.6</maven.gpg.pluign>
4849
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
4950
</properties>
@@ -90,14 +91,13 @@
9091
<build>
9192
<plugins>
9293
<plugin>
93-
<groupId>org.sonatype.plugins</groupId>
94-
<artifactId>nexus-staging-maven-plugin</artifactId>
95-
<version>${maven.staging.plugin}</version>
94+
<groupId>org.sonatype.central</groupId>
95+
<artifactId>central-publishing-maven-plugin</artifactId>
96+
<version>${central-publishing-maven-plugin.version}</version>
9697
<extensions>true</extensions>
9798
<configuration>
98-
<serverId>ossrh</serverId>
99-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
100-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
99+
<publishingServerId>central</publishingServerId>
100+
<autoPublish>false</autoPublish>
101101
</configuration>
102102
</plugin>
103103
<plugin>
@@ -122,49 +122,25 @@
122122
</plugin>
123123
</plugins>
124124
</build>
125-
<distributionManagement>
126-
<snapshotRepository>
127-
<id>ossrh</id>
128-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
129-
</snapshotRepository>
130-
<repository>
131-
<id>ossrh</id>
132-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
133-
</repository>
134-
</distributionManagement>
135125
</profile>
136126
</profiles>
137127

138128
<repositories>
139-
<repository>
140-
<snapshots>
141-
<enabled>false</enabled>
142-
</snapshots>
143-
<id>release</id>
144-
<url>https://oss.sonatype.org/content/repositories/releases</url>
145-
</repository>
146129
<repository>
147130
<snapshots>
148131
<enabled>true</enabled>
149132
</snapshots>
150133
<id>snapshot</id>
151-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
134+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
152135
</repository>
153136
</repositories>
154137
<pluginRepositories>
155-
<pluginRepository>
156-
<snapshots>
157-
<enabled>false</enabled>
158-
</snapshots>
159-
<id>releases</id>
160-
<url>https://oss.sonatype.org/content/repositories/releases</url>
161-
</pluginRepository>
162138
<pluginRepository>
163139
<snapshots>
164140
<enabled>true</enabled>
165141
</snapshots>
166142
<id>snapshot</id>
167-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
143+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
168144
</pluginRepository>
169145
</pluginRepositories>
170146
</project>

sofa-boot-tests/pom.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,16 @@
6767
<build>
6868
<plugins>
6969
<plugin>
70-
<groupId>org.sonatype.plugins</groupId>
71-
<artifactId>nexus-staging-maven-plugin</artifactId>
72-
<version>${maven.staging.plugin}</version>
70+
<groupId>org.sonatype.central</groupId>
71+
<artifactId>central-publishing-maven-plugin</artifactId>
72+
<version>${central-publishing-maven-plugin.version}</version>
73+
<extensions>true</extensions>
7374
<configuration>
74-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
75+
<skipPublishing>true</skipPublishing>
7576
</configuration>
7677
</plugin>
7778

79+
7880
<plugin>
7981
<groupId>org.apache.maven.plugins</groupId>
8082
<artifactId>maven-javadoc-plugin</artifactId>

0 commit comments

Comments
 (0)