Hi,
I'm trying to create an executable jar from a swing application using
maven and its maven-assembly-plugin. It builds ok, I saw in the jar it
packs the dependent jars, but it contains non of my own programmed
classes, resulting in a classnotfound exception when double clicking
on the jar.
Can anyone help me out? Is this the easiest way for creating an
excecutable for a swing application or are there better ways?
the configuration I used is:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
<descriptorRef>src</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>be.....presentation.MyApp</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>attach-assembly-to-package</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
</plugin>
This plugin is in the parent class containing the modules. It has 6
modules, from which the presentation module contains the main class.
The other modules are dependencies of the presentation module.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]