manifest-validator-maven-plugin
Checks MANIFEST.MF of a given jar
Why?
Nordays executable jars became the new black.
Still, https://github.com/apache/maven-plugins/tree/trunk/maven-jar-plugin[maven-jar-plugin] provides no validation for the MANIFEST.MF.
How?
<plugin>
<groupId>com.marvinformatics</groupId>
<artifactId>manifest-validator-maven-plugin</artifactId>
<configuration>
<entries>
<entry>Main-Class:PRESENT,VALID_CLASS</entry>
</entries>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>manifest-validator</goal>
</goals>
</execution>
</executions>
</plugin>