[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[tycho-user] Cannot resolve indirectly referenced type
|
- From: Eric Jain <eric.jain@xxxxxxxxx>
- Date: Tue, 5 Apr 2011 10:06:28 -0700
- Delivered-to: tycho-user@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=hIV5hdtjM9eWLZ4NEOkFQ5Q7lmF2J0X/Wi3nCAq438A=; b=jaryFuTBt5rKTEFZrfPbd+o2UvYf6eseD4/cUSVvxy0pmgXVLfVaZeiUywt9t6AXHd IUItQmZYIjgkht16j+kh5o0GefrPznh9PsLhlTxTfOdgEsunNUvqnHnjD/m2XQH/SXC9 YFnDp1kNSJS+RgVl0pKyCOWey4OQUQbzODgCU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fdWSoYye2T+79XGvKh2E0PwbemR9xS/GvL88RLuK8UkTiMEY8mJgGWH5YMfS781nMZ 25P2Dcg653goWdAwqtcQVzAhkcOkppAz6eg67B93qkx/feiY64BHWskbPawyWECheDRP xxe/smi9bTPBdmPDX7FrHEtKJ5TWeR9Wf2734=
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?