[ https://issues.apache.org/jira/browse/MTOOLCHAINS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16893084#comment-16893084 ]
Hüseyin Kartal commented on MTOOLCHAINS-29: ------------------------------------------- Well on the CI we don't need to use the toolchain. Because we use the image with the fitting tools. And we also use the enforcer plugin to check (but not fail). But on developer environments there could be more not fitting tools. Like JDK9+ wich will already fail with JDK8 projects. The changes of jdk9+ made the toolchain essencial again, But i am sure mostly, a warning would be enough. At the first place the toolchains-plugin should provide the ability to share configuration, not to enforce. This job does the enforcer plugin quite well with a great set of built-in rules. I could imagine that it is maybe posible to switch jdk just by using profiles, even without toolchain. But that would just blow up the POM. And it is the same with your consideration to enable or disable toolchain by profiles. Just because there is a workaround, This feature shouldn't rejected. Despite of the last release, the toolchain plugin just didn't developed for a long time. This would be a nice movement to get more similarity to enforcer plugin. This is an optional convenient and common (enforcer-plugin) feature. So come on. > Possibility not to fail if toolchain.xml is not available > --------------------------------------------------------- > > Key: MTOOLCHAINS-29 > URL: https://issues.apache.org/jira/browse/MTOOLCHAINS-29 > Project: Maven Toolchains Plugin > Issue Type: Improvement > Affects Versions: 1.1 > Reporter: Hüseyin Kartal > Assignee: Robert Scholte > Priority: Major > Time Spent: 20m > Remaining Estimate: 0h > > In development environment we face the problem of multiple jdk's. But also > some environments are setup for single jdk's like in CI/CD. > In these environments we don't supply a toolchain.xml. But the project > pom.xml has a toolchain plugin configuration with the needed jdk and fails > therefore. > A possibility to tell toolchain just to warn without fail in these > environments would be very convenient. Maybe like the enforcer-plugin > [https://maven.apache.org/enforcer/maven-enforcer-plugin/enforce-mojo.html#fail] -- This message was sent by Atlassian JIRA (v7.6.14#76016)