Hi,
I would like to be able to create a Jar, that has all it's dependencies
in it (and has a MainClass set in the manifest). I can get this to work
using the assembly plugin, but the problem is that it causes my unit
tests to all get run twice. This is causing our builds to take way
longer than they should.
The way I'm currently doing this, is to add the snippet at the bottom to
my POM.
I've also tried this with using the minijar-maven-plugin, but with the
same affect. Is there a way for me to have my project only build a jar
with the dependencies in it? Or is there a way to have my assembly not
have to have an entire rebuild/retest before building the new assembly?
Thanks,
--Will
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assembly/with-dependencies.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>my.main.class</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<phase>package</phase>
<id>make-standalone</id>
<goals>
<goal>assembly</goal>
</goals>
</execution>
</executions>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]