[ http://jira.codehaus.org/browse/MPJAVA-30?page=all ]
Lukas Theussl closed MPJAVA-30:
-------------------------------
Resolution: Fixed
Fix Version: 1.6
> Compiling gives incorrect warning about target JVM version
> ----------------------------------------------------------
>
> Key: MPJAVA-30
> URL: http://jira.codehaus.org/browse/MPJAVA-30
> Project: maven-java-plugin
> Type: Bug
> Versions: 1.5
> Reporter: Ross Burnett
> Priority: Minor
> Fix For: 1.6
>
> Original Estimate: 5 minutes
> Remaining: 5 minutes
>
> Compiling Java code with:
> - maven-java-plugin-1.5
> - JDK1.4.2
> - no value set for maven.compile.target
> - no value set of maven.compile.source
> leads to the following message:
> ==========================================================
>
> NOTE: Targetting JVM 1.4, classes
> will not run on earlier JVMs
>
> ==========================================================
> I believe this is incorrect - the compilation will target whatever JVM is the
> default setting for that javac (1.2 in the case of a 1.4 JDK). Running the
> compiled unit tests on a 1.3 JVM succeeds.
> I suggest that the note be removed. The plugin could emit a more accurate
> message if it maintained a map of which target applies by default for each
> JVM, but that seems like overkill.
> Setting maven.compile.target supresses the message.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]