-
When we try to build our plugin with Java 17 we get the following error: [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:2.6.0-SNAPSHOT:test (default-test) on project org.faktorips.devtools.multiediting.test: An unexpected error occurred while launching the test runtime (process returned error code 1 (HRESULT Code 0x1, check for example https://www.hresult.info/ for further details)). Command-line used to launch the sub-process was null -Dosgi.noShutdown=false -Dosgi.os=win32 -Dosgi.ws=win32 -Dosgi.arch=x86_64 -javaagent:C:\Users\lstork\.m2\repository\org\jacoco\org.jacoco.agent\0.8.6\org.jacoco.agent-0.8.6-runtime.jar=destfile=C:\git\fips\faktorips.multiediting\org.faktorips.devtools.multiediting.test\target\jacoco.exec -Xms256m -Xmx512m The method AbstractTestMojo#getToolchain in tycho-surefire-plugin returns null, so the toolchain is not found. With Java 11 there are no issues. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
-
It looks like Tycho cannot find your Java installation. You may have a toolchain wrongly configured. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, my toolchain looks like this:
it works fine for other builds, but the 'JavaSE-17'-toolchain seems to not be picked up by the tycho-surefire-plugin. Quite possibly this is a bug in the maven-toolchains-plugin? |
Beta Was this translation helpful? Give feedback.
-
If this is reproducible, then please create a proper issue about it as it seems like a bug. |
Beta Was this translation helpful? Give feedback.
-
Solved via #393 . |
Beta Was this translation helpful? Give feedback.
Solved via #393 .