Maven: disable maven-jar-plugin

In maven 3.x.x. and above you can disable the plugin by setting the non existing phase.

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>never</phase>
<configuration>
<finalName>unwanted</finalName>
<classifier>unwanted</classifier>
</configuration>
</execution>
</executions>
</plugin>

@see: stackoverflow