Hello,

I have seen that the assembly plugin always doubles the class files from
my projects src-folder in the resulting "xxx-jar-with-dependencies.jar".

The class files from the dependency-jars are put correctly into the
resulting assembly-jar.

Is this a bug, or am I doing something wrong?


Thankx in advance
Rolf



-- ENV -----------------------------------------

Maven: 2.0.9
JDK: 1.6.0_07
OS: Linux, kernel 2.26.24-23
Maven assembly plugin: 2.2 beta 2



-- POM --------------------------------------

<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>de.rk.my.tools</groupId>
        <artifactId>simple-cc</artifactId>
        <name>simple.cc</name>
        <version>0.1-SNAPSHOT</version>

        <build>
                <plugins>
                        <plugin>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <configuration>
                                        <source>1.5</source>
                                        <target>1.5</target>
                                </configuration>
                        </plugin>
                        <plugin>
                                <artifactId>maven-assembly-plugin</artifactId>
                                <configuration>
                                        <descriptorRefs>
                                                <descriptorRef>
                                                        jar-with-dependencies
                                                </descriptorRef>
                                        </descriptorRefs>
                                        <archive>
                                                <manifest>
                                                        <mainClass>
                                                                
de.rk.my.tools.simplecc.SimpleCC
                                                        </mainClass>
                                                </manifest>
                                        </archive>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

        <dependencies>
                <dependency>
                        <groupId>jexcelapi</groupId>
                        <artifactId>jxl</artifactId>
                        <version>2.4.2</version>
                </dependency>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.14</version>
                </dependency>
                <dependency>
                        <groupId>commons-collections</groupId>
                        <artifactId>commons-collections</artifactId>
                        <version>3.2</version>
                </dependency>
                <dependency>
                        <groupId>commons-io</groupId>
                        <artifactId>commons-io</artifactId>
                        <version>1.3.2</version>
                </dependency>
                <dependency>
                        <groupId>commons-lang</groupId>
                        <artifactId>commons-lang</artifactId>
                        <version>2.2</version>
                </dependency>
                <dependency>
                        <groupId>swiftgantt</groupId>
                        <artifactId>swiftgantt</artifactId>
                        <version>0.3.6</version>
                </dependency>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.1</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>jmock</groupId>
                        <artifactId>jmock</artifactId>
                        <version>1.2.0</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>jmock</groupId>
                        <artifactId>jmock-cglib</artifactId>
                        <version>1.2.0</version>
                        <scope>test</scope>
                </dependency>
        </dependencies>
</project>



--- CL-Output of "mvn clean assembly:assembly" -------

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'assembly'.
[INFO]
------------------------------------------------------------------------
[INFO] Building simple.cc
[INFO]    task-segment: [assembly:assembly] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Preparing assembly:assembly
[INFO]
------------------------------------------------------------------------
[INFO] Building simple.cc
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2/swiftgantt/swiftgantt/0.3.6/swiftgantt-0.3.6.pom
[INFO] [compiler:compile]
[INFO] Compiling 31 source files
to /home/rolf/dev/workspace/simple-cc/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 12 source files
to /home/rolf/dev/workspace/simple-cc/target/test-classes
[INFO] [surefire:test]
[INFO] Surefire report
directory: /home/rolf/dev/workspace/simple-cc/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running de.rk.my.tools.simplecc.model.ExcelTaskConnectionsProviderTest

(...)

Results :

Tests run: 26, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building
jar: /home/rolf/dev/workspace/simple-cc/target/simple-cc-0.1-SNAPSHOT.jar
[INFO] [assembly:assembly]
[INFO] Processing DependencySet (output=)
[INFO] Building
jar: 
/home/rolf/dev/workspace/simple-cc/target/simple-cc-0.1-SNAPSHOT-jar-with-dependencies.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Sat Jan 10 14:54:08 CET 2009
[INFO] Final Memory: 18M/81M
[INFO]
------------------------------------------------------------------------








---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to