Take a look at the m2release plugin – you can dynamically (and optionally) change the default goals that get passed to maven in a plugin.
/James
Hi Dimitri,
Don’t use it – just look at the code which will give you an example of changing the goals.
It uses the getGoalsAndOptions rather than the intercept.
Intercept is more for adding extra options, getGotalsAndOptions is used to change the default goals that run (the ones that are normally entered in the UI).
Building in workspace D:\workspace2\remote-deployment-new\work\jobs\Maven\workspace FATAL: The plugin 'com.ebiznext.plugins.RemoteDeploymentWrapper' still uses deprecated setUp(Build,Launcher,BuildListener) method. Update the plugin to use setUp(AbstractBuild, Launcher, BuildListener) instead. java.lang.AssertionError: The plugin 'com.ebiznext.plugins.RemoteDeploymentWrapper' still uses deprecated setUp(Build,Launcher,BuildListener) method. Update the plugin to use setUp(AbstractBuild, Launcher, BuildListener) instead. at hudson.tasks.BuildWrapper.setUp(BuildWrapper.java:144) at com.ebiznext.plugins.RemoteDeploymentWrapper.setUp(RemoteDeploymentWrapper.java:100) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:601) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)