Gentelmen!
I needs twice to run ant tasks on two different phases.
I make:
<build>
<plugin>
       <artifactId>maven-antrun-plugin</artifactId>
       <executions>
         <execution>
           <phase>generate-sources</phase>
           <configuration>
             <tasks>

<echo message="generate-sources!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"/>

             </tasks>
           </configuration>
           <goals>
             <goal>run</goal>
           </goals>
         </execution>

          <execution>
           <phase>compile</phase>
           <configuration>
             <tasks>

<echo message="compile!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"/>

             </tasks>
           </configuration>
           <goals>
             <goal>run</goal>
           </goals>
         </execution>
      </executions>
     </plugin>

Maven wrote
Validation Messages:

[0] You cannot have two plugin executions with the same (or missing) <id/> elements.
Offending execution
Id: 'default'
Plugin:'org.apache.maven.plugins:maven-antrun-plugin'
Reason: Failed to validate POM
What will you advise?


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

Reply via email to