|[tycho-user] Testing staged Tycho 2.0.0|
I wanted to test the staged Tycho 2.0.0 today for some projects. But I have problems getting even the first build to finish. Not sure if it is an issue in the setup to consume the staged Tycho plugins.
I added the following lines to the pom.xml of the project I want to test (also tried adding it to the settings.xml)
When I execute the build I get the following error:
Plugin org.eclipse.tycho:tycho-p2-director-plugin:2.0.0-SNAPSHOT or one of its dependencies could not be resolved: Failure to find org.eclipse.tycho:tycho-p2-director-plugin:jar:2.0.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/orgeclipsetycho-1063 was cached in the local repository, resolution will not be reattempted until the update interval of tycho-staged has elapsed or updates are forced
Even running the build using mvn –U clean verify the error occurs. Am I missing something?
In the build log I see the following warning multiple times:
[WARNING] The POM for org.eclipse.tycho:tycho-p2-director-plugin:jar:2.0.0-SNAPSHOT is missing, no dependency information available
Could it be related to this somehow?
Additionally I have another error. Since Tycho 2.0.0 requires minimum Java 11 I updated my build environment to use a Java 11 JDK for the build. I left the project unchanged that builds with Java 8 and Tycho 1.7 fine. The build fails with the following error:
!ENTRY org.eclipse.tycho.surefire.junit4 2 0 2020-08-12 10:43:41.356
!MESSAGE Could not resolve module: org.eclipse.tycho.surefire.junit4 
Unresolved requirement: Import-Package: javax.annotation
After searching a bit I have found out that this should have been fixed with Tycho 1.4
Following the suggestions in this ticket I added javax.annotation from Orbit to the target platform. But this still does not fix the issue. I have to add javax.annotation to the test bundle so it gets added to the test runtime. But I understood from the comments in the bug report that this should not be necessary if javax.annotation is included in the target platform. I am using a target definition based build.
Is there anything else that has to be configured to make Tycho based builds that contain test bundles to run with Java 11?
BTW, this also happens with older Tycho versions. So probably not related to 2.0.0.
I am using the pom-less Tycho approach and all projects still have the BREE 1.8 set.
Mit freundlichen Grüßen / Best regards
Back to the top