Hi Stephen,
What version of the karaf-maven-plugin are you using (in order for me to
reproduce) ?
If it's not flag as a dependency, if your feature contains:
<feature name="my" version="xx">
<feature>cxf-jaxrs</feature>
</feature>
and your feature XML contains the <repository/> with CXF features XML, then it
should be part of the kar.
I'm preparing some samples and updated archetype to be used in the new dev
guide. The documentation should be complete and improved.
Regards
JB
On 10/06/2017 09:36 PM, Stephen Munro wrote:
I'm having a small problem constructing a KAR file. Basically, I have a pom with
the type set to KAR. The maven plugin generates a KAR file, which contains some
of the libraries, specifically my OSGI bundles and their dependencies.
The problem is that the requirements specified in the feature file i.e
<feature>cxf-jaxrs</feature> are not pulled into the KAR file.
I assumed that the KAR file was meant to be a self contained deployment artifact
with no requirement to fetch additional dependencies, thus making it suitable
for production environments where network access is restricted. Is this
assumption incorrect.
As a side note, I attempted to use the karaf assembly task. I've found the
documentation on this goal to be extremely scarce and I've not managed to find
any examples which use this particular goal. When attempting to learn/use it, I
was hit with many null pointer exceptions, leading me to believe that the
assembly goal is buggy. Can someone confirm the status of this and/or
demonstrate a working example?
--
Warmest Regards,
Stephen Munro
--
Warmest Regards,
Stephen Munro
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com