Skip to content

Commit

Permalink
Check Maven Central before Apache-specific repositories
Browse files Browse the repository at this point in the history
GitHub Actions builds are hitting the rule from
https://infra.apache.org/infra-ban.html that disallows
excessive 404's on repository.apache.org, causing them to get banned.

This change should make various builds check Maven Central before
checking `repository.apache.org`, which hopefully should help.
  • Loading branch information
raboof committed Dec 20, 2024
1 parent bc20d5d commit a8e0bee
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 16 deletions.
5 changes: 5 additions & 0 deletions packages/dev-deployment-kogito-quarkus-blank-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@
</plugins>
</build>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
<repository>
<id>apache.snapshots</id>
<name>Apache Snapshot Repository</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func manipulatePomToKogito(filename string, cfg CreateQuarkusProjectConfig) erro

//add apache repository after profiles declaration
var repositories = []Repository{
{Id: "central", Name: "Central Repository", Url: "https://repo.maven.apache.org/maven2"},
{Id: "apache-public-repository-group", Name: "Apache Public Repository Group", Url: "https://repository.apache.org/content/groups/public/"},
{Id: "apache-snapshot-repository-group", Name: "Apache Snapshot Repository Group", Url: "https://repository.apache.org/content/groups/snapshots/"},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@
</profile>
</profiles>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
<repository>
<id>apache-public-repository-group</id>
<name>Apache Public Repository Group</name>
Expand Down
16 changes: 8 additions & 8 deletions packages/maven-base/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
</property>
</activation>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>apache.snapshots</id>
<name>Apache Snapshot Repository</name>
Expand All @@ -43,14 +51,6 @@
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>apache-public-repository-group</id>
<name>Apache Public Repository Group</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>kie-tools--maven-m2-repo-via-http</id>
<name>KIE Tools :: Maven M2 Repo via HTTP</name>
Expand Down Expand Up @@ -54,14 +62,6 @@
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>apache-public-repository-group</id>
<name>Apache Public Repository Group</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
<profile>
<id>kogito-images</id>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>apache-public-repository-group</id>
<name>Apache Public Repository Group</name>
Expand Down
5 changes: 5 additions & 0 deletions packages/stunner-editors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@
</properties>

<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
<repository>
<!-- EXCLUSIVELY FOR `org.kogito:gwt-jsonix-schema-compiler:jar:1.3.0` -->
<id>jboss</id>
Expand Down

0 comments on commit a8e0bee

Please sign in to comment.