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