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:[EMAIL PROTECTED]
http://www.ilog.com
--------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to