This is an automated email from the ASF dual-hosted git repository.

ricardozanini pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-serverless-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new a908894d [kie-issues#628] Change JBoss Nexus to Apache Nexus. (#279)
a908894d is described below

commit a908894d550e2a882fedc78acd0727727a6674b2
Author: Tibor Zimányi <[email protected]>
AuthorDate: Fri Oct 13 15:59:57 2023 +0200

    [kie-issues#628] Change JBoss Nexus to Apache Nexus. (#279)
---
 bddframework/pkg/config/config.go   |  2 +-
 bddframework/pkg/framework/maven.go | 10 +++++-----
 hack/run-tests.sh                   |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/bddframework/pkg/config/config.go 
b/bddframework/pkg/config/config.go
index 62c9669e..d8d64b95 100644
--- a/bddframework/pkg/config/config.go
+++ b/bddframework/pkg/config/config.go
@@ -165,7 +165,7 @@ func BindFlags(set *flag.FlagSet) {
 
        // build
        set.StringVar(&env.customMavenRepoURL, prefix+"custom_maven_repo_url", 
"", "Set a custom Maven repository url for S2I builds, in case your artifacts 
are in a specific repository. See 
https://github.com/kiegroup/kogito-images/README.md for more information")
-       set.BoolVar(&env.customMavenRepoReplaceDefault, 
prefix+"custom_maven_repo_replace_default", false, "If you specified the option 
'tests.custom_maven_repo_url' and you want that one to replace the main JBoss 
repository (useful with snapshots).")
+       set.BoolVar(&env.customMavenRepoReplaceDefault, 
prefix+"custom_maven_repo_replace_default", false, "If you specified the option 
'tests.custom_maven_repo_url' and you want that one to replace the main Apache 
repository (useful with snapshots).")
        set.StringVar(&env.mavenMirrorURL, prefix+"maven_mirror_url", "", 
"Maven mirror url to be used when building app in the tests")
        set.StringVar(&env.quarkusPlatformMavenMirrorURL, 
prefix+"quarkusPlatformMavenMirrorURL", "", "Maven mirror url to be used when 
building app from source files with Quarkus, using the quarkus maven plugin.")
        set.BoolVar(&env.mavenIgnoreSelfSignedCertificate, 
prefix+"maven_ignore_self_signed_certificate", false, "Set to true if maven 
build need to ignore self-signed certificate. This could happen when using 
internal maven mirror url.")
diff --git a/bddframework/pkg/framework/maven.go 
b/bddframework/pkg/framework/maven.go
index ebac8de8..fe5d86bc 100644
--- a/bddframework/pkg/framework/maven.go
+++ b/bddframework/pkg/framework/maven.go
@@ -25,9 +25,9 @@ import (
 const (
        mavenCommandName = "mvn"
 
-       defaultJBossRepository = 
"https://repository.jboss.org/nexus/content/groups/public/";
-       mainRepositoryID       = "main-repository"
-       stagingRepositoryID    = "staging-repository"
+       defaultRemoteMavenRepository = 
"https://repository.apache.org/content/groups/public/";
+       mainRepositoryID             = "main-repository"
+       stagingRepositoryID          = "staging-repository"
 )
 
 // CreateMavenCommand methods initializes the basic data to run maven commands.
@@ -152,11 +152,11 @@ func (mvnCmd *mavenCommandStruct) setSettingsXML() error {
                mvnCmd.otherOptions = append(mvnCmd.otherOptions, 
"-Denforcer.skip")
 
                if !config.IsCustomMavenRepoReplaceDefault() {
-                       settings.AddRepository(mainRepositoryID, 
defaultJBossRepository, false)
+                       settings.AddRepository(mainRepositoryID, 
defaultRemoteMavenRepository, false)
                }
                settings.AddRepository(stagingRepositoryID, customMavenRepoURL, 
true)
        } else {
-               settings.AddRepository(mainRepositoryID, 
defaultJBossRepository, false)
+               settings.AddRepository(mainRepositoryID, 
defaultRemoteMavenRepository, false)
        }
 
        // Create settings.xml in directory
diff --git a/hack/run-tests.sh b/hack/run-tests.sh
index 5c875725..4c0fb9df 100755
--- a/hack/run-tests.sh
+++ b/hack/run-tests.sh
@@ -127,7 +127,7 @@ function usage(){
 
   # build
   printf "\n--custom_maven_repo_url {URI}\n\tSet a custom Maven repository url 
for S2I builds, in case your artifacts are in a specific repository. See 
https://github.com/kiegroup/kogito-images/README.md for more information."
-  printf "\n--custom_maven_repo_replace_default\n\tIf you specified the option 
'custom_maven_repo' and you want that one to replace the main JBoss repository 
(useful with snapshots)."
+  printf "\n--custom_maven_repo_replace_default\n\tIf you specified the option 
'custom_maven_repo' and you want that one to replace the main Apache repository 
(useful with snapshots)."
   printf "\n--maven_mirror_url {URI}\n\tMaven mirror url to be used when 
building app in the tests."
   printf "\n--quarkus_platform_maven_mirror_url {URI}\n\tMaven mirror url to 
be used when building app from source files with Quarkus, using the quarkus 
maven plugin."
   printf "\n--maven_ignore_self_signed_certificate\n\tSet to true if maven 
build need to ignore self-signed certificate. This could happen when using 
internal maven mirror url."


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to