[
http://jira.codehaus.org/browse/MNG-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MNG-4685.
----------------------------------
Resolution: Not A Bug
Assignee: Benjamin Bentmann
bq. My Java home is "C:\Program Files\Java\jdk1.6.0_15"
And this is what by design uses. If you want to use a different installation,
please update your JAVA_HOME environment variable accordingly.
> When executing mvn --version, Maven displays Java version incorrectly
> ---------------------------------------------------------------------
>
> Key: MNG-4685
> URL: http://jira.codehaus.org/browse/MNG-4685
> Project: Maven 2 & 3
> Issue Type: Bug
> Affects Versions: 2.2.1
> Environment: Microsoft Windows XP, Home Edition, vesrion 2002,
> Service Pack 3; Java 1.6.0_20 (has been updated automatically).
> Reporter: Oleksij Lupandin
> Assignee: Benjamin Bentmann
> Priority: Minor
>
> I suppose, Maven detects Java version upon the folder name of Java home, and
> it is not always correct.
> My Java home is "C:\Program Files\Java\jdk1.6.0_15". My Java developer kit is
> updated automatically. Its version is 1.6.0_20 now. When I run command "java
> -version", I get the following output:
> -----
> D:\>java -version
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
> -----
> When I run the command "mvn --version", I expect output like
> -----
> D:\>mvn --version
> Apache Maven <some values...>
> Java version: 1.6.0_20
> Java home: C:\Program Files\Java\jdk1.6.0_15\jre
> <other output...>
> -----
> Instead, the output is as follows:
> -----
> D:\>mvn --version
> Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300)
> Java version: 1.6.0_15
> Java home: C:\Program Files\Java\jdk1.6.0_15\jre
> Default locale: uk_UA, platform encoding: Cp1251
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> -----
> So, the procedure of how Maven defines Java version must be corrected.
--
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