I have created war packing of my project and on same pom.xml file, I have included below plugin to create the jar as well. Everything work fine, it creates jar and war file both.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>make-a-jar</id>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
Now my question is, how I can merge the two jars? I want to include the content of one jar into the jar created above. Means copying the content of one jar into other while creating other jar in maven.