Skip to content

Commit 76611e2

Browse files
authored
Deploy: migrating from Legacy OSSRH to Central Portal (#104)
1 parent 9d5e8ea commit 76611e2

File tree

1 file changed

+25
-31
lines changed

1 file changed

+25
-31
lines changed

pom.xml

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,16 @@
8383
</distributionManagement>
8484
<repositories>
8585
<repository>
86-
<id>ossrh-snapshots</id>
87-
<name>Sonatype OSS Repository</name>
88-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
89-
<snapshots><enabled>true</enabled></snapshots>
90-
</repository>
86+
<name>Central Portal Snapshots</name>
87+
<id>central-portal-snapshots</id>
88+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
89+
<releases>
90+
<enabled>false</enabled>
91+
</releases>
92+
<snapshots>
93+
<enabled>true</enabled>
94+
</snapshots>
95+
</repository>
9196
<repository>
9297
<id>jboss-nexus-public</id>
9398
<name>JBoss Nexus Public Repository</name>
@@ -96,13 +101,13 @@
96101
</repositories>
97102
<pluginRepositories>
98103
<pluginRepository>
99-
<id>ossrh-snapshots</id>
100-
<name>Sonatype OSS Repository</name>
101-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
102-
<snapshots>
103-
<enabled>true</enabled>
104-
</snapshots>
105-
</pluginRepository>
104+
<name>Central Portal Snapshots</name>
105+
<id>central-portal-snapshots</id>
106+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
107+
<snapshots>
108+
<enabled>true</enabled>
109+
</snapshots>
110+
</pluginRepository>
106111
</pluginRepositories>
107112

108113
<mailingLists>
@@ -737,25 +742,14 @@
737742
</executions>
738743
</plugin>
739744
<plugin>
740-
<groupId>org.sonatype.plugins</groupId>
741-
<artifactId>nexus-staging-maven-plugin</artifactId>
742-
<version>1.6.13</version>
743-
<extensions>true</extensions>
744-
<configuration>
745-
<serverId>ossrh</serverId>
746-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
747-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
748-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
749-
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
750-
<keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure>
751-
</configuration>
752-
<dependencies>
753-
<dependency>
754-
<groupId>com.google.guava</groupId>
755-
<artifactId>guava</artifactId>
756-
<version>15.0</version>
757-
</dependency>
758-
</dependencies>
745+
<groupId>org.sonatype.central</groupId>
746+
<artifactId>central-publishing-maven-plugin</artifactId>
747+
<version>0.8.0</version>
748+
<extensions>true</extensions>
749+
<configuration>
750+
<publishingServerId>ossrh</publishingServerId>
751+
<autoPublish>true</autoPublish>
752+
</configuration>
759753
</plugin>
760754
</plugins>
761755
<pluginManagement>

0 commit comments

Comments
 (0)