Skip to content

Commit e366852

Browse files
aksOpsclaude
andcommitted
fix: switch Maven Central publishing from OSSRH to Central Portal
Replace old s01.oss.sonatype.org OSSRH endpoints (402 Payment Required) with central-publishing-maven-plugin v0.10.0 for the new Central Portal (central.sonatype.com). Remove distributionManagement section and nexus-staging-maven-plugin from release profile. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent edd7cbd commit e366852

2 files changed

Lines changed: 12 additions & 23 deletions

File tree

.github/workflows/beta-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Build and test
4949
run: mvn clean verify -B
5050

51-
- name: Deploy to Maven Central (OSSRH)
51+
- name: Deploy to Maven Central
5252
env:
5353
MAVEN_USERNAME: ${{ secrets.OSS_NEXUS_USER }}
5454
MAVEN_PASSWORD: ${{ secrets.OSS_NEXUS_PASS }}

pom.xml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,6 @@
134134
<url>https://github.com/RandomCodeSpace/code-iq/tree/java</url>
135135
</scm>
136136

137-
<distributionManagement>
138-
<snapshotRepository>
139-
<id>central</id>
140-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
141-
</snapshotRepository>
142-
<repository>
143-
<id>central</id>
144-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
145-
</repository>
146-
</distributionManagement>
147-
148137
<build>
149138
<plugins>
150139
<plugin>
@@ -269,6 +258,17 @@
269258
<configLocation>google_checks.xml</configLocation>
270259
</configuration>
271260
</plugin>
261+
262+
<plugin>
263+
<groupId>org.sonatype.central</groupId>
264+
<artifactId>central-publishing-maven-plugin</artifactId>
265+
<version>0.10.0</version>
266+
<extensions>true</extensions>
267+
<configuration>
268+
<publishingServerId>central</publishingServerId>
269+
<autoPublish>true</autoPublish>
270+
</configuration>
271+
</plugin>
272272
</plugins>
273273
</build>
274274

@@ -315,17 +315,6 @@
315315
</execution>
316316
</executions>
317317
</plugin>
318-
<plugin>
319-
<groupId>org.sonatype.plugins</groupId>
320-
<artifactId>nexus-staging-maven-plugin</artifactId>
321-
<version>1.7.0</version>
322-
<extensions>true</extensions>
323-
<configuration>
324-
<serverId>central</serverId>
325-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
326-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
327-
</configuration>
328-
</plugin>
329318
</plugins>
330319
</build>
331320
</profile>

0 commit comments

Comments
 (0)