The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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 (9) [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.