osgi.enroute
osgi.enroute copied to clipboard
Quickstart tutorial resolver error
Hi I'm following the quickstart tutorial and end up with an error when running the command
mvn -pl app -am bnd-indexer:index bnd-indexer:index@test-index bnd-resolver:resolve package
The error is:
mvn -pl app -am bnd-indexer:index bnd-indexer:index@test-index bnd-resolver:resolve package
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] example [pom]
[INFO] impl [jar]
[INFO] app [jar]
[INFO]
[INFO] -------------------------< io.qbilon:example >--------------------------
[INFO] Building example 1.0-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.3.0:index (default-cli) @ example ---
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.3.0:index (test-index) @ example ---
[INFO]
[INFO] --- bnd-resolver-maven-plugin:4.3.0:resolve (default-cli) @ example ---
[INFO]
[INFO] ---------------------------< io.qbilon:impl >---------------------------
[INFO] Building impl 1.0-SNAPSHOT [2/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.3.0:index (default-cli) @ impl ---
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.3.0:index (test-index) @ impl ---
[INFO]
[INFO] --- bnd-resolver-maven-plugin:4.3.0:resolve (default-cli) @ impl ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ impl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/thomas/vscode-ws/enroute-example/example/impl/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ impl ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- bnd-maven-plugin:4.3.0:bnd-process (default) @ impl ---
[WARNING] /home/thomas/vscode-ws/enroute-example/example/impl/pom.xml [0:0]: No translation found for macro: impl-artifactId
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ impl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/thomas/vscode-ws/enroute-example/example/impl/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ impl ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ impl ---
[INFO] Surefire report directory: /home/thomas/vscode-ws/enroute-example/example/impl/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running io.qbilon.example.UnitTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ impl ---
[INFO] Building jar: /home/thomas/vscode-ws/enroute-example/example/impl/target/impl-1.0-SNAPSHOT.jar
[INFO]
[INFO] ---------------------------< io.qbilon:app >----------------------------
[INFO] Building app 1.0-SNAPSHOT [3/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.3.0:index (default-cli) @ app ---
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.3.0:index (test-index) @ app ---
[INFO]
[INFO] --- bnd-resolver-maven-plugin:4.3.0:resolve (default-cli) @ app ---
[ERROR] Resolution failed. Capabilities satisfying the following requirements could not be found:
[<<INITIAL>>]
⇒ osgi.identity: (osgi.identity=org.apache.felix.webconsole)
[org.apache.aries.jpa.container version=2.7.0]
⇒ osgi.service: (objectClass=javax.persistence.spi.PersistenceProvider)
The following requirements are optional:
[org.apache.geronimo.specs.geronimo-saaj_1.3_spec version=1.1.0]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.apache.geronimo.osgi.registry.api))
[ch.qos.logback.classic version=1.2.3]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.groovy.transform)(&(version>=2.4.0)(!(version>=3.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=javax.servlet)(&(version>=3.1.0)(!(version>=4.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.groovy.runtime.wrappers)(&(version>=2.4.0)(!(version>=3.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.groovy.runtime.callsite)(&(version>=2.4.0)(!(version>=3.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.groovy.control.customizers)(&(version>=2.4.0)(!(version>=3.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.groovy.runtime)(&(version>=2.4.0)(!(version>=3.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=groovy.lang)(&(version>=2.4.0)(!(version>=3.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.groovy.runtime.typehandling)(&(version>=2.4.0)(!(version>=3.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=javax.servlet.http)(&(version>=3.1.0)(!(version>=4.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.groovy.reflection)(&(version>=2.4.0)(!(version>=3.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=sun.reflect))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.groovy.control)(&(version>=2.4.0)(!(version>=3.0.0))))
[tx-control-provider-jdbc-xa version=1.0.0]
⇒ osgi.service: (objectClass=org.osgi.service.jdbc.DataSourceFactory)
[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.felix.configadmin version=1.9.8]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.osgi.service.coordinator)(&(version>=1.0.0)(!(version>=2.0.0))))
[tx-control-provider-jpa-xa version=1.0.0]
⇒ osgi.service: (objectClass=org.osgi.service.jpa.EntityManagerFactoryBuilder)
⇒ osgi.service: (objectClass=org.osgi.service.jdbc.DataSourceFactory)
[ch.qos.logback.core version=1.2.3]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.commons.compiler))
⇒ osgi.wiring.package: (&(osgi.wiring.package=javax.servlet)(&(version>=3.1.0)(!(version>=4.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.fusesource.jansi)(&(version>=1.9.0)(!(version>=2.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.codehaus.janino))
⇒ osgi.wiring.package: (&(osgi.wiring.package=javax.servlet.http)(&(version>=3.1.0)(!(version>=4.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=javax.mail))
⇒ osgi.wiring.package: (&(osgi.wiring.package=javax.mail.internet))
[org.apache.felix.http.jetty version=4.0.6]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.osgi.service.metatype)(&(version>=1.1.0)(!(version>=2.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.slf4j.spi))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.osgi.service.cm)(&(version>=1.3.0)(!(version>=2.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.slf4j.helpers))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.osgi.service.event)(&(version>=1.2.0)(!(version>=2.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.osgi.service.useradmin)(&(version>=1.1.0)(!(version>=2.0.0))))
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.slf4j))
[org.apache.felix.scr version=2.1.10]
⇒ 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.apache.felix.shell)(&(version>=1.0.0)(!(version>=1.1.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))))
[org.apache.aries.jax.rs.whiteboard version=1.0.1]
⇒ osgi.extender: (osgi.extender=osgi.serviceloader.registrar)
[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))
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for example 1.0-SNAPSHOT:
[INFO]
[INFO] example ............................................ SUCCESS [ 0.518 s]
[INFO] impl ............................................... SUCCESS [ 2.074 s]
[INFO] app ................................................ FAILURE [ 2.703 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.633 s
[INFO] Finished at: 2019-12-20T15:14:33+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal biz.aQute.bnd:bnd-resolver-maven-plugin:4.3.0:resolve (default-cli) on project app: Unable to resolve <<INITIAL>>: missing requirement osgi.identity;filter:='(osgi.identity=org.apache.felix.webconsole)' -> [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
It seems the resolver plugin does not find the felix webconsole which is required by the debug configuration. Any ideas what I'm doing wrong here?
Kind regards, Thomas
I'm having the same issue.