khmarbaise (1) [Avatar] Offline
#1
Hi,

I have taken a look into the book and did not found any hint about using toolchain for the problem using JDK 8 / JDK 9 together ? Like running Maven on JDK 8 and do compile and test with JDK 9 ?

Can you give a reason why it is not mentioned in any kind ?

Furthermore the usage of .mavenrc is not the best choice to go with this...

Examples of the usage can be found here:

https://maven.apache.org/guides/mini/guide-using-toolchains.html
https://github.com/khmarbaise/jdk9-jlink-jmod-example/tree/master/maven-example


Kind regards
Karl Heinz Marbaise
Nicolai Parlog (2) [Avatar] Offline
#2
Hi Karl-Heinz,

first of all, sorry for the late reply. I overlooked the notification I got from this forum.

Can you give a reason why it is not mentioned in any kind?


Maybe I misunderstood, but as far as I know plugins need to be aware of the toolchain to actually use it. That made it insufficient for my needs, because the projects I migrated are quite large and use tons of plugins that run within the Maven process and can't be forked (I thus assumed they couldn't take advantage of the toolchain).

You are right, though, that it deserves a mention and I just put it into one of the places where I so far only mentioned .mavenrc.