From d849cc1744823db4de8504d9c15746a014b07262 Mon Sep 17 00:00:00 2001 From: Niall Kegan Pemberton Date: Tue, 14 Feb 2006 01:15:14 +0000 Subject: [PATCH] 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/logging/trunk@377558 13f79535-47bb-0310-9956-ffa450edef68 --- project.properties | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project.properties b/project.properties index 75ffb6c..cbe8135 100644 --- a/project.properties +++ b/project.properties @@ -22,6 +22,12 @@ maven.xdoc.version=${pom.currentVersion} maven.xdoc.developmentProcessUrl=http://jakarta.apache.org/commons/charter.html maven.xdoc.poweredby.image=maven-feather.png +# 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.junit.fork=true # generate .class files that can be loaded into a version 1.1 JVM.