HI all,

I've using the combination of maven-assembly-plugin and
maven-dependency-plugin to generate the binary distribution.  The
pom.xmlcontaining these plugins has the "packaging" as "pom". This
maven module
listed as the last of modules needed for the reactor.

maven-assembly-pluging runs on phase "package" and maven-dependency-plugin
runs on "initialize" phase.

problem : when ever this module runs, whole of the project builds again. Ie.
compiling and running test cases happen twice.
Why this happens. Is this due to the <phase>initialize</phase> I'm using. Or
is there any other know issue.

Thank you


maven-assembly-plugin has a config as follows,
...
    =========================================
    <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-assembly-plugin</artifactId>
                       <version>2.1</version>
                       <executions>
                           <execution>
                               <id>distribution-package</id>
                               <phase>package</phase>
                               <goals>
                                   <goal>directory</goal>
                               </goals>
                               <configuration>
                                   <descriptors>
                                       <descriptor>src/assemble/dist-
common-assembly.xml</descriptor>
                                   </descriptors>
                                   <finalName>dist</finalName>
                               </configuration>
                           </execution>
                       </executions>
                   </plugin>
...
====================
maven-dependency-plugin has configured as

<plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-dependency-plugin</artifactId>
                       <version>2.0-alpha-1-SNAPSHOT</version>
                       <executions>
                           <execution>
                               <id>initialize-copy</id>
                               <phase>initialize</phase>
                               <goals>
                                   <goal>copy</goal>
                               </goals>
                               <configuration>
                                   <artifactItems>

---

--
Saminda Abeyruwan

Software Engineer
WSO2 - www.wos2.org

Reply via email to