Created
April 19, 2016 17:13
-
-
Save dwelch2344/667d568323680a2427c33306e09e3590 to your computer and use it in GitHub Desktop.
Example setup to include semver info in MANIFEST.MF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mvn clean package -Dbuild.number=123 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<!-- ... --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<configuration> | |
<archive> | |
<manifest> | |
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> | |
</manifest> | |
<manifestEntries> | |
<Specification-Title>${project.name}</Specification-Title> | |
<Specification-Version>${project.version}</Specification-Version> | |
<Implementation-Version>${build.number}</Implementation-Version> | |
</manifestEntries> | |
</archive> | |
</configuration> | |
</plugin> | |
<!-- ... --> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment