This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new a05100c44e1 kie-issues#1750: Try Maven Central before hitting
`repository.apache.org` (#2822)
a05100c44e1 is described below
commit a05100c44e14b3097b42007085811b450e5f5bca
Author: Arnout Engelen <[email protected]>
AuthorDate: Tue Mar 18 12:39:44 2025 +0100
kie-issues#1750: Try Maven Central before hitting `repository.apache.org`
(#2822)
---
.../kn-plugin-workflow/pkg/command/quarkus/quarkus_project.go | 1 +
.../command/quarkus/testdata/pom1-expected.xml_no_auto_formatting | 5 +++++
.../resources/modules/kogito-maven/common/maven/settings.xml | 8 ++++++++
3 files changed, 14 insertions(+)
diff --git a/packages/kn-plugin-workflow/pkg/command/quarkus/quarkus_project.go
b/packages/kn-plugin-workflow/pkg/command/quarkus/quarkus_project.go
index 8d95035ea5b..cdc5c8bf068 100644
--- a/packages/kn-plugin-workflow/pkg/command/quarkus/quarkus_project.go
+++ b/packages/kn-plugin-workflow/pkg/command/quarkus/quarkus_project.go
@@ -176,6 +176,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/"},
}
diff --git
a/packages/kn-plugin-workflow/pkg/command/quarkus/testdata/pom1-expected.xml_no_auto_formatting
b/packages/kn-plugin-workflow/pkg/command/quarkus/testdata/pom1-expected.xml_no_auto_formatting
index 0efd07e2acf..d70abb8ab8e 100644
---
a/packages/kn-plugin-workflow/pkg/command/quarkus/testdata/pom1-expected.xml_no_auto_formatting
+++
b/packages/kn-plugin-workflow/pkg/command/quarkus/testdata/pom1-expected.xml_no_auto_formatting
@@ -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>
diff --git
a/packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/settings.xml
b/packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/settings.xml
index eae20db74b4..0321d0c5b2f 100644
---
a/packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/settings.xml
+++
b/packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/settings.xml
@@ -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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]