Closed nielsbasjes closed 7 months ago
The method org.apache.maven.execution.MavenSession.getContainer()
has been deprecated 9 years ago, it would be really a time to move off from that method.
If it helps, here is a workaround:
${java.home}/bin/java
Idea is to pass an existing path to the executable
value, this way toolchain is not used (it is wrongly used anyway since you don't want to use java from toolchain but from the env...)
Put this
pom.xml
in an empty directory:Doing
mvn validate
using maven 3.9.6 I get thisDoing
mvn validate
using maven 4.0.0-m10 I get this (wrapped for readability)The stacktrace where it fails: