Skip to content

velo/manifest-validator-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

manifest-validator-maven-plugin

Build Status Coverage Status Maven Central Issues Forks Stars

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>