Skip to content

Commit 170fede

Browse files
authored
Deploy: migrating from Legacy OSSRH to Central Portal (#115)
1 parent d4800f0 commit 170fede

File tree

1 file changed

+23
-43
lines changed

1 file changed

+23
-43
lines changed

pom.xml

Lines changed: 23 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -102,37 +102,28 @@
102102
</developer>
103103
</developers>
104104
<repositories>
105-
<repository>
106-
<id>ossrh-snapshots</id>
107-
<name>Sonatype OSS Repository</name>
108-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
109-
<snapshots>
110-
<enabled>true</enabled>
111-
</snapshots>
112-
</repository>
113-
</repositories>
105+
<repository>
106+
<name>Central Portal Snapshots</name>
107+
<id>central-portal-snapshots</id>
108+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
109+
<releases>
110+
<enabled>false</enabled>
111+
</releases>
112+
<snapshots>
113+
<enabled>true</enabled>
114+
</snapshots>
115+
</repository>
116+
</repositories>
114117
<pluginRepositories>
115118
<pluginRepository>
116-
<id>ossrh-snapshots</id>
117-
<name>Sonatype OSS Repository</name>
118-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
119+
<name>Central Portal Snapshots</name>
120+
<id>central-portal-snapshots</id>
121+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
119122
<snapshots>
120123
<enabled>true</enabled>
121124
</snapshots>
122125
</pluginRepository>
123126
</pluginRepositories>
124-
<distributionManagement>
125-
<repository>
126-
<id>ossrh</id>
127-
<name>Sonatype OSS Repository</name>
128-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
129-
</repository>
130-
<snapshotRepository>
131-
<id>ossrh</id>
132-
<name>Sonatype OSS Repository</name>
133-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
134-
</snapshotRepository>
135-
</distributionManagement>
136127
<!-- Source Control -->
137128
<scm>
138129
<connection>scm:git:https://github.com/OpenIdentityPlatform/OpenIG.git</connection>
@@ -877,25 +868,14 @@
877868
</configuration>
878869
</plugin>
879870
<plugin>
880-
<groupId>org.sonatype.plugins</groupId>
881-
<artifactId>nexus-staging-maven-plugin</artifactId>
882-
<version>1.7.0</version>
883-
<extensions>true</extensions>
884-
<configuration>
885-
<serverId>ossrh</serverId>
886-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
887-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
888-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
889-
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
890-
<keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure>
891-
</configuration>
892-
<dependencies>
893-
<dependency>
894-
<groupId>com.google.guava</groupId>
895-
<artifactId>guava</artifactId>
896-
<version>15.0</version>
897-
</dependency>
898-
</dependencies>
871+
<groupId>org.sonatype.central</groupId>
872+
<artifactId>central-publishing-maven-plugin</artifactId>
873+
<version>0.8.0</version>
874+
<extensions>true</extensions>
875+
<configuration>
876+
<publishingServerId>ossrh</publishingServerId>
877+
<autoPublish>true</autoPublish>
878+
</configuration>
899879
</plugin>
900880
</plugins>
901881
<pluginManagement>

0 commit comments

Comments
 (0)