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
@@ -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
}
