manifest-validator-maven-plugin

Checks MANIFEST.MF of a given jar

License

License

Categories

Categories

Maven Build Tools ORM Data
GroupId

GroupId

com.marvinformatics
ArtifactId

ArtifactId

manifest-validator-maven-plugin
Last Version

Last Version

0.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

manifest-validator-maven-plugin
Checks MANIFEST.MF of a given jar
Project URL

Project URL

https://github.com/velo/manifest-validator-maven-plugin/
Source Code Management

Source Code Management

https://github.com/velo/manifest-validator-maven-plugin/

Download manifest-validator-maven-plugin

How to add to project

<plugin>
    <groupId>com.marvinformatics</groupId>
    <artifactId>manifest-validator-maven-plugin</artifactId>
    <version>0.2</version>
</plugin>

Dependencies

compile (5)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.0.5
org.apache.maven : maven-artifact jar 3.0.5
org.apache.maven : maven-plugin-api jar 3.0.5
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5
org.sonatype.sisu : sisu-guava jar 0.9.9

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
io.takari.maven.plugins : takari-plugin-testing jar 2.8.0
org.apache.maven : maven-compat jar 3.0.5

Project Modules

There are no modules declared in this project.

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>

Versions

Version
0.2
0.1