Skip to content

Commit 99e7b56

Browse files
committed
Publish SNAPSHOTs to JBoss Nexus
This should avoid rate limits imposed by Sonatype
1 parent 26c975f commit 99e7b56

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

.github/mvn-settings.xml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,11 @@
3232
</profile>
3333
<profile>
3434
<id>snapshots</id>
35-
<properties>
36-
<!-- https://docs.aws.amazon.com/codeartifact/latest/ug/maven-troubleshooting.html#disable-parallel-puts -->
37-
<aether.connector.basic.parallelPut>false</aether.connector.basic.parallelPut>
38-
</properties>
3935
<repositories>
4036
<repository>
41-
<id>sonatype-maven-central</id>
42-
<name>Sonatype Maven Central Snapshots</name>
43-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
37+
<id>jboss-community</id>
38+
<name>JBoss Community Snapshots</name>
39+
<url>https://repository.jboss.org/nexus/repository/quarkus-snapshots/</url>
4440
<layout>default</layout>
4541
<releases>
4642
<enabled>false</enabled>
@@ -54,9 +50,9 @@
5450
</repositories>
5551
<pluginRepositories>
5652
<pluginRepository>
57-
<id>sonatype-maven-central</id>
58-
<name>Sonatype Maven Central Snapshots</name>
59-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
53+
<id>jboss-community</id>
54+
<name>JBoss Community Snapshots</name>
55+
<url>https://repository.jboss.org/nexus/repository/quarkus-snapshots/</url>
6056
<layout>default</layout>
6157
<releases>
6258
<enabled>false</enabled>

.github/release-settings.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
<njord.snapshotUrl>njord:template:snapshot-sca</njord.snapshotUrl>
1717
</configuration>
1818
</server>
19+
<server>
20+
<id>quarkus-publish-snapshots</id>
21+
<username>${env.JBOSS_NEXUS_USERNAME}</username>
22+
<password>${env.JBOSS_NEXUS_PASSWORD}</password>
23+
<configuration>
24+
<njord.publisher>sonatype-cp</njord.publisher>
25+
<njord.releaseUrl>njord:template:release-sca</njord.releaseUrl>
26+
<njord.snapshotUrl>njord:template:snapshot-sca</njord.snapshotUrl>
27+
</configuration>
28+
</server>
1929
</servers>
2030

2131
<!-- Enable Google mirror to avoid hammering Maven Central -->

.github/workflows/deploy-snapshots.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
5454
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
5555
run: |
56-
./mvnw -e -B --settings .github/release-settings.xml \
56+
./mvnw -ntp -e -B --settings .github/release-settings.xml \
5757
-Dnjord.autoPublish \
5858
-DskipTests -DskipITs -Dno-format -Dinvoker.skip=true \
5959
-Dno-test-modules \

independent-projects/parent/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120
<url>https://repo.maven.apache.org/maven2</url>
121121
</repository>
122122
<snapshotRepository>
123-
<id>quarkus-publish</id>
123+
<id>quarkus-publish-snapshots</id>
124124
<name>Quarkus Snapshots</name>
125-
<url>https://central.sonatype.com/repository/maven-snapshots</url>
125+
<url>https://repository.jboss.org/nexus/repository/quarkus-snapshots/</url>
126126
</snapshotRepository>
127127
</distributionManagement>
128128

0 commit comments

Comments
 (0)