You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ca...@apache.org on 2006/02/01 03:25:16 UTC

svn commit: r373965 - /maven/plugins/trunk/maven-jar-plugin/src/site/apt/howto.apt

Author: carlos
Date: Tue Jan 31 18:25:14 2006
New Revision: 373965

URL: http://svn.apache.org/viewcvs?rev=373965&view=rev
Log:
Added manifest documentation

Modified:
    maven/plugins/trunk/maven-jar-plugin/src/site/apt/howto.apt

Modified: maven/plugins/trunk/maven-jar-plugin/src/site/apt/howto.apt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-jar-plugin/src/site/apt/howto.apt?rev=373965&r1=373964&r2=373965&view=diff
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/site/apt/howto.apt (original)
+++ maven/plugins/trunk/maven-jar-plugin/src/site/apt/howto.apt Tue Jan 31 18:25:14 2006
@@ -19,6 +19,42 @@
   From your project's target directory you'll able to see the generated jar file.
 
 
+* Manifest customization
+
+  By default a manifest will contain something like the following
+
+-------------------
+  Manifest-Version: 1.0
+  Built-By: ${user.name}
+  Created-By: Apache Maven
+  Build-Jdk: ${java.version}
+  Extension-Name: ${project.artifactId}
+  Specification-Vendor: ${project.organization.name}
+  Implementation-Vendor: ${project.organization.name}
+  Implementation-Title: ${project.description}
+  Implementation-Version: ${project.version}
+-------------------
+
+  Configuration can be done using the <<<archive>>> element. See the
+  {{{http://maven.apache.org/ref/current/maven-archiver/apidocs/org/apache/maven/archiver/MavenArchiveConfiguration.html}maven archive reference}}.
+
+-------------------
+  <configuration>
+    <archive>
+      <index>true</index>
+      <manifest>
+        <addClasspath>true</addClasspath>
+      </manifest>
+      <manifestEntries>
+        <mode>development</mode>
+        <url>${pom.url}</url>
+        <key>value</key>
+      </manifestEntries>
+    </archive>
+  </configuration>
+-------------------
+
+
 * How to configure jar:sign using pom.xml
 
   If you need to sign a jar, when using the 'jar' packaging, you just need to configure