You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Alexander Komarov (JIRA)" <ji...@apache.org> on 2019/05/23 10:06:00 UTC
[jira] [Created] (KARAF-6291) Static distribution does not work
with cxf-jaxrs
Alexander Komarov created KARAF-6291:
----------------------------------------
Summary: Static distribution does not work with cxf-jaxrs
Key: KARAF-6291
URL: https://issues.apache.org/jira/browse/KARAF-6291
Project: Karaf
Issue Type: Bug
Components: karaf
Affects Versions: 4.2.5
Environment: Apache Karaf 4.2.5
Apache CXF 3.3.2
JDK 1.8.111
Reporter: Alexander Komarov
Attachments: jaxrs_static.out.gz
Hello.
I tried to run an example of a static distribution of karaf
[https://github.com/apache/karaf/tree/master/examples/karaf-docker-example/karaf-docker-example-static-dist]
and I added a cxf-jaxrs startupRepository and startupFeature .
{code:xml}
<configuration>
<startupRepositories>mvn:org.apache.cxf.karaf/apache-cxf/3.3.2/xml/features</startupRepositories>
<startupFeatures>
<startupFeature>static-framework</startupFeature>
<startupFeature>scr</startupFeature>
<startupFeature>http-whiteboard</startupFeature>
<startupFeature>karaf-docker-example-app</startupFeature>
<startupFeature>cxf-jaxrs</startupFeature>
</startupFeatures>
<framework>static</framework>
<useReferenceUrls>true</useReferenceUrls>
<environment>static</environment>
<javase>1.8</javase>
</configuration>
{code}
When I run the build "mnv clean install" I get an error:
{noformat}
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.2.5:assembly (process-resources) on project karaf-docker-example-static-dist: Unable to build assembly: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=wrap; type=karaf.feature; version=0; filter:="(&(osgi.identity=wrap)(type=karaf.feature)(version>=0.0.0))" [caused by: Unable to resolve wrap/2.6.1: missing requirement [wrap/2.6.1] osgi.identity; osgi.identity=org.ops4j.pax.url.wrap; type=osgi.bundle; version="[2.6.1,2.6.1]"; resolution:=mandatory [caused by: Unable to resolve org.ops4j.pax.url.wrap/2.6.1: missing requirement [org.ops4j.pax.url.wrap/2.6.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))"]] -> [Help 1]
{noformat}
See full output in attach.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)