Maven - Include dependent libs in jar without unpacking dependencies?

Posted by Marcus on Stack Overflow See other posts from Stack Overflow or by Marcus
Published on 2009-11-18T18:08:10Z Indexed on 2010/04/19 13:43 UTC
Read the original article Hit count: 329

We're trying to build a client jar that includes unpacked depenedent jar's. And the manifest should have class-path entries to the dependent jars. The snippet below works but the jars are unpacked - how can we stop the jars from being unpacked?

       <plugin>
            <artifactId>maven-assembly-plugin</artifactId>

            <configuration>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>

                <archive>
                  <manifest>
                    <addClasspath>true</addClasspath>
                  </manifest>
                </archive>
            </configuration>

            <executions>
                <execution>
                    <id>make-assembly</id>
                    <phase>package</phase>
                    <goals>
                        <goal>single</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about client-library