You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2006/11/15 00:32:11 UTC
svn commit: r475057 -
/maven/plugins/trunk/maven-jar-plugin/src/site/apt/examples/manifest-customization.apt
Author: dennisl
Date: Tue Nov 14 15:32:10 2006
New Revision: 475057
URL: http://svn.apache.org/viewvc?view=rev&rev=475057
Log:
[MJAR-57] Specification and Implementation details missing from manifest
o Remove Specification and Implementation details from the manifest example.
o Explain that Specification and Implementation details were removed in version 2.1 of the plugin.
o Add configuration example showing how to get them back.
Modified:
maven/plugins/trunk/maven-jar-plugin/src/site/apt/examples/manifest-customization.apt
Modified: maven/plugins/trunk/maven-jar-plugin/src/site/apt/examples/manifest-customization.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/site/apt/examples/manifest-customization.apt?view=diff&rev=475057&r1=475056&r2=475057
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/site/apt/examples/manifest-customization.apt (original)
+++ maven/plugins/trunk/maven-jar-plugin/src/site/apt/examples/manifest-customization.apt Tue Nov 14 15:32:10 2006
@@ -12,14 +12,10 @@
+-----------------+
Manifest-Version: 1.0
- Built-By: ${user.name}
+ Archiver-Version: Plexus Archiver
Created-By: Apache Maven
+ Built-By: ${user.name}
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. Below you will
@@ -47,6 +43,35 @@
<url>${pom.url}</url>
<key>value</key>
</manifestEntries>
+ </archive>
+ </configuration>
+ ...
+ </plugin>
+ </plugins>
+ </build>
+ ...
+</project>
++-----------------+
+
+ Starting with version 2.1, the maven-jar-plugin no longer creates the
+ Specification and Implementation details in the manifest by default.
+ If you want them you have to say so explicitly in your plugin configuration:
+
++-----------------+
+<project>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ ...
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
</archive>
</configuration>
...