On Wed, 2006-04-12 at 06:42 -0700, Kevin Carroll wrote: > Is there any way to override a phase? I am building a jar file that needs to > pull in > dependencies so I have a custom ant task (classdepandjar) that does it. The > maven > lifecycle still executes the default package phase and builds the jar for the > project. I > don't need that jar and I would like to just eliminate it from being built.
You can't override the phase bindings set up by your <package> declaration. You can only add to it via <execution> tags. However some plugins can effectively be configured as "disabled"; see the plugin's options (eg surefire has <skip>true</skip>). As noted by another poster, using <package>pom</package> doesn't set up any phase bindings so you can start from scratch and define everything you want explicitly. Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]