Skip to content

Commit d59d70e

Browse files
committed
Update server id to fix maven publish error
1 parent 0829a4f commit d59d70e

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

.github/workflows/pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
java-version: '8'
2626
distribution: 'adopt'
2727
cache: 'maven'
28-
server-id: ossrh
28+
server-id: central
2929
server-username: MAVEN_USERNAME
3030
server-password: MAVEN_PASSWORD
3131
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
java-version: '8'
6666
distribution: 'adopt'
6767
cache: 'maven'
68-
server-id: ossrh
68+
server-id: central
6969
server-username: MAVEN_USERNAME
7070
server-password: MAVEN_PASSWORD
7171
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

pom.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -301,17 +301,4 @@
301301
</profile>
302302
</profiles>
303303

304-
<repositories>
305-
<repository>
306-
<id>oss.sonatype.org-snapshot</id>
307-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
308-
<releases>
309-
<enabled>false</enabled>
310-
</releases>
311-
<snapshots>
312-
<enabled>true</enabled>
313-
</snapshots>
314-
</repository>
315-
</repositories>
316-
317304
</project>

0 commit comments

Comments
 (0)