Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to include a bundle (apache.felix) into an eclipse-plugin ("No solution found because the problem is unsatisfiable.")?

I am not sure why this does not work for you, but (somewhat outdates)
wiki [1] and corresponding itp02 demo project from [2] provide explain
how to configure your Tycho build to use OSGi bundles produced by
maven-bundle-plugin. This is how we build m2e [3], so I am certain this
works.

[1] https://docs.sonatype.org/display/TYCHO/Dependency+on+pom-first+artifacts
[2] http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/
[3] http://git.eclipse.org/c/m2e/m2e-core.git/tree/?id=milestones/1.1/1.1.0.20120320-0058

--
Regards,
Igor

On 12-04-30 2:00 PM, Sergio.Areias@xxxxxxxxxxxxxxx wrote:
Hello,
In order to include traditional maven dependencies, I packaged these
dependencies with maven-bundle plugin from org.apache.felix.

Then I included this bundle in my plugin.xml dependency section.

When I try to do "mvn package", I get this error:

[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: piu-update-notifier-plugin
1.0.0.qualifier
[ERROR] Missing requirement: piu-update-notifier-plugin 1.0.0.qualifier
requires 'bundle com.grupoatwork.piu.update-service-rest-api-bundle
1.0.0' but it could not be found
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: "No solution found
because the problem is unsatisfiable.": ["Unable to satisfy dependency
from piu-update-notifier-plugin 1.0.0.qualifier to bundle
com.grupoatwork.piu.update-service-rest-api-bundle 1.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
piu-update-notifier-plugin 1.0.0.qualifier to bundle
com.grupoatwork.piu.update-service-rest-api-bundle 1.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:601)
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
piu-update-notifier-plugin 1.0.0.qualifier to bundle
com.grupoatwork.piu.update-service-rest-api-bundle 1.0.0.", "No solution
found because the problem is unsatisfiable."]
at
org.eclipse.tycho.p2.impl.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:79)

at
org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:83)

at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:118)

at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:76)

at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:445)

at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:422)

at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:98)

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

How can I fix this? If you need more information about the project just
let me know.

PS: I have attacked the pom.xml just in case.



Thanks in advance,
Sérgio Areias


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top