maven-toolchains-plugin
maven-toolchains-plugin copied to clipboard
Apache Maven Toolchains Plugin
Mostly a copy edit for clarity. @slawekjaranowski
Bumps [org.codehaus.plexus:plexus-xml](https://github.com/codehaus-plexus/plexus-xml) from 3.0.0 to 3.0.1. Release notes Sourced from org.codehaus.plexus:plexus-xml's releases. 3.0.1 🐛 Bug Fixes Allow nulls for write elements in MXSerializer (#41) @slawekjaranowski Remove special chars from xml...
### Bug description Broken link: https://maven.apache.org/plugins/maven-toolchains-plugin/guides/mini/guide-using-toolchains.html returns 404 ### Maven site URL where bug exists https://maven.apache.org/plugins/maven-toolchains-plugin/guides/mini/guide-using-toolchains.html
JIRA issue: [MTOOLCHAINS-53](https://issues.apache.org/jira/browse/MTOOLCHAINS-53) Fix possible NPE when `doGetToolchainModel` returns `null`.
This PR upgrades the plugin to Maven 4.0.0-rc-3. It does not fully work because extensions for Maven 4 are not correctly supported yet.
Add additional locations for auto-discovery to scan Resolves #129 --- Since https://github.com/apache/maven-toolchains-plugin/commit/3f9736c9f3cc90bb47519d8f99b60aee91f1b0fa running tests locally (on macOS) fails the build; I have not yet had the chance to debug this...
### New feature, improvement proposal Currently the following locations are scanned for auto-discovery as described in the [ToolchainDiscoverer](https://github.com/apache/maven-toolchains-plugin/blob/0a60ed448c00d48f6ee400362c912c395356b142/src/main/java/org/apache/maven/plugins/toolchain/jdk/ToolchainDiscoverer.java#L422-L454): **Generically** - `$HOME/.jdks` - `$HOME/.m2/jdks` - `$HOME/.sdkman/candidates/java` - `$HOME/.gradle/jdks` - `$HOME/.jenv/versions` -...
### Affected version 3.2.0 ### Bug description Executing `mvn org.apache.maven.plugins:maven-toolchains-plugin:3.2.0:display-discovered-jdk-toolchains` works, and returns all JDKs installed on my machine, but I don't know how to cinfigure Maven to use Java...