You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kevin Carroll <ks...@yahoo.com> on 2006/04/12 15:42:31 UTC
Override a phase?
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.
Thanks...Kevin Carroll
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Override a phase?
Posted by dan tran <da...@gmail.com>.
you can set your packaging to "pom"
-D
On 4/12/06, Kevin Carroll <ks...@yahoo.com> 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.
>
> Thanks...Kevin Carroll
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Override a phase?
Posted by Martin Cooper <ma...@apache.org>.
On 4/12/06, Kevin Carroll <ks...@yahoo.com> 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.
Instead of "turning off" Maven's jar generation, perhaps you could use the
dependency plugin to pull in your external dependencies, and let Maven build
the jar. See:
http://mojo.codehaus.org/dependency-maven-plugin/
--
Martin Cooper
Thanks...Kevin Carroll
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Override a phase?
Posted by Simon Kitching <sk...@apache.org>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org