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

pcongiusti pushed a commit to branch release-1.10.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/release-1.10.x by this push:
     new 8779a0a22 Adds the default maven repositories if extra ones are added
8779a0a22 is described below

commit 8779a0a22d8d0424c72b27098dc4cb234af769d7
Author: phantomjinx <[email protected]>
AuthorDate: Wed Sep 28 12:11:13 2022 +0100

    Adds the default maven repositories if extra ones are added
    
    * Avoids the default maven repositories being removed from the maven
      settings by the new specified repositories
---
 pkg/cmd/install.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkg/cmd/install.go b/pkg/cmd/install.go
index 1185c50b6..e953ea99c 100644
--- a/pkg/cmd/install.go
+++ b/pkg/cmd/install.go
@@ -440,7 +440,8 @@ func (o *installCmdOptions) install(cobraCmd 
*cobra.Command, _ []string) error {
                }
 
                if len(o.MavenRepositories) > 0 {
-                       settings, err := 
maven.NewSettings(maven.Repositories(o.MavenRepositories...))
+                       settings, err := 
maven.NewSettings(maven.Repositories(o.MavenRepositories...), 
maven.DefaultRepositories)
+
                        if err != nil {
                                return err
                        }

Reply via email to