I got the following error when added
org.eclipse.osgi.compatibility.state as a dependency:
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed:
org.jboss.tools.common.all.test.feature.source.feature.group
3.6.0.qualifier
[ERROR] Missing requirement:
org.jboss.tools.common.model.ui.test 3.6.0.qualifier requires
'bundle org.eclipse.osgi.compatibility.state.source 0.0.0' but it
could not be found
[ERROR] Cannot satisfy dependency:
org.jboss.tools.common.all.test.feature.feature.group
3.6.0.qualifier depends on: org.jboss.tools.common.model.ui.test
0.0.0
[ERROR] Cannot satisfy dependency:
org.jboss.tools.common.all.test.feature.source.feature.group
3.6.0.qualifier depends on:
org.jboss.tools.common.all.test.feature.feature.group
[3.6.0,3.6.1)
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: No solution
found because the problem is unsatisfiable.: [Unable to satisfy
dependency from org.jboss.tools.common.model.ui.test
3.6.0.qualifier to bundle
org.eclipse.osgi.compatibility.state.source 0.0.0.; No solution
found because the problem is unsatisfiable.] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: No solution found because the problem
is unsatisfiable.: [Unable to satisfy dependency from
org.jboss.tools.common.model.ui.test 3.6.0.qualifier to bundle
org.eclipse.osgi.compatibility.state.source 0.0.0.; No solution
found because the problem is unsatisfiable.]
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:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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: No solution found because
the problem is unsatisfiable.: [Unable to satisfy dependency from
org.jboss.tools.common.model.ui.test 3.6.0.qualifier to bundle
org.eclipse.osgi.compatibility.state.source 0.0.0.; No solution
found because the problem is unsatisfiable.]
at
org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
at
org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
at
org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:134)
at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:87)
at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:369)
at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:345)
at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
On 11/29/2013 10:10 AM, Mickael Istria wrote:
Hi all,
As part of Luna came a change that we've not correctly estimated:
http://wiki.eclipse.org/Equinox/Luna_Framework#Removal_of_the_PlatformAdmin_Service_Implementation
. This cause some parts of Eclipse to be failing with surefire as
they depend on a class which is not available in default Equinox
bundles any more. The TEMPORARY workaround is to add a dependency
to your tycho-surefire-plugin to fragment
org.eclipse.osgi.compatibility.state.
So in case of failing test, try to add the fragment locally, and
if it works better, open a bug to keep track of that change (make
me a dep of JBIDE-16161). This should be fine for JBT 4.2.0.Alpha1
build and tests against Luna M3.
Then by Luna M4, this should happen: https://bugs.eclipse.org/bugs/show_bug.cgi?id=417429
, and hopefully, it will remove most of our dependencies on this
somehow deprecated PlatfromAdmin service. We'll be able to get rid
of the additional dependency on surefire, and everything will be
fine.
In case you have a message in your tycho-surefire-plugin saying
"Could not acquire PlatformAdmin", you can safely ignore it https://bugs.eclipse.org/bugs/show_bug.cgi?id=417429
. It's just a warning. What's important is whether your tests do
work or not, and if not, whether adding the fragment helps.
_______________________________________________
jbosstools-dev mailing list
jbosstools-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosstools-dev