I am trying to make 2 different jars with maven project. I have specified the path of the classes using the main in them. I want to create 2 jar with different main runnable.
Here is what I tried to add:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<mainClass>pf.super.Analyzer</mainClass>
<mainClass>pf.super.Trainer</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
After making the maven with clean and install as argument, I get to have to different jars but both show the same result. That means one main class is taken while the another isn't taken at all.
Kindly guide me where I am wrong and how I can resolve the problem?