-----Original Message-----
From: Jens Zastrow 
Sent: Thursday, March 02, 2006 2:03 PM
To: 'Maven Users List'
Subject: [assembly] assembly:directory in phase package invokes whole
build twice

How to prevent assembly doing another build???

Thanks
Jens Zastrwo

[pom.xml]
        <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
        <executions>
                        <execution>
                                <phase>package</phase>
                                <goals>
                                        <goal>directory</goal>
                                </goals>
                        </execution>
                </executions>
                <configuration>                 
                        <descriptors>
        
<descriptor>${basedir}/distribution.assembly</descriptor>
                        </descriptors>
            </configuration>                 
        </plugin>    


>mvn clean package

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
----
[INFO] Building sample
[INFO]    task-segment: [clean, package]
[INFO]
------------------------------------------------------------------------
----
[INFO] [clean:clean]
[INFO] [jiac-ontocompiler:ontocompile {execution: compile main .onto
files}] [INFO] Compiling 1 ontology source files to
E:\home\zastrow\jiac\project-template\target\generated-src\main\java
[INFO]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 5 source files to
E:\home\zastrow\jiac\project-template\target\classes
[INFO] [jiac-jadlcompiler:jadlcompile {execution: compile main .jadl
files}] [INFO] Compiling 14 jadl source files to
E:\home\zastrow\jiac\project-template\target\classes
[INFO]
[INFO] [jiac-ontocompiler:ontoTestCompile {execution: compile test .onto
files}] [INFO] Compiling 0 ontology source files to
E:\home\zastrow\jiac\project-template\target\generated-src\test\java
[INFO]
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date [INFO]
[jiac-jadlcompiler:jadlTestCompile {execution: compile test .jadl
files}] [INFO] Compiling 0 jadl source files to
E:\home\zastrow\jiac\project-template\target\test-classes
[INFO]
[INFO] [surefire:test]
[INFO] Setting reports dir:
E:\home\zastrow\jiac\project-template\target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no test to run.

Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0

[INFO] [jar:jar]
[INFO] Building jar:
E:\home\zastrow\jiac\project-template\target\sample-1.0.0.jar
[INFO] Preparing assembly:directory
[INFO]
------------------------------------------------------------------------
----
[INFO] Building sample
[INFO]
------------------------------------------------------------------------
----
[WARNING] Removing: directory from forked lifecycle, to prevent
recursive invocation.
[INFO] [jiac-ontocompiler:ontocompile {execution: compile main .onto
files}] [INFO] Compiling 1 ontology source files to
E:\home\zastrow\jiac\project-template\target\generated-src\main\java
[INFO]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 3 source files to
E:\home\zastrow\jiac\project-template\target\classes
[INFO] [jiac-jadlcompiler:jadlcompile {execution: compile main .jadl
files}] [INFO] Compiling 14 jadl source files to
E:\home\zastrow\jiac\project-template\target\classes
[INFO]
[INFO] [jiac-ontocompiler:ontoTestCompile {execution: compile test .onto
files}] [INFO] Compiling 0 ontology source files to
E:\home\zastrow\jiac\project-template\target\generated-src\test\java
[INFO]
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date [INFO]
[jiac-jadlcompiler:jadlTestCompile {execution: compile test .jadl
files}] [INFO] Compiling 0 jadl source files to
E:\home\zastrow\jiac\project-template\target\test-classes
[INFO]
[INFO] [surefire:test]
[INFO] Setting reports dir:
E:\home\zastrow\jiac\project-template\target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no test to run.

Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0

[INFO] [jar:jar]
[INFO] Building jar:
E:\home\zastrow\jiac\project-template\target\sample-1.0.0.jar
[INFO] [assembly:directory {execution: default}] [INFO] Building
assembly directory :
E:\home\zastrow\jiac\project-template\target\sample-1.0.0-dist
[INFO]
------------------------------------------------------------------------
----
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
----
[INFO] Total time: 15 seconds
[INFO] Finished at: Thu Mar 02 13:55:26 CET 2006 [INFO] Final Memory:
7M/18M [INFO]
------------------------------------------------------------------------
----

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

Reply via email to