Hi,

I am struggling for a couple of days to use the maven-antrun-plugin to do
some tasks. For start to display something in the console.

I run the pom file with the command "mvn compile" but no results (it
compiles correctly the java files and everything but I'm not getting the
desired message defined in the compile goal back in the console). Maybe I'm
missing something but can't figure it out. We're currently switching the
scripts from ant to maven and we discovered that we need some of the ant
functionality also in maven scripts.

I've checked my repository and the maven-antrun-plugin is there.

Thank you very much.


Here is my pom.xml code:

<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/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>myMavenTest</groupId>
        <artifactId>generatedWarFile</artifactId>
        <packaging>war</packaging>
        <version>1.0</version>
        <name>generatedWarFile</name>
        <url></url>
        <dependencies>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.13</version>
                </dependency>
                <dependency>
                        <groupId>antlr</groupId>
                        <artifactId>antlr</artifactId>
                        <version>2.7.2</version>
                </dependency>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.0</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>ant</groupId>
                        <artifactId>ant</artifactId>
                        <version>1.6.1</version>
                </dependency>
        </dependencies>
        <build>
                <pluginManagement>
                        <plugins>
                                <plugin>
                                        
<artifactId>maven-compiler-plugin</artifactId>
                                        <configuration>
                                                <source>1.5</source>
                                                <target>1.5</target>
                                        </configuration>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-antrun-plugin</artifactId>
                                        <executions>
                                                <execution>
                                                        <id>compile</id>
                                                        <phase>compile</phase>
                                                        <configuration>
                                                                <tasks>
                                                                        <echo 
message="==============" />
                                                                        <echo 
message="Test" />
                                                                        <echo 
message="==============" />
                                                                </tasks>
                                                        </configuration>
                                                        <goals>
                                                                
<goal>compile</goal>
                                                        </goals>
                                                </execution>
                                        </executions>
                                </plugin>
                        </plugins>
                </pluginManagement>
                <resources>
                        <resource>
                                <directory>src/main/resources</directory>
                                <filtering>true</filtering>
                        </resource>
                </resources>
        </build>
        <repositories>
                <repository>
                        <id>internal</id>
                        <name>Local repository</name>
                        <url>
                                http://my-local-repository:8080/maven2/internal
                        </url>
                </repository>
        </repositories>
</project>
-- 
View this message in context: 
http://n2.nabble.com/maven-antrun-plugin-tp1583057p1583057.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