Resolution failed while running examples/quickstart
Serranya opened this issue · 1 comments
Serranya commented
I am following the instructions from https://enroute.osgi.org/tutorial/020-tutorial_qs.html
As per instruction changed the runne to
-runee: JavaSE-1.11
and than ran
mvn bnd-indexer:index bnd-indexer:index@test-index bnd-resolver:resolve
Then get the following error
[serra@archlinux quickstart]$ mvn bnd-indexer:index bnd-indexer:index@test-index bnd-resolver:resolve
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] quickstart [pom]
[INFO] rest [jar]
[INFO] app [jar]
[INFO]
[INFO] ----------< org.osgi.enroute.examples.quickstart:quickstart >-----------
[INFO] Building quickstart 0.0.2-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.1.0:index (default-cli) @ quickstart ---
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.1.0:index (test-index) @ quickstart ---
[INFO]
[INFO] --- bnd-resolver-maven-plugin:4.1.0:resolve (default-cli) @ quickstart ---
[INFO]
[INFO] -------------< org.osgi.enroute.examples.quickstart:rest >--------------
[INFO] Building rest 0.0.2-SNAPSHOT [2/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.1.0:index (default-cli) @ rest ---
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.1.0:index (test-index) @ rest ---
[INFO]
[INFO] --- bnd-resolver-maven-plugin:4.1.0:resolve (default-cli) @ rest ---
[INFO]
[INFO] --------------< org.osgi.enroute.examples.quickstart:app >--------------
[INFO] Building app 0.0.2-SNAPSHOT [3/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.1.0:index (default-cli) @ app ---
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.1.0:index (test-index) @ app ---
[INFO]
[INFO] --- bnd-resolver-maven-plugin:4.1.0:resolve (default-cli) @ app ---
[ERROR] Resolution failed. Capabilities satisfying the following requirements could not be found:
[<<INITIAL>>]
⇒ osgi.identity: (osgi.identity=org.osgi.enroute.examples.quickstart.rest)
⇒ [org.osgi.enroute.examples.quickstart.rest version=0.0.2.201812101617]
⇒ osgi.extender: (&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0)))
⇒ [org.apache.felix.scr version=2.1.10]
⇒ osgi.ee: (|(&(osgi.ee=JavaSE)(version=1.7))(&(osgi.ee=JavaSE/compact1)(version=1.8)))
[org.apache.aries.javax.jax.rs-api version=1.0.0]
⇒ osgi.ee: (&(osgi.ee=JavaSE)(version=1.8))
[org.osgi.service.log version=1.4.0.201802012107]
⇒ osgi.ee: (&(osgi.ee=JavaSE)(version=1.7))
[org.osgi.util.pushstream version=1.0.0.201802012107]
⇒ osgi.ee: (&(osgi.ee=JavaSE/compact1)(version=1.8))
[org.osgi.util.function version=1.1.0.201802012106]
⇒ osgi.ee: (&(osgi.ee=JavaSE)(version=1.7))
The following requirements are optional:
[org.apache.aries.javax.jax.rs-api version=1.0.0]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.apache.geronimo.osgi.registry.api))
[org.apache.geronimo.specs.geronimo-activation_1.1_spec version=1.1.0]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.apache.geronimo.osgi.registry.api))
[org.apache.felix.scr version=2.1.10]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.apache.felix.shell)(&(version>=1.0.0)(!(version>=1.1.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.apache.felix.service.command)(&(version>=1.0.0)(!(version>=2.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.osgi.service.cm)(&(version>=1.6.0)(!(version>=2.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.osgi.service.metatype)(&(version>=1.2.0)(!(version>=2.0.0))))
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for quickstart 0.0.2-SNAPSHOT:
[INFO]
[INFO] quickstart ......................................... SUCCESS [ 0.437 s]
[INFO] rest ............................................... SUCCESS [ 1.332 s]
[INFO] app ................................................ FAILURE [ 3.206 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.803 s
[INFO] Finished at: 2018-12-11T11:52:08+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal biz.aQute.bnd:bnd-resolver-maven-plugin:4.1.0:resolve (default-cli) on project app: Unable to resolve <<INITIAL>>: missing requirement osgi.identity;filter:='(osgi.identity=org.osgi.enroute.examples.quickstart.rest)' [caused by: Unable to resolve org.osgi.enroute.examples.quickstart.rest version=0.0.2.201812101617: missing requirement osgi.extender;filter:='(&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0)))' [caused by: Unable to resolve org.apache.felix.scr version=2.1.10: missing requirement osgi.ee;filter:='(|(&(osgi.ee=JavaSE)(version=1.7))(&(osgi.ee=JavaSE/compact1)(version=1.8)))']] -> [Help 1]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :app
My environment:
[serra@archlinux quickstart]$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13)
OpenJDK 64-Bit Server VM (build 11.0.1+13, mixed mode)
[serra@archlinux quickstart]$ mvn -v
Apache Maven 3.6.0 (NON-CANONICAL_2018-11-06T03:14:22+01:00_root; 2018-11-06T03:14:22+01:00)
Maven home: /opt/maven
Java version: 11.0.1, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-openjdk
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "4.19.4-arch1-1-arch", arch: "amd64", family: "unix"
Serranya commented
Ahh my error.
-runee: JavaSE-1.11
is wrong. It should be -runee: JavaSE-11
. This is stated correctly in the docs.