[
https://issues.apache.org/jira/browse/SM-3272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15928637#comment-15928637
]
Bob Blackard commented on SM-3272:
----------------------------------
There is also a problem with pax-cdi 1.0.0.RC1.
I was able to get a simple demo bundle installed on ServiceMix 7.0.0 using:
{code}
feature:repo-add mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0.RC2/xml/features
install mvn:org.apache.deltaspike.core/deltaspike-core-api/1.7.2
install mvn:org.apache.deltaspike.core/deltaspike-core-impl/1.7.2
feature:install pax-cdi/1.0.0.RC2
feature:install pax-cdi-weld/1.0.0.RC2
feature:install camel-cdi
install -s mvn:net.centralhealth.demo/camel-osgi-cdi/0.0.1-SNAPSHOT
{code}
The fix will require updates to the
mvn:org.apache.camel.karaf/apache-camel/2.?.?/xml/features files (from 2.16.x
through 2.18.x) to change the pax-cdi 1.0.0.RC1 references to 1.0.0.RC2, and
will also require updates to the org.apache.camel/camel-parent POM to refer to
a DeltaSpike version provided from pax-cdi. Problem is, I don't know where
else in Camel the DeltaSpike stuff is used.
> camel-cdi feature references a DaltaSpike version not available in features
> ---------------------------------------------------------------------------
>
> Key: SM-3272
> URL: https://issues.apache.org/jira/browse/SM-3272
> Project: ServiceMix
> Issue Type: Bug
> Affects Versions: 7.0.0
> Environment: All
> Reporter: Bob Blackard
>
> Attempting to install camel-cdi feature results in an error. I first
> installed pax-cdi and pax-cdi-weld features, which installed fine, but
> attempting to install camel-cdi results in a failure:
> {code}
> admin@root>feature:install camel-cdi
> Error executing command: Unable to resolve root: missing requirement [root]
> osgi.identity; osgi.identity=camel-cdi; type=karaf.feature;
> version="[2.16.4,2.16.4]";
> filter:="(&(osgi.identity=camel-cdi)(type=karaf.feature)(version>=2.16.4)(version<=2.16.4))"
> [caused by: Unable to resolve camel-cdi/2.16.4: missing requirement
> [camel-cdi/2.16.4] osgi.identity; osgi.identity=org.apache.camel.camel-cdi;
> type=osgi.bundle; version="[2.16.4,2.16.4]"; resolution:=mandatory [caused
> by: Unable to resolve org.apache.camel.camel-cdi/2.16.4: missing requirement
> [org.apache.camel.camel-cdi/2.16.4] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.apache.deltaspike.core.util.metadata.builder)(version>=1.5.0)(!(version>=2.0.0)))"]]
> {code}
> One observation is that the available versions of deltaspike-core are 1.2.1
> and 1.3.0, but camel-cdi is looking for versions 1.5 and above.
> I was able to get camel-cdi installed by first installing a newer version of
> deltaspike than the one referenced by pax-cdi:
> {code}
> install mvn:org.apache.deltaspike.core/deltaspike-core-api/1.5.4
> install mvn:org.apache.deltaspike.core/deltaspike-core-impl/1.5.4
> feature:install camel-cdi
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)