You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ts...@apache.org on 2022/10/04 07:06:06 UTC
[camel-k] branch main updated: Adds the default maven repositories if extra ones are added
This is an automated email from the ASF dual-hosted git repository.
tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 11aaa93d8 Adds the default maven repositories if extra ones are added
11aaa93d8 is described below
commit 11aaa93d87a7301c6ad0c7dea47acfebc50b015f
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 7819a8816..fccea5ba8 100644
--- a/pkg/cmd/install.go
+++ b/pkg/cmd/install.go
@@ -445,7 +445,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
}