Thanks. I'm having some trouble getting this to work.
I have a project that has a dependency on Apache Commons Math (org.apache.commons:commons-math:2.2) - which is available as an OSGi bundle from the Maven repositories.
Also in the root pom under org.eclipse.tycho:target-platform-configuration's configuration, I added:
This is the output when I run `mvn clean compile`. What am I doing that is preventing Tycho from resolving the manifest specified dependency?
[INFO] Scanning for projects...
[INFO] Resolving target platform for project MavenProject: com.example:com.example.test:1.0.0 @ C:\ws\osgi\com.example.test\pom.xml
[INFO] Adding repository
http://download.eclipse.org/releases/indigo
[INFO] Fetching p2.index (0B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/[INFO] Fetching p2.index (131B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Adding repository
http://download.eclipse.org/releases/indigo[INFO] Fetching p2.index (0B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Fetching p2.index (131B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/[INFO] 1 operation remaining.
[INFO] Cannot complete the request. Generating details.
[INFO] Cannot complete the request. Generating details.
[INFO] {org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,
osgi.ws=gtk, osgi.arch=x86_64, osgi.os=linux,
org.eclipse.update.in
stall.features=true, org.osgi.framework.system.packages=}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: com.example.test 1.0.0
[ERROR] Missing requirement: com.example.test 1.0.0 requires 'package org.apache.commons.math.util 2.2.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 com.example.test 1.0.0 to package org.apache.commons.math.util 2.2.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 com.example.test 1.0.0 to package org.apache.commons.math.util 2.2.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: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: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from com.example.test 1.0.0 to package org.apache.commons.math.util 2.2.0.", "No solution found because the problem is unsatisfiable."]
at org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:106)
at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:102)
at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:69)
at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:342)
at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:162)
at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:85)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException