Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-dev] Testing staged Tycho 2.0.0

Hi,

 

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)

 

<pluginRepository>

            <id>tycho-staged</id>

            <url>https://oss.sonatype.org/content/repositories/orgeclipsetycho-1063</url>

</pluginRepository>

 

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 [20]

  Unresolved requirement: Import-Package: javax.annotation

 

After searching a bit I have found out that this should have been fixed with Tycho 1.4

https://bugs.eclipse.org/bugs/show_bug.cgi?id=541403

 

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.

 

Note:

I am using the pom-less Tycho approach and all projects still have the BREE 1.8 set.

 

Mit freundlichen Grüßen / Best regards

Dirk Fauth


Cross Automotive Platforms - Systems, Software and Tools, (CAP-SST/ESM1)
Robert Bosch GmbH | Postfach 30 02 40 | 70442 Stuttgart | GERMANY | www.bosch.com
Tel.
+49 7153 666-1155 | Dirk.Fauth@xxxxxxxxxxxx

Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000;
Aufsichtsratsvorsitzender: Franz Fehrenbach; Geschäftsführung: Dr. Volkmar Denner,
Prof. Dr. Stefan Asenkerschbaumer, Dr. Michael Bolle, Dr. Christian Fischer, Dr. Stefan Hartung,
Dr. Markus Heyn, Harald Kröger, Christoph Kübel, Rolf Najork, Uwe Raschke, Peter Tyroller


Back to the top