[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] WTP missing constraint org.eclipse.jface.text

org.eclipse.jface.text is a split package provided by two bundles --
org.eclipse.jface.text and org.eclipse.text. Since P2 does not support
split packages, I needed to add the following snippet to
plugins/org.eclipse.wst.jsdt.debug.core/pom.xml to help P2 choose the
right IU.


<build> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <configuration> <dependency-resolution> <extraRequirements> <requirement> <type>eclipse-plugin</type> <id>org.eclipse.jface.text</id> <versionRange>0.0.0</versionRange> </requirement> </extraRequirements> </dependency-resolution> </configuration> </plugin> </plugins> </build>

--
Regards,
Igor

On 12-05-02 11:37 AM, Thanh Ha wrote:
Hi Everyone

I've been working on create a tycho build for the WTP project. I've run
into some issues which I'm not too sure about below regarding "Missing
Constraint: Import-Package: org.eclipse.jface.text" which I hope someone
can help me with.

It seems like the package org.eclipse.wst.jsdt.debug.core needs to
import org.eclipse.jface.text. Strangely though when I look into the p2
repository I'm using [1] to download the bundles that jface.text
requirement exists. I'm not sure why maven/tycho does not seem to be
picking it up. I've pasted the logs below. Does anyone know what could
be causing this?


Thanks,


Thanh

[1] http://download.eclipse.org/eclipse/updates/4.2milestones



[INFO] Resolving dependencies of MavenProject:
org.eclipse.jsdt:org.eclipse.wst.jsdt.debug.core:3.1.0-SNAPSHOT @
/home/user/Downloads/eclipse2/webtools/org.eclipse.jsdt/plugins/org.eclipse.wst.jsdt.debug.core/pom.xml

[INFO] Resolving class path of MavenProject:
org.eclipse.jsdt:org.eclipse.wst.jsdt.debug.core:3.1.0-SNAPSHOT @
/home/user/Downloads/eclipse2/webtools/org.eclipse.jsdt/plugins/org.eclipse.wst.jsdt.debug.core/pom.xml

[ERROR] Internal error: java.lang.RuntimeException:
org.osgi.framework.BundleException: Bundle
org.eclipse.wst.jsdt.debug.core cannot be resolved
[ERROR] Resolution errors:
[ERROR] Bundle org.eclipse.wst.jsdt.debug.core - Missing Constraint:
Import-Package: org.eclipse.jface.text; version="0.0.0"
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle
org.eclipse.wst.jsdt.debug.core cannot be resolved
Resolution errors:
Bundle org.eclipse.wst.jsdt.debug.core - Missing Constraint:
Import-Package: org.eclipse.jface.text; version="0.0.0"

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
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
org.eclipse.wst.jsdt.debug.core cannot be resolved
Resolution errors:
Bundle org.eclipse.wst.jsdt.debug.core - Missing Constraint:
Import-Package: org.eclipse.jface.text; 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:274)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
Caused by: org.osgi.framework.BundleException: Bundle
org.eclipse.wst.jsdt.debug.core cannot be resolved
Resolution errors:
Bundle org.eclipse.wst.jsdt.debug.core - Missing Constraint:
Import-Package: org.eclipse.jface.text; 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

_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev