Hmmm

The XML should be embedded. If not, it's a bug.

Let me try.

Regards
JB

On Oct 6, 2017, 12:38, at 12:38, Liam MacIsaac 
<[email protected]> wrote:
>I'm trying to create a KAR file for offline installation of our project
>using the maven plugin. I'm successfully got a KAR, but my feature file
>has two repository entries for CXF and activemq, the contents of which
>don't get embedded in the KAR, so karaf attempts to go to maven central
>to find them.
>
>How do I make the plugin embed the contents of these repositories in
>the KAR.
>
>POM:
><packaging>kar</packaging>
><plugin>
>                <groupId>org.apache.karaf.tooling</groupId>
>                <artifactId>karaf-maven-plugin</artifactId>
>                <version>4.1.1</version>
>                <extensions>true</extensions>
>                <configuration>
>                    <addTransitiveFeatures>true</addTransitiveFeatures>
>                </configuration>
>
>                <executions>
>                    <execution>
>                        <id>generate-feature-file</id>
>                        <phase>package</phase>
>                        <goals>
>                            <goal>features-generate-descriptor</goal>
>                        </goals>
>                        <configuration>
>                 <includeProjectArtifact>false</includeProjectArtifact>
>                            <aggregateFeatures>true</aggregateFeatures>
>                        </configuration>
>                    </execution>
>
>                </executions>
>            </plugin>
>
>
>Feature file:
><?xml version="1.0" encoding="UTF-8"?>
><features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.0.0
>http://karaf.apache.org/xmlns/features/v1.0.0";>
>
><repository>mvn:org.apache.activemq/activemq-karaf/5.14.5/xml/features</repository>
><repository>mvn:org.apache.cxf.karaf/apache-cxf/3.1.11/xml/features</repository>
>
><!-- some text removed -->
></features>
>
>
>-----------------------------
>Liam MacIsaac
>Senior Software Architect
>
>
>Company Registration:
>SMARTER GRID SOLUTIONS LIMITED (SC344695), Registered Office at Corruna
>House,
>39 Cadogan Street, Glasgow, G2 7AB.
>
>This e-mail transmission, and any
>documents, files or previous e-mail messages attached to it, may
>contain
>confidential or privileged information. It is intended for the named
>recipient
>only. If you receive it in error please immediately notify the sender
>and
>destroy the original message and any attachments, not keeping a copy.
>It is
>possible for e-mails to be intercepted or affected by viruses. Whilst
>virus
>checks are maintained on inbound e-mails, no liability is accepted for
>viruses
>or other material introduced with this message including any
>attachment.
>
>-----------------------------

Reply via email to