I'm working on a maven web project. I've created a different maven project containing a couple of applets i want to use in the main project. This project is added as a dependency to the main project.
In my Applet-project POM,
I've added a plugin for creating a jar with dependencies,
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
I've also signed the uberjar to avoid some security restrictions.
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
</execution>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<jarPath>${project.build.directory}/${project.build.FinalName}-${project.packaging}-with-dependencies.${project.packaging}</jarPath>
<keystore>${basedir}/signstore.jks</keystore>
<alias>signstore</alias>
<storepass>signstore</storepass>
</configuration>
</plugin>
I now want to copy the signed uberjar to the webapp folder whenever i build the main project, so my HTML files can use it.
Is this possible? I've only managed to copy the jar without the dependencies.