Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Forking in combination with BREE (Re: should <showWarnings>false</showWarnings> work?)

I don't know much about the compiler stuff, just noticed that the error complains about:

JavaSE-1.8 not found

and in the xml the id is 'JavaSE-8' may thats a problem?

Am 15.10.19 um 10:17 schrieb Johan Compagner:

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:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.4.0:compile (default-compile) on project servoy_base: useJDK = BREE configured, but no toolchain of type 'jdk' with id 'JavaSE-1.8' found. See -> [Help 1]

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?


On Mon, 14 Oct 2019 at 18:22, Johan Compagner <jcompagner@xxxxxxxxxx <mailto:jcompagner@xxxxxxxxxx>> wrote:


    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:

    Bundle-RequiredExecutionEnvironment: JavaSE-1.8

    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..

-- Johan Compagner

Johan Compagner

tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top