Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] should <showWarnings>false</showWarnings> work?

ok also figured this one

even if you specify stuff like -warn=none or <showWarnings>false

that has all no effect if you dont specify:

<useProjectSettings>false</useProjectSettings>

because that is by default true, and that just overwrites it all.. 

i wonder is that really about warnings? What the compiler should report? not how it should compile or anything else not related to reporting warnings?



On Mon, 14 Oct 2019 at 18:22, Johan Compagner <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

Back to the top