Everyone,
I get the error below when trying to use EclipseLink in an RCP
application with Tycho 0.14 -OR- Tycho 0.13. It is resolved by adding
javax.persistence to the imported package list of all of my bundles,
even those that do not explicitly use it.
I think this is a regression of this bug:
http://dev.eclipse.org/mhonarc/lists/tycho-user/msg00030.html
The DataComponent class mentioned below is annotated with JPA
annotations and it is class that is used by almost all of the other
bundles. I would expect the dependency to be resolved transitively.
Is there a way to fix this in Tycho?
Jay
-----
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-
compiler-plugin:0.14.0:compile (default-compile)
on project gov.ornl.nice.niceclient: Compilation failure: Compilation
failure:
[ERROR]
/home/bkj/research/NiCE/
NiCEWorkspace/gov.ornl.nice.
niceclient/src/gov/ornl/nice/
niceclient/iniceclient/
uiwidgets/IExtraInfoWidget.
java:[1,0]
[ERROR] package gov.ornl.nice.niceclient.
iniceclient.uiwidgets;
[ERROR] ^
[ERROR] The type javax.persistence.CascadeType cannot be resolved. It is
indirectly referenced from required .class files
[ERROR]
/home/bkj/research/NiCE/
NiCEWorkspace/gov.ornl.nice.
niceclient/src/gov/ornl/nice/
niceclient/iniceclient/
uiwidgets/IExtraInfoWidget.
java:[1,0]
[ERROR] package gov.ornl.nice.niceclient.
iniceclient.uiwidgets;
[ERROR] ^
[ERROR] The type javax.persistence.FetchType cannot be resolved. It is
indirectly referenced from required .class files
[ERROR]
/home/bkj/research/NiCE/
NiCEWorkspace/gov.ornl.nice.
niceclient/src/gov/ornl/nice/
niceclient/eclipseuiwidgets/
NiCEDataComponentSectionPart.
java:[92,0]
[ERROR] System.out.println("
DataComponent " + dataComp.getName() + ":");
[ERROR] ^^^^^^^^^^^^^^^^^^
[ERROR] The type javax.persistence.
GenerationType cannot be resolved. It
is indirectly referenced from required .class files
[ERROR]
/home/bkj/research/NiCE/
NiCEWorkspace/gov.ornl.nice.
niceclient/src/gov/ornl/nice/
niceclient/eclipseuiwidgets/
NiCEDataComponentSectionPart.
java:[92,0]
[ERROR] System.out.println("
DataComponent " + dataComp.getName() + ":");
[ERROR] ^^^^^^^^^^^^^^^^^^
[ERROR] The type javax.persistence.
InheritanceType cannot be resolved.
It is indirectly referenced from required .class files
[ERROR] 4 problems (4 errors)
[ERROR] -> [Help 1]