You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2019/06/08 08:46:00 UTC

[jira] [Closed] (MNG-6665) toolchain.xml file should support environment variables

     [ https://issues.apache.org/jira/browse/MNG-6665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MNG-6665.
-------------------------------
       Resolution: Fixed
         Assignee: Robert Scholte
    Fix Version/s: 3.6.2

Fixed in [aed51304870028e8bdbc3d85c9bd67cd741776e4|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=aed51304870028e8bdbc3d85c9bd67cd741776e4]
Thanks for the patch!

> toolchain.xml file should support environment variables
> -------------------------------------------------------
>
>                 Key: MNG-6665
>                 URL: https://issues.apache.org/jira/browse/MNG-6665
>             Project: Maven
>          Issue Type: Improvement
>    Affects Versions: 3.6.1
>         Environment: Windows 7 64bit
>            Reporter: Nicolas Radde
>            Assignee: Robert Scholte
>            Priority: Minor
>              Labels: infosupport
>             Fix For: 3.6.2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When the toolchain.xml file is configured as follow :
> {code:xml}
> <toolchain>
>     <type>jdk</type>
>     <provides>
>       <version>1.8</version>
>       <vendor>sun</vendor>
>     </provides>
>     <configuration>
> 	<jdkHome>${env.JDK_HOME_8}</jdkHome>
>     </configuration>
> </toolchain>
> {code}
> The execution of a maven compile fail with the following error :
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-toolchains-plugin:
> 1.1:toolchain (default) on project monitoring-mq-web: Misconfigured toolchains.
> Non-existing JDK home configuration at L:\test-monitoring-mq\${env.JDK_HOME_8} -> [Help 1]
> {noformat}
> While the environment variable *JDK_HOME_8* exist.
> Using environment variable is a very convenient way to have the same toolchain.xml file for all developers or jenkins slaves and would be a nice addition to the plugin.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)