i tried a few things more to get my warnings out and playing with useJDK
I have to seem to be missing some docs.. or the docs really needs to be updated of the compiler plugin, for example fork:
there is nothing that says there in the docs that that needs some more stuff
Because if you just enabled that you will get:
Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.4.0:compile (default-compile) on project servoy_base: Fatal error compiling: compileoutOfProcess not supported -> [Help 1]
Then i though hmm maybe this will work with <useJDK>BREE</useJDK> that we then will fork out, if i also add that:
But as far as i know i have it all configured, i have a toolchains.xml file in my .m2 dir:
<!-- JDK toolchains -->
i have then also enabled the toolchain plugin:
the output of that plugin says that it did find it:
[INFO] --- maven-toolchains-plugin:3.0.0:toolchain (default) @ servoy_base ---
[INFO] Required toolchain: jdk [ id='JavaSE-8' ]
[INFO] Found matching toolchain for type jdk: JDK[c:/javatools/jdk18/]
But still i get the error above...
So how is this supposed to work?
What steps am i missing here?
i have this:
but it will show warnings no matter what
i also tried to run with:
mvn clean install -Dmaven.compiler.showWarnings=false
but still a lot of warnings..
The same thing is that i can't get that <useJDK> to work
i have added this in my toolchains.xml file:
and then use
in the configuration of the tycho compiler plugin
and in the manifest i do have:
But no matter what if i then run maven (java.home property) with java12
it will start to complain it can't find or use it:
Could not find specification for custom execution environment profile 'JavaSE-12'
also the -X of maven doesn't really tell that much, i had hopped for a bit more output of the compiler plugin..