# Add support for Maven Toolchain Plugin

**URL:** <https://travis-ci.community/t/add-support-for-maven-toolchain-plugin/5004>\
**Category:** Feature Requests\
**Created:** [September 5, 2019, 2:25pm UTC](https://travis-ci.community/t/add-support-for-maven-toolchain-plugin/5004 "2019-09-05T14:25:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mondain](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/mondain/32/2658_2.png) [@mondain](https://travis-ci.community/u/mondain)\
**Post date:** [September 5, 2019, 2:25pm UTC](https://travis-ci.community/t/add-support-for-maven-toolchain-plugin/5004/1 "2019-09-05T14:25:10Z")

</div>

The Maven compiler plugin now supports multiple JDK’s via their toolchain plugin, more information may be found here [https://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html](https://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html) IMHO Toolchains would be an outstanding feature to add to TravisCI, in general.

Our project requires the plugin due to changes in our build process.

```auto
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-toolchains-plugin:3.0.0:toolchain (default) on project red5-io: Cannot find matching toolchain definitions for the following toolchain types:
[ERROR] jdk [version='[1.11,)']
[ERROR] Please make sure you define the required toolchains in your ~/.m2/toolchains.xml file.

```

Failing build: [https://travis-ci.org/Red5/red5-io](https://travis-ci.org/Red5/red5-io)

---

<div class="post-metadata">

**Author:** ![russgold](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/russgold/32/2744_2.png) [@russgold](https://travis-ci.community/u/russgold)\
**Post date:** [September 22, 2019, 4:46am UTC](https://travis-ci.community/t/add-support-for-maven-toolchain-plugin/5004/2 "2019-09-22T04:46:01Z")

</div>

I understand that this has been requested in the past, and can understand a reluctance to support it; however, it is extremely difficult to maintain toolchains by project in travis for the simple reason that the locations of the installed jdks are not obvious and they do keep changing. Is there some place where they are documented? Or perhaps system variables could be defined to allow us to locate them?
