[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Cannot resolve dependencies in 0.14.0
|
Igor,
Your example is very close to one I made that also works in 0.14.0.
Upon looking at our project a little closer, I am noticing the
following warning. I did a quick Google for "tycho system.bundle", but
couldn't find anything specific aside from some emails on this list.
Is the system.bundle a tycho or equinox thing?
[WARNING] No sustem.bundle
Thank you,
Ben
On Mon, Feb 6, 2012 at 5:27 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
> I am unable to reproduce the problem (see attached example). I will need
> a standalone complete example project and steps to reproduce the problem
> to be able to help you troubleshoot it.
>
> --
> Regards,
> Igor
>
>
> On 12-02-06 5:54 PM, Ben Abernathy wrote:
>>
>> The Bundle-RequiredExecutionEnvironment is JavaSE-1.6 and that version
>> of the JRE does have those packages. Does OSGi/Equinox treat javax
>> packages differently such that they are not automatically provided by
>> the runtime? And if the default runtime does not expose those
>> packages, even though it does contain them, then how would I specify
>> them as a maven dependency?
>>
>> Thanks,
>> Ben
>>
>> On Mon, Feb 6, 2012 at 3:32 PM, Igor Fedorenko<igor@xxxxxxxxxxxxxx>
>> wrote:
>>>
>>> Are these packages expected to come from the target JVM defined by
>>> Bundle-RequiredExecutionEnvironment?
>>>
>>> --
>>> Regards,
>>> Igor
>>>
>>>
>>> On 12-02-06 4:55 PM, Ben Abernathy wrote:
>>>>
>>>>
>>>> I am building a project using tycho 0.14.o and starting with the
>>>> 9d71c422fb004896bbc8b81963393e7ede88b5cc commit (related to this
>>>> ticket: https://bugs.eclipse.org/bugs/show_bug.cgi?id=367701), I have
>>>> been having problems importing packages such as
>>>> javax.xml.bind.annotations.adapters and javax.xml.datatype. Upon using
>>>> the previous commit, everything builds fine. The dependencies listed
>>>> are not optional and do not specify a version match. Before I start
>>>> building a minimal example project, I thought I'd shoot off this email
>>>> to see if there is an obvious solution. I've included the stack trace
>>>> below for reference.
>>>>
>>>> Thanks in advance,
>>>>
>>>> Ben
>>>>
>>>> --build error--
>>>>
>>>> org.apache.maven.InternalErrorException: Internal error:
>>>> java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle
>>>> com.example.core cannot be resolved
>>>> Resolution errors:
>>>> Bundle com.example.core - Missing Constraint: Import-Package:
>>>> javax.xml.bind.annotation.adapters; version="0.0.0"
>>>> Bundle com.example.core - Missing Constraint: Import-Package:
>>>> javax.xml.datatype; version="0.0.0"
>>>>
>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>> at
>>>>
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at
>>>>
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>>> at
>>>>
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>>> at
>>>>
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>>> at
>>>>
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>>>> Caused by: java.lang.RuntimeException:
>>>> org.osgi.framework.BundleException: Bundle com.example.core cannot be
>>>> resolved
>>>> Resolution errors:
>>>> Bundle com.example.core - Missing Constraint: Import-Package:
>>>> javax.xml.bind.annotation.adapters; version="0.0.0"
>>>> Bundle com.example.core - Missing Constraint: Import-Package:
>>>> javax.xml.datatype; version="0.0.0"
>>>>
>>>> at
>>>>
>>>> org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:252)
>>>> at
>>>>
>>>> org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolveClassPath(OsgiBundleProject.java:158)
>>>> at
>>>>
>>>> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:111)
>>>> at
>>>>
>>>> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:61)
>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>> ... 11 more
>>>> Caused by: org.osgi.framework.BundleException: Bundle com.example.core
>>>> cannot be resolved
>>>> Resolution errors:
>>>> Bundle com.example.core - Missing Constraint: Import-Package:
>>>> javax.xml.bind.annotation.adapters; version="0.0.0"
>>>> Bundle com.example.core - Missing Constraint: Import-Package:
>>>> javax.xml.datatype; version="0.0.0"
>>>>
>>>> at
>>>>
>>>> org.eclipse.tycho.core.osgitools.EquinoxResolver.assertResolved(EquinoxResolver.java:280)
>>>> at
>>>>
>>>> org.eclipse.tycho.core.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:69)
>>>> at
>>>>
>>>> org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:250)
>>>> ... 16 more
>>>> _______________________________________________
>>>> tycho-user mailing list
>>>> tycho-user@xxxxxxxxxxx
>>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>>
>>>
>>> _______________________________________________
>>> tycho-user mailing list
>>> tycho-user@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>