[
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:
Hi,
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:
https://www.eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#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 
http://maven.apache.org/guides/mini/guide-using-toolchains.html -> [Help 1]
But as far as i know i have it all configured, i have a toolchains.xml 
file in my .m2 dir:
<toolchains>
   <!-- JDK toolchains -->
   <toolchain>
        <type>jdk</type>
        <provides>
         <id>JavaSE-8</id>
        </provides>
        <configuration>
         <jdkHome>c:/javatools/jdk18/</jdkHome>
        </configuration>
   </toolchain>
</toolchains>
i have then also enabled the toolchain plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<id>JavaSE-8</id>
</jdk>
</toolchains>
</configuration>
</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?
Johan
On Mon, 14 Oct 2019 at 18:22, Johan Compagner <jcompagner@xxxxxxxxxx 
<mailto:jcompagner@xxxxxxxxxx>> wrote:
    Hi,
    i have this:
         <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-compiler-plugin</artifactId>
    <version>${tycho.version}</version>
    <configuration>
    <showWarnings>false</showWarnings>
    xxxx
    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:
    <toolchain>
            <type>jdk</type>
            <provides>
            <id>JavaSE-8</id>
            </provides>
            <configuration>
            <jdkHome>c:/javatools/jdk18/</jdkHome>
            </configuration>
       </toolchain>
    and then use
    <useJDK>BREE</useJDK>
    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
    Servoy
--
Johan Compagner
Servoy
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/tycho-user