Generate two jar with the same maven project
I would like to generate two jars from the same maven project when executing a mvn clean install. The only difference between the two jars, will be the content of the META-INF folder. For the moment, I've my-app.jar , I would like to have now my-jar-xxx.jar and my-jar-yyy.jar . How can I achieve this ? Regards. Raghuram You should not be creating two maven jars from the same maven project. Why? This sonatype blog post should explain. The same article also explains two ways in which you can still do it, if you want to Using profiles By doing two executions of maven jar plugin Here is the