Skip to content

Commit 8eb051e

Browse files
lubberlandwanglu14
andauthored
使用central.sonatype.com (#107)
* fix * fix * fix * fix * fix --------- Co-authored-by: wanglu14 <wanglu14@staff.weibo.com>
1 parent dbba958 commit 8eb051e

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Build and analyze
3434
env:
3535
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
36-
run: mvn -B clean javadoc:javadoc clean verify -P coverage
36+
run: mvn -B clean javadoc:javadoc clean verify -P coverage
3737
if: env.SONAR_TOKEN == ''
3838
- name: Build and analyze with sonar
3939
env:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
distribution: 'temurin'
3434
java-version: 17
35-
server-id: ossrh
35+
server-id: central
3636
cache: 'maven'
3737
server-username: MAVEN_USERNAME
3838
server-password: MAVEN_CENTRAL_TOKEN

pom.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -712,12 +712,12 @@
712712
</dependencies>
713713
<distributionManagement>
714714
<snapshotRepository>
715-
<id>ossrh</id>
716-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
715+
<id>central</id>
716+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
717717
</snapshotRepository>
718718
<repository>
719-
<id>ossrh</id>
720-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
719+
<id>central</id>
720+
<url>https://central.sonatype.com/</url>
721721
</repository>
722722
</distributionManagement>
723723
<build>
@@ -736,14 +736,13 @@
736736
</resources>
737737
<plugins>
738738
<plugin>
739-
<groupId>org.sonatype.plugins</groupId>
740-
<artifactId>nexus-staging-maven-plugin</artifactId>
741-
<version>1.6.13</version>
739+
<groupId>org.sonatype.central</groupId>
740+
<artifactId>central-publishing-maven-plugin</artifactId>
741+
<version>0.5.0</version>
742742
<extensions>true</extensions>
743743
<configuration>
744-
<serverId>ossrh</serverId>
745-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
746-
<skipLocalStaging>true</skipLocalStaging>
744+
<publishingServerId>central</publishingServerId>
745+
<tokenAuth>true</tokenAuth>
747746
</configuration>
748747
</plugin>
749748
<plugin>

0 commit comments

Comments
 (0)