maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hüseyin Kartal (JIRA) <j...@apache.org>
Subject [jira] [Created] (MNG-6728) toolchain.xml should support absense of version and/or vendor in the configuraion
Date Tue, 06 Aug 2019 10:57:00 GMT
Hüseyin Kartal created MNG-6728:
-----------------------------------

             Summary: toolchain.xml should support absense of version and/or vendor in the
configuraion
                 Key: MNG-6728
                 URL: https://issues.apache.org/jira/browse/MNG-6728
             Project: Maven
          Issue Type: Improvement
          Components: Toolchains
    Affects Versions: 3.6.1
            Reporter: Hüseyin Kartal


When a toolchain.xml is configured as follow:
{quote}{{<?xml version="1.0" encoding="UTF8"?>}}
{{<toolchains>}}
{{ <!-- JDK toolchains -->}}
{{ <toolchain>}}
{{ <type>jdk</type>}}
{{ <provides>}}
{{ <version>8</version>}}
{{ <vendor>oracle</vendor>}}
{{ </provides>}}
{{ <configuration>}}
{{ <jdkHome>${env.JDK_HOME_8}</jdkHome>}}
{{ </configuration>}}
{{ </toolchain>}}
{{ <toolchain>}}
{{ <type>jdk</type>}}
{{ <provides>}}
{{ <version>12</version>}}
{{ <vendor>oracle</vendor>}}
{{ </provides>}}
{{ <configuration>}}
{{ <jdkHome>${env.JDK_HOME_12}</jdkHome>}}
{{ </configuration>}}
{{ </toolchain>}}
 *{{<toolchain>}}*
 *{{<type>jdk</type>}}*
 *{{<configuration>}}*
 *{{<jdkHome>${env.JAVA_HOME}</jdkHome>}}*
 *{{</configuration>}}*
 *{{</toolchain>}}*
{{ </toolchains>}}
{quote}
The last jdk configuration without version and vendor should match any requested version and/or
vendor.

This would allow us to define a fallback toolchain.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message