Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Manifest.mf does not reflect the version of the compiler that built the jar, but defaults to the version that maven runs under: Build-Jdk: $
{java.version}.
I believe this makes users uncertain of which compiler was actually used to build the classes.
Agree in case of forked compilation.
But currently it's impossible for the jar plugin to know if the javac was forked with using an other JAVA_HOME.
http://docs.codehaus.org/display/MAVEN/Toolchains will probably help.