Adding a <version> element fixed the problem.

           <plugin>
               <artifactId>maven-antrun-plugin</artifactId>
               <version>1.1</version>

Is this really necessary?  If so, how do I say "get the latest version
of the plugin"?

Thanks,

Matt

On 8/24/06, Matt Raible <[EMAIL PROTECTED]> wrote:
I've added the maven-antrun-plugin to my pom.xml as shown below.
However, it can't seem to find the plugin.

INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-antrun-plugin' does
not exist or no valid version could be found

Any ideas?

Thanks,

Matt

<build>
        <defaultGoal>install</defaultGoal>
        <plugins>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <configuration>
                            <tasks>
                                <echo>beotch!</echo>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
            </plugin>
        </plugins>
        <testResources>
            <testResource>
                <directory>src/test/resources</directory>
            </testResource>
            <testResource>
                <directory>src/main/webapp</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
            </testResource>
        </testResources>
    </build>


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

Reply via email to