Re: Maven Compiler Plugin: Not respecting testRelease flag?

Nils Breunese <[email protected]> Fri, 24 Oct 2025 02:10:57 +0200
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <[email protected]>
Polarian <[email protected]> wrote:

> Toolchain needs a config which as far as I am aware needs to be added
> to the users .m2 directory within their home directory. This will break
> distro build systems. Also even if it could be possible it adds extra
> steps, and an extra file to maintain.

https://maven.apache.org/guides/mini/guide-using-toolchains.html says that ~/.m2/toolchains.xml is required, but I believe that’s no longer true with the arrival of the JDK Toolchain discover mechanism: https://maven.apache.org/plugins/maven-toolchains-plugin/toolchains/jdk-discovery.html

There are however some maven-toolchains-plugin issues that have been open for a while, which may or may not affect your use cases: https://github.com/apache/maven-toolchains-plugin/issues

Nils.