Skip to content
Advertisement

Why can’t Maven Tycho find the correct JDK in toolchains.xml?

I have made a simple RCP application to test Maven builds.

My question is why Maven Tycho can’t find the JDK’s defined in the toolchain and how can I fix those issues?

My RCP plugin uses JDK-15 and I believe that the target-platform brings the dependencies to JDK-11 and JDK-16.

I run ‘mvn clean verify’ and everything seems ok except of following two warnings:

JavaScript

My pom.xml looks like:

JavaScript

My toolchains.xml looks like:

JavaScript

Advertisement

Answer

Tycho looks for the Execution Environment in an <id> section in the <provides> list.

For example, I have:

JavaScript

For JavaSE-16

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement