You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joerg Schaible (JIRA)" <ji...@codehaus.org> on 2006/07/03 17:54:22 UTC

[jira] Commented: (MNG-2413) maven version insistence based on wrong variable

    [ http://jira.codehaus.org/browse/MNG-2413?page=comments#action_68845 ] 

Joerg Schaible commented on MNG-2413:
-------------------------------------

Be careful with java.version also, see comments on XSTR-249. XStream uses therefore java.specification.version now.

> maven version insistence based on wrong variable
> ------------------------------------------------
>
>          Key: MNG-2413
>          URL: http://jira.codehaus.org/browse/MNG-2413
>      Project: Maven 2
>         Type: Bug

>   Components: Bootstrap & Build
>     Versions: 2.0.4
>  Environment: OS : ubuntu dapper
> java vm : SableVM 1.11.3
>     Reporter: j

>
>
> MavenCli does
> if (System.getProperty("java.class.version", "44.0").compareTo("48.0") < 0) //then echo "sorry we need version 1.4"
> however java.class.version is the binary packaging format for the classes, not the supported API.  java.version is the supported api, for which sable returns 1.4.2.  So the process aborts out, wanting the 1.4 API, when it has 1.4 API (sable has 46.0 instead of 48.0 as the class packaging format used)

-- 
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