Skip to content

Tool Mvn

Roman edited this page Mar 3, 2023 · 2 revisions

This tool is a wrapper for running Mvn (Maven).

Examples:

settings := gttools.MvnRunSettings{
	Phases:             []string{"clean", "compile", "install"},
	Projects:           []string{"MyJavaModule"},
	AlsoMake:           true,
	NoTransferProgress: true,
	BatchMode:          true,
	ActivateProfiles:   []string{"!apidocs"},
}
settings.CustomArguments = []string{"-Dmaven.test.skip=true"}
settings.OutputToConsole = true
err := gotaskr.Tools.Mvn.Run(settings)
Clone this wiki locally