Skip to content

Commit

Permalink
ENTESB-19670: Adds the default maven repositories if extra ones are a…
Browse files Browse the repository at this point in the history
…dded

* Avoids the default maven repositories being removed from the maven
  settings by the new specified repositories
  • Loading branch information
phantomjinx committed Sep 28, 2022
1 parent 56311e4 commit 9416d47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9416d47

Please sign in to comment.