Skip to content

Commit

Permalink
Changed Maven config's goals field from string to []string (#921)
Browse files Browse the repository at this point in the history
Fixes #888
  • Loading branch information
talarian1 authored Dec 13, 2020
1 parent 581702f commit 7dd1b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artifactory/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ func mvnLegacyCmd(c *cli.Context) error {
if err != nil {
return err
}
mvnCmd := mvn.NewMvnCommand().SetConfiguration(configuration).SetConfigPath(c.Args().Get(1)).SetGoals(c.Args().Get(0)).SetThreads(threads)
mvnCmd := mvn.NewMvnCommand().SetConfiguration(configuration).SetConfigPath(c.Args().Get(1)).SetGoals([]string{c.Args().Get(0)}).SetThreads(threads)

return commands.Exec(mvnCmd)
}
Expand Down Expand Up @@ -1127,7 +1127,7 @@ func mvnCmd(c *cli.Context) error {
if err != nil {
return err
}
mvnCmd := mvn.NewMvnCommand().SetConfiguration(buildConfiguration).SetConfigPath(configFilePath).SetGoals(strings.Join(filteredMavenArgs, " ")).SetThreads(threads).SetInsecureTls(insecureTls)
mvnCmd := mvn.NewMvnCommand().SetConfiguration(buildConfiguration).SetConfigPath(configFilePath).SetGoals(filteredMavenArgs).SetThreads(threads).SetInsecureTls(insecureTls)
return commands.Exec(mvnCmd)
}
return mvnLegacyCmd(c)
Expand Down

0 comments on commit 7dd1b5b

Please sign in to comment.