Skip to content

Commit 9e400c5

Browse files
committed
fix: Fix deployment workflow attempt 2
1 parent 427144e commit 9e400c5

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
java-version: 11
2121
distribution: corretto
2222
cache: maven
23-
server-id: ossrh # Value of distributionManagement.repository.id field of pom.xml
23+
server-id: central # Value of distributionManagement.repository.id field of pom.xml
2424
server-username: MAVEN_USERNAME
2525
server-password: MAVEN_PASSWORD
2626
settings-path: ${{ github.workspace }} # Location for settings.xml file

pom.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
<distributionManagement>
3535
<snapshotRepository>
3636
<id>central</id>
37-
<url>https://central.sonatype.com/content/repositories/snapshots</url>
37+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
3838
</snapshotRepository>
3939
<repository>
4040
<id>central</id>
41-
<url>https://central.sonatype.com/service/local/staging/deploy/maven2/</url>
41+
<url>https://central.sonatype.com/repository/maven-releases/</url>
4242
</repository>
4343
</distributionManagement>
4444

@@ -381,16 +381,15 @@
381381
</executions>
382382
</plugin>
383383
<plugin>
384-
<groupId>org.sonatype.plugins</groupId>
385-
<artifactId>nexus-staging-maven-plugin</artifactId>
386-
<version>1.6.13</version>
384+
<groupId>org.sonatype.central</groupId>
385+
<artifactId>central-publishing-maven-plugin</artifactId>
386+
<version>0.8.0</version>
387387
<extensions>true</extensions>
388388
<configuration>
389-
<serverId>central</serverId>
390-
<nexusUrl>https://central.sonatype.com/</nexusUrl>
391-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
392-
<connectTimeout>600000</connectTimeout>
393-
<readTimeout>600000</readTimeout>
389+
<publishingServerId>central</publishingServerId>
390+
<deploymentName>github-java-client</deploymentName>
391+
<autoPublish>true</autoPublish>
392+
<waitUntil>published</waitUntil>
394393
</configuration>
395394
</plugin>
396395
</plugins>

0 commit comments

Comments
 (0)