Skip to content

Commit c17f7ea

Browse files
using correct maven central as value in pom (#2504)
Update pom.xml with correct central url and add distributionManagement
1 parent e225eb5 commit c17f7ea

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/maven-push.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ jobs:
4444
with:
4545
servers: |
4646
[{
47-
"name": "Central Portal Snapshots",
4847
"id": "central-portal-snapshots",
49-
"url": "https://central.sonatype.com/repository/maven-snapshots/",
50-
"snapshots": {"enabled":true},
5148
"username": "${{ secrets.SONATYPE_BOT_USERNAME }}",
5249
"password": "${{ secrets.SONATYPE_BOT_TOKEN }}"
5350
}]

pom.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,24 @@
4040
<tag>indy-parent-3.3.7</tag>
4141
</scm>
4242

43+
<distributionManagement>
44+
<snapshotRepository>
45+
<uniqueVersion>true</uniqueVersion>
46+
<id>central-portal-snapshots</id>
47+
<name>Central Portal Snapshots</name>
48+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
49+
<layout>default</layout>
50+
</snapshotRepository>
51+
</distributionManagement>
52+
4353
<repositories>
4454
<repository>
45-
<id>sonatype-snapshots</id>
46-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
55+
<name>Central Portal Snapshots</name>
56+
<id>central-portal-snapshots</id>
57+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
58+
<releases>
59+
<enabled>false</enabled>
60+
</releases>
4761
<snapshots>
4862
<enabled>true</enabled>
4963
</snapshots>

0 commit comments

Comments
 (0)