You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2022/10/06 09:58:18 UTC
[camel-k] branch release-1.8.x updated: Adds the default maven repositories if extra ones are added
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch release-1.8.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-1.8.x by this push:
new 20f051869 Adds the default maven repositories if extra ones are added
20f051869 is described below
commit 20f051869fbf21b6ae97df17fff8fa3fb329cbc3
Author: phantomjinx <p....@phantomjinx.co.uk>
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 878c15d91..8a6836f88 100644
--- a/pkg/cmd/install.go
+++ b/pkg/cmd/install.go
@@ -394,7 +394,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
}