maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
Subject Re: Overriding standard plugin goals in maven.xml
Date Sun, 30 Mar 2003 15:32:01 GMT
Did you file this as a bug report?
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


"David Zeleznik" <dzeleznik@ilog.com> wrote on 28/03/2003 01:13:33 PM:

> Hi All,
> 
> We have a need to override several standard plugin goals for our project
> builds. In these cases, providing a pre or post-goal is not enough. For
> several weeks, we have been successfully overriding these built-in 
plugin
> goals in our maven.xml scripts. Now, we have discovered that whether our
> version of the goal or the plugin version executes depends somehow on 
the
> execution context- we cannot obtain consistent override behavior. Here 
is a
> very simple example of a maven.xml:
> 
>    <project>
>      <goal name="java:compile">
>        <echo>The java:compile goal in maven.xml</echo>
>      </goal>
>    </project>
> 
> And here is the behavior we see:
> 
>   maven java:compile      - our overridden goal in maven.xml executes
>   maven java:jar         - the java:compile goal in the plugin executes
>   maven clean java:compile   - the java:compile goal in the plugin 
executes
> 
> So, is there anyway to provide a consistent override/replacement for a 
goal
> that has been defined by a plugin? This is really critical for us. We 
are
> currently using b8 and I hope someone can point me in the right 
direction on
> this. Thanks!
> 
> --------------------------------------
> David Zeleznik
> ILOG - Changing the rules of business
> mailto:dzeleznik@ilog.com
> http://www.ilog.com
> --------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message