Skip to content

Commit d63c3d4

Browse files
authored
Deploy: migrating from Legacy OSSRH to Central Portal (#875)
1 parent aa86c3c commit d63c3d4

File tree

1 file changed

+23
-44
lines changed

1 file changed

+23
-44
lines changed

pom.xml

Lines changed: 23 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -267,25 +267,14 @@
267267
</executions>
268268
</plugin>
269269
<plugin>
270-
<groupId>org.sonatype.plugins</groupId>
271-
<artifactId>nexus-staging-maven-plugin</artifactId>
272-
<version>1.7.0</version>
273-
<extensions>true</extensions>
274-
<configuration>
275-
<serverId>ossrh</serverId>
276-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
277-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
278-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
279-
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
280-
<keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure>
281-
</configuration>
282-
<dependencies>
283-
<dependency>
284-
<groupId>com.google.guava</groupId>
285-
<artifactId>guava</artifactId>
286-
<version>15.0</version>
287-
</dependency>
288-
</dependencies>
270+
<groupId>org.sonatype.central</groupId>
271+
<artifactId>central-publishing-maven-plugin</artifactId>
272+
<version>0.8.0</version>
273+
<extensions>true</extensions>
274+
<configuration>
275+
<publishingServerId>ossrh</publishingServerId>
276+
<autoPublish>true</autoPublish>
277+
</configuration>
289278
</plugin>
290279
</plugins>
291280
</build>
@@ -392,38 +381,28 @@
392381
</mailingLists>
393382
<!-- Maven Repositories -->
394383
<repositories>
395-
<repository>
396-
<id>ossrh-snapshots</id>
397-
<name>Sonatype OSS Repository</name>
398-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
399-
<snapshots>
400-
<enabled>true</enabled>
401-
</snapshots>
402-
</repository>
403-
</repositories>
384+
<repository>
385+
<name>Central Portal Snapshots</name>
386+
<id>central-portal-snapshots</id>
387+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
388+
<releases>
389+
<enabled>false</enabled>
390+
</releases>
391+
<snapshots>
392+
<enabled>true</enabled>
393+
</snapshots>
394+
</repository>
395+
</repositories>
404396
<pluginRepositories>
405397
<pluginRepository>
406-
<id>ossrh-snapshots</id>
407-
<name>Sonatype OSS Repository</name>
408-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
398+
<name>Central Portal Snapshots</name>
399+
<id>central-portal-snapshots</id>
400+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
409401
<snapshots>
410402
<enabled>true</enabled>
411403
</snapshots>
412404
</pluginRepository>
413405
</pluginRepositories>
414-
415-
<distributionManagement>
416-
<repository>
417-
<id>ossrh</id>
418-
<name>Sonatype OSS Repository</name>
419-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
420-
</repository>
421-
<snapshotRepository>
422-
<id>ossrh</id>
423-
<name>Sonatype OSS Repository</name>
424-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
425-
</snapshotRepository>
426-
</distributionManagement>
427406
<!-- Source Control -->
428407
<scm>
429408
<connection>scm:git:https://github.com/OpenIdentityPlatform/OpenAM.git</connection>

0 commit comments

Comments
 (0)