[
https://issues.apache.org/jira/browse/SUREFIRE-720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16275720#comment-16275720
]
Tibor Digana commented on SUREFIRE-720:
---------------------------------------
[[email protected]]
[~thosch]
[~yagee]
This should be user error because we have IT with toolchains.xml and it works.
You don't have config parameter toolchains, see this for more info:
https://github.com/apache/maven-surefire/blob/master/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Java9FullApiIT.java#L80
https://github.com/apache/maven-surefire/blob/master/surefire-integration-tests/src/test/resources/java9-full-api/pom.xml#L109
https://github.com/apache/maven-surefire/blob/master/surefire-integration-tests/pom.xml#L111
https://github.com/apache/maven-surefire/blob/master/surefire-setup-integration-tests/src/main/resources/toolchains.xml
> Toolchain is ignored
> --------------------
>
> Key: SUREFIRE-720
> URL: https://issues.apache.org/jira/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: Jun
> Assignee: Tibor Digana
> Fix For: 2.9
>
> Attachments: SurefireToolchains.zip
>
>
> 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 was sent by Atlassian JIRA
(v6.4.14#64029)