Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPJAVA-30

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPJAVA-30
    Summary: Compiling gives incorrect warning about target JVM version
       Type: Bug

     Status: Unassigned
   Priority: Minor

 Original Estimate: 5 minutes
 Time Spent: Unknown
  Remaining: 5 minutes

    Project: maven-java-plugin
   Versions:
             1.5

   Assignee: 
   Reporter: Ross Burnett

    Created: Tue, 14 Dec 2004 2:10 AM
    Updated: Tue, 14 Dec 2004 2:10 AM

Description:
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.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to