Changed Maven config's goals field from string to []string
Fixes
@@ -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)
}
@@ -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)
