Xilai Dai created CXF-7599:
------------------------------
Summary: The apache-cxf-3.2.1-features.xml for karaf OSGi is not
correct enough
Key: CXF-7599
URL: https://issues.apache.org/jira/browse/CXF-7599
Project: CXF
Issue Type: Bug
Components: OSGi
Affects Versions: 3.2.1, 3.2.0
Environment: Java 8
Reporter: Xilai Dai
Start karaf 4.1.3 or 4.2.0.M1 container, try to install cxf-jaxrs-cdi feature:
feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.2.1/xml/features
feature:install cxf-jaxrs-cdi
100 │ Active │ 80 │ 1.0.0.RC2 │ OPS4J Pax CDI Bean Bundle API
101 │ Active │ 80 │ 1.0.0.SNAPSHOT │ OPS4J Pax CDI Bean Bundle API
102 │ Active │ 80 │ 1.0.0.RC2 │ OPS4J Pax CDI Extender for Bean
Bundles
103 │ Resolved │ 80 │ 1.0.0.SNAPSHOT │ OPS4J Pax CDI Extender for Bean
Bundles
104 │ Active │ 80 │ 1.0.0.RC2 │ OPS4J Pax CDI Portable Extension for
OSGi
105 │ Active │ 80 │ 1.0.0.SNAPSHOT │ OPS4J Pax CDI Portable Extension for
OSGi
106 │ Active │ 80 │ 1.0.0.RC2 │ OPS4J Pax CDI Service Provider
Interface
107 │ Active │ 80 │ 1.0.0.SNAPSHOT │ OPS4J Pax CDI Service Provider
Interface
108 │ Active │ 80 │ 1.0.0.RC2 │ OPS4J Pax CDI Weld Adapter
There are multi versions of CDI bundles are installed (1.0.0.RC2,
1.0.0.SNAPSHOT), which is not expected. the cause is this repository statement
in the apache-cxf-3.2.1-features.xml
<repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1.0.0.RC1,2)/xml/features</repository>
It states pax-cdi-features as version range insteadof real version normally.
The other failed test case is, when you try to adding some CXF 3.2.1 features
into custom container using karaf-maven-plugin, you will have ERROR:
[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.1.4:features-add-to-repository
(add-features-to-repo)
on project talend-esb: Error populating repository: Can't resolve artifact
org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1.0.0
.RC1,2): Could not find artifact
org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1.0.0.RC1,2) in
springsource.release (http://rep
ository.springsource.com/maven/bundles/release)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)