From 09832ebb1a20457561fe793adf4d66e0bdddaa03 Mon Sep 17 00:00:00 2001 From: phantomjinx Date: Wed, 28 Sep 2022 12:11:13 +0100 Subject: [PATCH] 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 1185c50b6e..e953ea99c1 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 }