Is this description in the pom you are running, or in a parent pom? If the
latter, you have "inherited" turned off so it won't work. If the former,
could you send the command-line args you use and the output? This shouldn't
happen.
Eric
On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I'm trying to get my build to execute goals of a plugin during a phase.
There is plenty of documentation available how to do this, but I can't
get it to work. Is there a setting somewhere that I need to turn
executions on? The XML below will run fine with "mvn antrun:run," but
when I run mvn compile, the antrun:run goal does not get executed. Any
ideas what I could be doing wrong? I'm using 2.0.5
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<tasks>
<echo>Hurray it Worked!</echo>
</tasks>
</configuration>
<executions>
<execution>
<id>someid</id>
<goals>
<goal>run</goal>
</goals>
<phase>compile</phase>
<inherited>false</inherited>
</execution>
</executions>
</plugin>
Kurt
--
Eric Redmond
http://codehaus.org/~eredmond