Skip to content

Instantly share code, notes, and snippets.

@holyjak
Created May 22, 2013 15:42
Show Gist options
  • Save holyjak/5628583 to your computer and use it in GitHub Desktop.
Save holyjak/5628583 to your computer and use it in GitHub Desktop.
Include project name & version in the generated MANIFEST.MF
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
...
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
...
</plugin>
</plugins>
</build>
...
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment