Skip to content

Commit b5efa23

Browse files
committed
Migration from OSSRH to Central Portal
see https://central.sonatype.org/publish/publish-portal-maven/
1 parent 793a0dd commit b5efa23

File tree

2 files changed

+11
-30
lines changed

2 files changed

+11
-30
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Building
1515
Deploying
1616
--------
1717

18-
* `mvn deploy -Psonatype-oss-release` will deploy to Sonatype OSS
18+
* `mvn deploy -Psonatype-release` will deploy to Sonatype
1919

2020
Authors
2121
-------

pom.xml

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
</build>
293293
<profiles>
294294
<profile>
295-
<id>sonatype-oss-release</id>
295+
<id>sonatype-release</id>
296296
<build>
297297
<plugins>
298298
<plugin>
@@ -343,36 +343,17 @@
343343
</execution>
344344
</executions>
345345
</plugin>
346+
<plugin>
347+
<groupId>org.sonatype.central</groupId>
348+
<artifactId>central-publishing-maven-plugin</artifactId>
349+
<version>0.8.0</version>
350+
<extensions>true</extensions>
351+
<configuration>
352+
<publishingServerId>central</publishingServerId>
353+
</configuration>
354+
</plugin>
346355
</plugins>
347356
</build>
348357
</profile>
349-
<profile>
350-
<id>staged-releases</id>
351-
<repositories>
352-
<repository>
353-
<id>sonatype-nexus-staging</id>
354-
<name>Nexus Release Repository</name>
355-
<url>https://oss.sonatype.org/content/groups/staging/</url>
356-
<releases>
357-
<enabled>true</enabled>
358-
</releases>
359-
<snapshots>
360-
<enabled>false</enabled>
361-
</snapshots>
362-
</repository>
363-
</repositories>
364-
</profile>
365358
</profiles>
366-
<distributionManagement>
367-
<repository>
368-
<id>sonatype-nexus</id>
369-
<name>oss.sonatype.org Staging Repository</name>
370-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
371-
</repository>
372-
<snapshotRepository>
373-
<id>sonatype-nexus</id>
374-
<name>oss.sonatype.org github Release Repository Snapshot Repository</name>
375-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
376-
</snapshotRepository>
377-
</distributionManagement>
378359
</project>

0 commit comments

Comments
 (0)