Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
Description
http://jira.codehaus.org/browse/MPJAR-7?rc=1 commented out code to set the Specification-Version manifect attribute. There seems to have been quite a bit of debate about that bug. The result seems to be that the code was commented out http://svn.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/jar/plugin.jelly?rev=115072&r1=115041&r2=115072&diff_format=h so that the RC3 could ship and a more permenent solution found later. It's still there.
Specification-Version should really be set for libraries: IIRC there are some fancy EJB library loading routines which rely on it. Personally speaking, I'd be happen to uncomment the commented line.
Problem is, that the manifest spec does only allow number values for the specification version entry. So that entry should not have a version that ends e.g. with -SNAPSHOT. I solved this in the javaapp plugin by extracting major.minor from the version unless it is overwritten with a property (http://maven-plugins.sourceforge.net/maven-javaapp-plugin/properties.html).