Hi,

With a simple pom.xml (cf [1]), if I execute mvn assembly:assembly, I have
the following behaviour (maven 2.0.5)

mvn assembly:assembly
[...]
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
    [echo] maven-antrun-plugin is triggered
[INFO] Executed tasks
[INFO] [site:attach-descriptor]
[INFO] [assembly:assembly]
[...]

Why, if you execute the assembly plugin, maven also execute others tasks
like antrun (with this pom test [1]) ?
I wonder if it is normal ?

Rémy

---
[1]
<?xml version="1.0" encoding="UTF-8"?>
<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>test</groupId>
 <artifactId>assembly</artifactId>
 <version>1.0-SNAPSHOT</version>

 <packaging>pom</packaging>

 <build>
   <plugins>
       <plugin>
           <artifactId>maven-antrun-plugin</artifactId>
           <executions>
               <execution>
                   <phase>validate</phase>
                   <goals>
                       <goal>run</goal>
                   </goals>
                   <configuration>
                       <tasks>
                           <echo message="maven-antrun-plugin is
triggered"/>
                       </tasks>
                   </configuration>
               </execution>
           </executions>
       </plugin>
   </plugins>
 </build>
</project>

Reply via email to