How do I add my own manifest file to a jar file?
Author: Deron Eriksson
Description: This tutorial describes how to add a custom manifest file to a jar file.
Tutorial created using:
Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)
(Continued from page 1) I performed a "mvn clean package" on my "aproject" project to generate a jarW file for the project in the target directory called "aproject-1.0-SNAPSHOT.jar". If we examine the contents of the MANIFEST.MF file in the generated jar file. We can see that it contains the values that we put in it. In addition, it contains other values that were automatically added by the MavenSW Archiver. META-INF/MANIFEST.MF file in aproject-1.0-SNAPSHOT.jarManifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: Cakes Build-Jdk: 1.6.0_04 Bacon: Eggs Here: There |