[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Cannot resolve indirectly referenced type

I have a class A with a member of type B that is imported from another
bundle. Class B has javax.persistence annotations, but that is
irrelevant in the bundle containing class A. This compiles and runs
fine in Eclipse, but unless I add an Import-Package for
javax.persistence to the bundle containing class A the Tycho build
fails:

[ERROR] Failed to execute goal
org.sonatype.tycho:maven-osgi-compiler-plugin:0.10.0:compile
(default-compile) on project test: Compilation failure: Compilation
failure:
[ERROR] A.java (at line 1):[-1,-1]
[ERROR] package test;
[ERROR] ^
[ERROR] The type javax.persistence.FetchType cannot be resolved. It is
indirectly referenced from required .class files

Who is right and who is wrong?