Skip to content

Commit 860bea4

Browse files
authored
Deploy: migrating from Legacy OSSRH to Central Portal (#63)
1 parent bb40661 commit 860bea4

File tree

1 file changed

+30
-53
lines changed

1 file changed

+30
-53
lines changed

pom.xml

Lines changed: 30 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -83,40 +83,28 @@
8383
<tag>HEAD</tag>
8484
</scm>
8585
<repositories>
86-
<repository>
87-
<id>ossrh-snapshots</id>
88-
<name>Sonatype OSS Repository</name>
89-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
90-
<snapshots><enabled>true</enabled></snapshots>
91-
</repository>
92-
<repository>
93-
<id>jboss-nexus-public</id>
94-
<name>JBoss Nexus Public Repository</name>
95-
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
96-
</repository>
97-
</repositories>
98-
<pluginRepositories>
99-
<pluginRepository>
100-
<id>ossrh-snapshots</id>
101-
<name>Sonatype OSS Repository</name>
102-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
103-
<snapshots>
104-
<enabled>true</enabled>
105-
</snapshots>
106-
</pluginRepository>
107-
</pluginRepositories>
108-
<distributionManagement>
109-
<repository>
110-
<id>ossrh</id>
111-
<name>Sonatype OSS Repository</name>
112-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
113-
</repository>
114-
<snapshotRepository>
115-
<id>ossrh</id>
116-
<name>Sonatype OSS Repository</name>
117-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
118-
</snapshotRepository>
119-
</distributionManagement>
86+
<repository>
87+
<name>Central Portal Snapshots</name>
88+
<id>central-portal-snapshots</id>
89+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
90+
<releases>
91+
<enabled>false</enabled>
92+
</releases>
93+
<snapshots>
94+
<enabled>true</enabled>
95+
</snapshots>
96+
</repository>
97+
</repositories>
98+
<pluginRepositories>
99+
<pluginRepository>
100+
<name>Central Portal Snapshots</name>
101+
<id>central-portal-snapshots</id>
102+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
103+
<snapshots>
104+
<enabled>true</enabled>
105+
</snapshots>
106+
</pluginRepository>
107+
</pluginRepositories>
120108
<modules>
121109
<module>OpenICF-dbcommon</module>
122110
<module>OpenICF-java-framework</module>
@@ -346,25 +334,14 @@
346334
</executions>
347335
</plugin>
348336
<plugin>
349-
<groupId>org.sonatype.plugins</groupId>
350-
<artifactId>nexus-staging-maven-plugin</artifactId>
351-
<version>1.6.13</version>
352-
<extensions>true</extensions>
353-
<configuration>
354-
<serverId>ossrh</serverId>
355-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
356-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
357-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
358-
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
359-
<keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure>
360-
</configuration>
361-
<dependencies>
362-
<dependency>
363-
<groupId>com.google.guava</groupId>
364-
<artifactId>guava</artifactId>
365-
<version>15.0</version>
366-
</dependency>
367-
</dependencies>
337+
<groupId>org.sonatype.central</groupId>
338+
<artifactId>central-publishing-maven-plugin</artifactId>
339+
<version>0.8.0</version>
340+
<extensions>true</extensions>
341+
<configuration>
342+
<publishingServerId>ossrh</publishingServerId>
343+
<autoPublish>true</autoPublish>
344+
</configuration>
368345
</plugin>
369346
<plugin>
370347
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)