Discussion:
[tycho-user] Tycho 1.3 + Java 11 + javax.annotation
Christian Dietrich
2018-11-02 12:29:39 UTC
Permalink
Hi,

Java 11 removed javax.annotation.
This leads to test failures like

!ENTRY org.eclipse.ui 4 0 2018-11-02 12:33:19.100
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module:
org.eclipse.ui [23]
Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench;
bundle-version="[3.112.0,4.0.0)"; visibility:="reexport"
-> Bundle-SymbolicName: org.eclipse.ui.workbench;
bundle-version="3.112.100.v20181005-0915"; singleton:="true"
org.eclipse.ui.workbench [106]
Unresolved requirement: Import-Package: javax.annotation

i wonder if i really have to add

<unit id="javax.annotation" version="1.2.0.v201602091430"/>

to my target and something like

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<!-- to get the org.eclipse.osgi.compatibility.state plugin
if the target platform is Luna or later.
(backward compatible with kepler and previous versions)
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=492149 -->
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.rcp</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>

or if there are any plans to make this happen "automatically" somehow
--
Christian Dietrich (Diplom-Informatiker (BA))
Softwareentwickler / -Architekt

Tel.: +49 (0) 711 / 34 21 91-0
Fax.: +49 (0) 711 / 34 21 91-29
Mobil: +49 (0) 151 / 173969 17
Mail: ***@itemis.de
XING: https://www.xing.com/profile/Christian_Dietrich8
Web: http://www.itemis.de
Skype: christiandietrich1982
ICQ: 125801794

itemis AG
Niederlassung Süd
Industriestraße 6
70565 Stuttgart

Rechtlicher Hinweis:
Registergericht: Amtsgericht Dortmund HRB 20621 | Sitz der Gesellschaft:
Lünen
Vorstand: Jens Wagener (Vorsitzender) | Wolfgang Neuhaus
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vors.) | Michael Neuhaus |
Jennifer Fiorentino
Ed Willink
2018-11-02 13:54:17 UTC
Permalink
Hi

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=539038 where I suggest
that use of jdt.annotation should auto-require javax.annotation.

Regards

Ed Willink
Post by Christian Dietrich
Hi,
Java 11 removed javax.annotation.
This leads to test failures like
!ENTRY org.eclipse.ui 4 0 2018-11-02 12:33:19.100
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.eclipse.ui [23]
Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench;
bundle-version="[3.112.0,4.0.0)"; visibility:="reexport"
-> Bundle-SymbolicName: org.eclipse.ui.workbench;
bundle-version="3.112.100.v20181005-0915"; singleton:="true"
org.eclipse.ui.workbench [106]
Unresolved requirement: Import-Package: javax.annotation
i wonder if i really have to add
<unit id="javax.annotation" version="1.2.0.v201602091430"/>
to my target and something like
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<!-- to get the org.eclipse.osgi.compatibility.state plugin
if the target platform is Luna or later.
(backward compatible with kepler and previous versions)
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=492149 -->
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.rcp</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
or if there are any plans to make this happen "automatically" somehow
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Loading...