Some Java projects use JDK 8 and depend on tools.jar located under the JDK's systemPath. However, many recipes utilize classes that are only available in JDK 9 or later. Consequently, running these recipes on JDK 11 fails. I observed that adding the JVM option -Dmaven.main.skip=true allows these recipes to execute successfully by skipping certain build phases.
Can I safely apply -Dmaven.main.skip=true to all recipes? If so, what impact does this have on the recipes? Under which circumstances would this cause side effects, and when would it be safe without adverse consequences?
Some Java projects use JDK 8 and depend on tools.jar located under the JDK's systemPath. However, many recipes utilize classes that are only available in JDK 9 or later. Consequently, running these recipes on JDK 11 fails. I observed that adding the JVM option -Dmaven.main.skip=true allows these recipes to execute successfully by skipping certain build phases.
Can I safely apply -Dmaven.main.skip=true to all recipes? If so, what impact does this have on the recipes? Under which circumstances would this cause side effects, and when would it be safe without adverse consequences?