Skip to content

Commit 5743200

Browse files
author
Niall Kegan Pemberton
committed
Modify maven build to add two non-standard attributes to the jar's manifest file to indicate the values of "maven.compile.source" and "maven.compile.target". Also modify the build to include an "Implementation-Vendor-Id" of "org.apache" in the jar's manifest.
The two non-standard entires created in the manifest file will look something like the following: X-Compile-Source-JDK: 1.3 X-Compile-Target-JDK: 1.3 This change serves two purposes: 1) To provide comfort to users regarding JVM compatibility. 2) Enable releases to be checked more easily for JVM compatibility. The manifest specification indicates that "unknown" entries in the manifest file are ignored. These entries have been prefixed with "X-" which is a sometimes used "convention" for indicating non-standard entries. See thread: http://tinyurl.com/839zh git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@377558 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8414f59 commit 5743200

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

project.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ maven.xdoc.poweredby.image=maven-feather.png
2525
maven.javadoc.links=http://java.sun.com/j2se/1.4/docs/api/
2626
maven.javadoc.stylesheet=${basedir}/style.css
2727

28+
# Jar Manifest and Additional Attributes
2829
maven.jar.manifest=${basedir}/src/conf/MANIFEST.MF
30+
maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
31+
maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
32+
maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
33+
maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
2934

3035
maven.pdf.navigationFile=navigation-pdf.xml
3136

0 commit comments

Comments
 (0)