Hi,

I'm using Maven 3.0.3 on Mac 10.6.6.  I want to run a custom Ant task but it
doesn't seem to run.  I've included the plugin in the configuration below,
but my echo message is never printed (unsurprisingly everything after is
never executed either).  I run by doing

mvn -X test

Any ideas why the custom Ant task wouldn't run or suggestions to
troubleshoot further?  Thanks, - Dave


=================== Begin pom.xml =====================================
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.myco.mycousa.projdusoleil</groupId>
        <artifactId>projdusoleil-web</artifactId>
        <packaging>pom</packaging>
        <name>proj web</name>
        <version>1.0-SNAPSHOT</version>
        <build>
                <plugins>

                        <plugin>
                                <artifactId>maven-antrun-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <phase>test</phase>
                                                <id>id2</id>
                                                <configuration>
                                                        <tasks>

                                                                <property
name="mycousa.testsuite.file"
value="${project.basedir}/src/main/tests/suite.html" />
                                                                <echo
message="Looking at test suite file: ${mycousa.testsuite.file}" />

                                                                ...

                                                        </tasks>
                                                </configuration>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>

                </plugins>
        </build>
        <profiles>
                <profile>
                        <id>jetty</id>
                        <build>
                                <plugins>
                                        <plugin>
                                               
<groupId>org.mortbay.jetty</groupId>
                                               
<artifactId>jetty-maven-plugin</artifactId>
                                               
<version>7.2.2.v20101205</version>
                                                <configuration>
                                                        <webAppConfig>
                                                               
<contextPath>/${project.artifactId}</contextPath>
                                                        </webAppConfig>
                                                       
<scanIntervalSeconds>10</scanIntervalSeconds>
                                                </configuration>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>
        </profiles>
</project>
=================== End pom.xml =====================================

--
View this message in context: 
http://maven.40175.n5.nabble.com/Unable-to-get-antrun-to-run-tp4429367p4429367.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to