[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] javax.persistence class cannot be resolved - It is indirectly referenced from required .class files
|
I don't have the time to investigate problems with source tree this big,
but your target platform configuration does not look right. I do not
believe Tycho supports target file with location type="Directory", only
type="InstallableUnit" is supported. From what I can tell, the build
should fail with dependency resolution errors unless you have installed
required dependencies to your local repository. Try running the build
with -Dmaven.repo.local=<some-empty-dir> and see what happens.
--
Regards,
Igor
On 12-06-01 6:19 PM, Jay Jay Billings wrote:
Igor,
I do not have examples of this happening that are independent of my code
base, but my code is relatively small and completely open-source. Is
that sufficient for a standalone example?
Access and build instructions:
http://sourceforge.net/apps/mediawiki/niceproject/index.php?title=Getting_NiCE#Regular_Command_Line_SVN_Access
Repo: https://niceproject.svn.sourceforge.net/svnroot/niceproject/trunk
The current build has each plugin importing javax.persistence in their
MANIFEST.mf files, which would have to be removed from at least one of
the bundles to produce "[ERROR] The type javax.persistence.CascadeType
cannot be resolved. It is indirectly referenced from required .class files."
If you need something smaller, I can try to put it together for you over
the weekend.
One point that may be important: we are using EclipseLink
(org.eclipse.persistence).
Thanks!
Jay
On Fri, Jun 1, 2012 at 5:50 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx
<mailto:igor@xxxxxxxxxxxxxx>> wrote:
Are you able to provide complete standalone example that demonstrates
the problem?
--
Regards,
Igor
On 12-06-01 5:00 PM, Jay Jay Billings wrote:
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 <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]
_________________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
https://dev.eclipse.org/__mailman/listinfo/tycho-user
<https://dev.eclipse.org/mailman/listinfo/tycho-user>
_________________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
https://dev.eclipse.org/__mailman/listinfo/tycho-user
<https://dev.eclipse.org/mailman/listinfo/tycho-user>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user