Skip to content

Commit a65aa53

Browse files
authored
Migrate publishing from OSSRH to Central Portal (#134)
- use the central-publishing-maven-plugin following https://central.sonatype.org/publish/publish-portal-maven/ Signed-off-by: Laurent Klock <Laurent.Klock@arhs-cube.com>
1 parent a7b876d commit a65aa53

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

pom.xml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,9 @@
3333

3434
<distributionManagement>
3535
<snapshotRepository>
36-
<id>ossrh</id>
37-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
36+
<id>central-sonatype-snapshots</id>
37+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
3838
</snapshotRepository>
39-
<repository>
40-
<id>ossrh</id>
41-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
42-
</repository>
4339
</distributionManagement>
4440

4541
<issueManagement>
@@ -92,6 +88,7 @@
9288
<picocli.version>4.7.6</picocli.version>
9389
<junit.version>5.11.0</junit.version>
9490
<protobuf.version>3.25.8</protobuf.version>
91+
<central-publishing-plugin.version>0.9.0</central-publishing-plugin.version>
9592
</properties>
9693

9794
<build>
@@ -297,6 +294,16 @@
297294
<autoReleaseAfterClose>true</autoReleaseAfterClose>
298295
</configuration>
299296
</plugin>
297+
<plugin>
298+
<groupId>org.sonatype.central</groupId>
299+
<artifactId>central-publishing-maven-plugin</artifactId>
300+
<version>${central-publishing-plugin.version}</version>
301+
<extensions>true</extensions>
302+
<configuration>
303+
<publishingServerId>central</publishingServerId>
304+
<deploymentName>Crawler-Commons URLFrontier ${project.version}</deploymentName>
305+
</configuration>
306+
</plugin>
300307
</plugins>
301308
</build>
302309
</profile>

0 commit comments

Comments
 (0)