Skip to content

Commit e1fa6ce

Browse files
authored
Deploy: migrating from Legacy OSSRH to Central Portal (#143)
1 parent 03ba11b commit e1fa6ce

File tree

1 file changed

+33
-31
lines changed

1 file changed

+33
-31
lines changed

pom.xml

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,29 @@
7070
<url>https://github.com/OpenIdentityPlatform/commons</url>
7171
</developer>
7272
</developers>
73-
<distributionManagement>
74-
<repository>
75-
<id>ossrh</id>
76-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
77-
</repository>
78-
<snapshotRepository>
79-
<id>ossrh</id>
80-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
81-
</snapshotRepository>
82-
</distributionManagement>
73+
<repositories>
74+
<repository>
75+
<name>Central Portal Snapshots</name>
76+
<id>central-portal-snapshots</id>
77+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
78+
<releases>
79+
<enabled>false</enabled>
80+
</releases>
81+
<snapshots>
82+
<enabled>true</enabled>
83+
</snapshots>
84+
</repository>
85+
</repositories>
86+
<pluginRepositories>
87+
<pluginRepository>
88+
<name>Central Portal Snapshots</name>
89+
<id>central-portal-snapshots</id>
90+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
91+
<snapshots>
92+
<enabled>true</enabled>
93+
</snapshots>
94+
</pluginRepository>
95+
</pluginRepositories>
8396
<modules>
8497
<module>maven-external-dependency-plugin/maven-external-dependency-plugin</module>
8598
<module>build-tools</module>
@@ -1383,27 +1396,16 @@
13831396
<doclint>none</doclint>
13841397
</configuration>
13851398
</plugin>
1386-
<plugin>
1387-
<groupId>org.sonatype.plugins</groupId>
1388-
<artifactId>nexus-staging-maven-plugin</artifactId>
1389-
<version>1.6.12</version>
1390-
<extensions>true</extensions>
1391-
<configuration>
1392-
<serverId>ossrh</serverId>
1393-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
1394-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
1395-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
1396-
<keepStagingRepositoryOnFailure>false</keepStagingRepositoryOnFailure>
1397-
<keepStagingRepositoryOnCloseRuleFailure>false</keepStagingRepositoryOnCloseRuleFailure>
1398-
</configuration>
1399-
<dependencies>
1400-
<dependency>
1401-
<groupId>com.google.guava</groupId>
1402-
<artifactId>guava</artifactId>
1403-
<version>15.0</version>
1404-
</dependency>
1405-
</dependencies>
1406-
</plugin>
1399+
<plugin>
1400+
<groupId>org.sonatype.central</groupId>
1401+
<artifactId>central-publishing-maven-plugin</artifactId>
1402+
<version>0.8.0</version>
1403+
<extensions>true</extensions>
1404+
<configuration>
1405+
<publishingServerId>ossrh</publishingServerId>
1406+
<autoPublish>true</autoPublish>
1407+
</configuration>
1408+
</plugin>
14071409
</plugins>
14081410
</build>
14091411
<profiles>

0 commit comments

Comments
 (0)