[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Tycho 1.3 + Java 11 + javax.annotation
|
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
On 02/11/2018 12:29, Christian Dietrich wrote:
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
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus