[
http://jira.codehaus.org/browse/SUREFIRE-720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266172#action_266172
]
Ronald Muller commented on SUREFIRE-720:
----------------------------------------
See attached test case. The toolchain configuration is "standard", like
http://maven.apache.org/guides/mini/guide-using-toolchains.html
surefire 2.5 works good, 2.6 - 2.8 fails.
The problem is:
if ( getJvm() != null )
{
getLog().warn( "Toolchains are ignored, 'executable' parameter is set to " +
getJvm() );
}
The JVM is already set, so the toolchain is not used
Kind regards,
Ronald
> Toolchain is ignored
> --------------------
>
> Key: SUREFIRE-720
> URL: http://jira.codehaus.org/browse/SUREFIRE-720
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.7, 2.7.1, 2.7.2, 2.8
> Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> Maven home: C:\Users\alex\Software\apache-maven-3.0.3\bin\..
> Java version: 1.6.0_19, vendor: Sun Microsystems Inc.
> Java home: C:\Users\alex\Software\jdk1.6.0_19\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
> Reporter: Alexander Kitaev
> Assignee: Kristian Rosenvold
>
> The following debug output demonstrates the problem:
> ...
> [INFO] Toolchain in compiler-plugin: JDK[C:/Users/alex/Software/jdk1.5.0_22]
> ...
> [INFO] Toolchain in surefire-plugin: JDK[C:/Users/alex/Software/jdk1.5.0_22]
> [WARNING] Toolchains are ignored, 'executable' parameter is set to
> C:\Users\alex\Software\jdk1.6.0_19\jre\bin\java
> Forking command line: cmd.exe /X /C
> "C:\Users\alex\Software\jdk1.6.0_19\jre\bin\java -jar
> ...
> Compiler plugin uses proper JDK, while Surefire falls back to default. The
> problem is not reproducible with Surefire 2.6 and 2.5.
--
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