[
https://issues.apache.org/jira/browse/MNG-5855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14701473#comment-14701473
]
Jan Sievers commented on MNG-5855:
----------------------------------
you can easily test this by using sample project
http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/itp01
and adding
{code}
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<useJDK>BREE</useJDK>
</configuration>
</plugin>
{code}
and running it with a local toolchains.xml file
{code}
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<id>J2SE-1.5</id>
</provides>
<configuration>
<jdkHome>/path/to/java-5/home/</jdkHome>
</configuration>
</toolchain>
</toolchains>
{code}
(as well as a deliberately broken one in ~/.m2/toolchains.xml) using maven
3.3.3:
{code}
mvn clean install --toolchains ./toolchains.xml
{code}
this works. That means whatever you are seeing is not a maven nor a Tycho bug.
> Maven 3.3.3 ignores the customized Toolchain
> --------------------------------------------
>
> Key: MNG-5855
> URL: https://issues.apache.org/jira/browse/MNG-5855
> Project: Maven
> Issue Type: Bug
> Components: Bootstrap & Build
> Affects Versions: 3.3.3
> Reporter: Samuel Wu
> Labels: patch
> Fix For: 3.3.7
>
>
> This is an Eclipse build in the Hudson environment. Maven 3.3.3 was used to
> run the build and a customized Toolchain is defined by --toolchains option.
> But the customized toolchain location is ignored by Maven and the default
> user toolchain in the directoy ~/.m2 is always picked up.
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=472084 for more details.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)