I am using a different plugin (ant4eclipse) to jar my files. What is the best way to avoid the maven-jar plugin from executing?
<
Using maven 3.3.9, the following worked for me:
org.apache.maven.plugins
maven-jar-plugin
3.1.2
default-jar
none
unwanted
unwanted
org.apache.maven.plugins
maven-install-plugin
3.0.0-M1
true
So in case of the maven-jar-plugin, I bound it to a non-existent phase. For the maven-install-plugin, I used the "skip" configuration parameter. The documentation about it says: "Set this to true to bypass artifact installation. Use this for artifacts that does not need to be installed in the local repository."