Tycho build maven artifact (org.jboss.forge.roaster.roaster-api) #1007
Replies: 2 comments 16 replies
-
You might try adding explicit POM requirements for the Aries bundles: https://stackoverflow.com/questions/43775025/after-jetty-update-to-9-4-x-missing-constraint-require-capability-osgi-extend. |
Beta Was this translation helpful? Give feedback.
-
Hi Michael, Thanks for your answer. Unfortunately, It seems that it does not work for me. I updated the minimal example and added those three dependencies but I got the same error. Any other hints? Thanks. Kind regards, |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am trying to include this maven plugin: org.jboss.forge.roaster.roaster-api in my deployment, but I am getting this error:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.7.3:validate-classpath (default-validate-classpath) on project generate.java.code: Execution default-validate-classpath of goal org.eclipse.tycho:tycho-compiler-plugin:2.7.3:validate-classpath failed: org.osgi.framework.BundleException: Bundle generate.java.code cannot be resolved:generate.java.code [3]
[ERROR] Unresolved requirement: Require-Bundle: org.jboss.forge.roaster.roaster-api
[ERROR] -> Bundle-SymbolicName: org.jboss.forge.roaster.roaster-api; bundle-version="2.25.0.Final"; singleton:="true"
[ERROR] org.jboss.forge.roaster.roaster-api [1]
[ERROR] Unresolved requirement: Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)"
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.7.3:validate-classpath (default-validate-classpath) on project generate.java.code: Execution default-validate-classpath of goal org.eclipse.tycho:tycho-compiler-plugin:2.7.3:validate-classpath failed: org.osgi.framework.BundleException: Bundle generate.java.code cannot be resolved:generate.java.code [3]
Unresolved requirement: Require-Bundle: org.jboss.forge.roaster.roaster-api
-> Bundle-SymbolicName: org.jboss.forge.roaster.roaster-api; bundle-version="2.25.0.Final"; singleton:="true"
org.jboss.forge.roaster.roaster-api [1]
Unresolved requirement: Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)"
Since I am using Apache Aries I do not know if I am missing something. I am working with Tycho 2.7.3.
I was able to implement a minimal example and the same error appear.
minimal.example.project.zip
This minimal example is pomless and has the following structure:
In this example, I added the Apache Aries to the target platform, but I am not sure if this is necessary for compilation.
What I am missing? Any hints?
Thanks in advance.
Kind regards,
Antonio
Beta Was this translation helpful? Give feedback.
All reactions