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/collections/trunk@377558 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
232af59948
commit
17e59448ea
|
@ -22,6 +22,12 @@ maven.xdoc.poweredby.image=maven-feather.png
|
|||
maven.xdoc.copy.excludes=images/file.gif,images/folder-closed.gif,images/folder-open.gif,images/icon_alert.gif,images/icon_alertsml.gif,images/icon_arrowfolder1_sml.gif,images/icon_arrowfolder2_sml.gif,images/icon_arrowmembers1_sml.gif,images/icon_arrowmembers2_sml.gif,images/icon_arrowusergroups1_sml.gif,images/icon_arrowusergroups2_sml.gif,images/icon_confirmsml.gif,images/icon_help_lrg.gif,images/icon_infosml.gif,images/icon_members_sml.gif,images/icon_sortleft.gif,images/icon_sortright.gif,images/icon_usergroups_sml.gif,images/icon_waste_lrg.gif,images/icon_waste_sml.gif,images/none.png,images/nw_maj.gif,images/nw_maj_hi.gif,images/nw_med.gif,images/nw_med_hi.gif,images/nw_med_rond.gif,images/nw_min.gif,images/nw_min_036.gif,images/nw_min_hi.gif,images/poweredby_036.gif,images/product_logo.gif,images/se_maj_rond.gif,images/sw_min.gif,images/logos/**
|
||||
maven.xdoc.copy.excludes.classic=images/external-classic.png,images/help_logo.gif,images/icon_arrowfolderclosed1_sml.gif,images/icon_arrowwaste1_sml.gif,images/icon_arrowwaste2_sml.gif,images/icon_doc_lrg.gif,images/icon_doc_sml.gif,images/icon_error_lrg.gif,images/icon_folder_lrg.gif,images/icon_folder_sml.gif,images/icon_help_sml.gif,images/icon_info_lrg.gif,images/icon_members_lrg.gif,images/icon_sortdown.gif,images/icon_sortup.gif,images/icon_success_lrg.gif,images/icon_usergroups_lrg.gif,images/icon_arrowfolderopen2_sml.gif,images/icon_warning_lrg.gif,images/newwindow-classic.png,images/nw_maj_rond.gif,images/strich.gif,images/sw_maj_rond.gif,images/sw_med_rond.gif
|
||||
|
||||
# Jar Manifest Additional Attributes
|
||||
maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
|
||||
maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
|
||||
maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
|
||||
maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
|
||||
|
||||
maven.javadoc.author=false
|
||||
maven.javadoc.links=http://java.sun.com/j2se/1.4/docs/api/
|
||||
maven.javadoc.source=1.3
|
||||
|
|
Loading…
Reference in New Issue