Skip to content

Commit ff66a47

Browse files
chbloemerclaude
andcommitted
Migrate to new Maven Sonatype Central Repository
Remove deprecated Sonatype OSS parent and configure new central-publishing-maven-plugin for Maven Central publishing. Update distribution management URLs to point to central.sonatype.com. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 463e6ef commit ff66a47

1 file changed

Lines changed: 31 additions & 6 deletions

File tree

pom.xml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
<packaging>jar</packaging>
88
<name>pug4j</name>
99
<description>Java implementation of the pug templating language</description>
10-
<parent>
11-
<groupId>org.sonatype.oss</groupId>
12-
<artifactId>oss-parent</artifactId>
13-
<version>9</version>
14-
</parent>
1510
<url>https://github.com/neuland/pug4j</url>
1611

1712
<issueManagement>
@@ -56,6 +51,27 @@
5651
</developer>
5752
</developers>
5853

54+
<distributionManagement>
55+
<snapshotRepository>
56+
<id>central</id>
57+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
58+
</snapshotRepository>
59+
<repository>
60+
<id>central</id>
61+
<url>https://central.sonatype.com</url>
62+
</repository>
63+
</distributionManagement>
64+
65+
<repositories>
66+
<repository>
67+
<id>central-portal-snapshots</id>
68+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
69+
<snapshots>
70+
<enabled>true</enabled>
71+
</snapshots>
72+
</repository>
73+
</repositories>
74+
5975
<properties>
6076
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6177
<project.scm.id>git@github.com</project.scm.id>
@@ -114,7 +130,7 @@
114130
<configuration>
115131
<mavenExecutorId>forked-path</mavenExecutorId>
116132
<useReleaseProfile>false</useReleaseProfile>
117-
<arguments>${arguments} -Psonatype-oss-release</arguments>
133+
<arguments>${arguments} -Prelease-sign-artifacts</arguments>
118134
</configuration>
119135
</plugin>
120136
</plugins>
@@ -227,6 +243,15 @@
227243
<artifactId>maven-site-plugin</artifactId>
228244
<version>3.21.0</version>
229245
</plugin>
246+
<plugin>
247+
<groupId>org.sonatype.central</groupId>
248+
<artifactId>central-publishing-maven-plugin</artifactId>
249+
<version>0.9.0</version>
250+
<extensions>true</extensions>
251+
<configuration>
252+
<publishingServerId>central</publishingServerId>
253+
</configuration>
254+
</plugin>
230255
</plugins>
231256
</build>
232257

0 commit comments

Comments
 (0)