All!

When running the command "mvn install site-deploy" the ANT task defined like
this 

    <plugins> 
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>apa</id>
            <phase>validate</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration> 
              <tasks>
                <echo>################### RUNNING ANT TASK
########################</echo>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins> 

is executed no less than three times!

        [INFO]
----------------------------------------------------------------------------
        [INFO] Building SalesTool - Presentation
        [INFO]    task-segment: [site-deploy]
        [INFO]
----------------------------------------------------------------------------
        [INFO] Preparing javadoc:javadoc
        [INFO] [antrun:run {execution: apa}]
        [INFO] Executing tasks
                [echo] ################### RUNNING ANT TASK 
########################
        [INFO] Executed tasks
        [INFO] [resources:resources]
        [INFO] Using default encoding to copy filtered resources.
        [INFO] [compiler:compile]
        [INFO] Nothing to compile - all classes are up to date
        [INFO] [resources:testResources]
        [INFO] Using default encoding to copy filtered resources.
        [INFO] [compiler:testCompile]
        [INFO] Not compiling test sources
        [INFO] [surefire:test]
        [INFO] No tests to run.
        [INFO] [war:war]
        [INFO] Exploding webapp...
        [INFO] Copy webapp webResources to
C:\SalesTool\ST2.0\ST2.0\presentation\target\presentation-0.1
        [INFO] Assembling webapp presentation in
C:\SalesTool\ST2.0\ST2.0\presentation\target\presentation-0.1
        [INFO] Generating war C:\Program
Files\apache-tomcat-5.5.12\webapps\SalesTool.war
        [INFO] Building war: C:\Program
Files\apache-tomcat-5.5.12\webapps\SalesTool.war
        [INFO] [install:install]
        [INFO] Installing C:\Program
Files\apache-tomcat-5.5.12\webapps\SalesTool.war to
C:\Maven\repository\com\tele2\salestool\presentation\0.1\presentation-0.1.war
        [INFO] Preparing javadoc:javadoc
        [INFO] [antrun:run {execution: apa}]
        [INFO] Executing tasks
                [echo] ################### RUNNING ANT TASK 
########################
        [INFO] Executed tasks
        [INFO] Preparing surefire-report:report
        [INFO] [antrun:run {execution: apa}]
        [INFO] Executing tasks
                [echo] ################### RUNNING ANT TASK 
########################
        [INFO] Executed tasks
        [INFO] [resources:resources]


when runing "mvn install" the ANT-task is executed twice

        [INFO]
----------------------------------------------------------------------------
        [INFO] Building SalesTool - Presentation
        [INFO]    task-segment: [site-deploy]
        [INFO]
----------------------------------------------------------------------------
        [INFO] Preparing javadoc:javadoc
        [INFO] [antrun:run {execution: apa}]
        [INFO] Executing tasks
                 [echo] ################### RUNNING ANT TASK 
########################
        [INFO] Executed tasks
        [INFO] Preparing surefire-report:report
        [INFO] [antrun:run {execution: apa}]
        [INFO] Executing tasks
                 [echo] ################### RUNNING ANT TASK 
########################
        [INFO] Executed tasks
        [INFO] [resources:resources]


I guess this has something to do with the life cycle but how do I tell Maven
to run the ANT task only ONCE per Maven execution!?!?!

best regards
-Martin 
-- 
View this message in context: 
http://www.nabble.com/maven-antrun-plugin-executes-several-times-tf2220979.html#a6152627
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to