You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by nino martinez wael <ni...@gmail.com> on 2018/04/10 11:39:31 UTC

karaf-maven-plugin 4.2.0 "FAT" kar?

Hi

I cannot get the karaf maven plugin to pull in all jars needed for my app,
it only generates an empty feature.xml..

Normally we are building a full custom Karaf assembly per project, but we
are changing it.

The idea are just to make a kar instead providing all the jars, often the
environment we are installing to do no have any internet connection.

Here are my pom (I get a fully working karaf assembly if I change packaging
to karaf-assembly)


<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.netdesign.ccadmin</groupId>
        <artifactId>ccadmin</artifactId>
        <version>3.0.0-SNAPSHOT</version>
    </parent>

    <groupId>com.netdesign.ccadmin</groupId>
    <artifactId>ccadmin-karaf-assembly</artifactId>
    <packaging>kar</packaging>

    <name>ccadmin-karaf-assembly</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <karaf.version>4.2.0</karaf.version>
        <cxf.version>3.2.4</cxf.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <type>kar</type>
            <version>${karaf.version}</version>

        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>${karaf.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>standard</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <version>${karaf.version}</version>
        </dependency>

        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>spring-legacy</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>${karaf.version}</version>
        </dependency>

        <!--<dependency>-->
            <!--<groupId>org.apache.karaf.features</groupId>-->
            <!--<artifactId>spring</artifactId>-->
            <!--<classifier>features</classifier>-->
            <!--<type>xml</type>-->
            <!--<scope>runtime</scope>-->
            <!--<version>${karaf.version}</version>-->
        <!--</dependency>-->
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>enterprise</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>${karaf.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf.karaf</groupId>
            <artifactId>apache-cxf</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
            <version>${cxf.version}</version>
        </dependency>

    </dependencies>
    <profiles>
        <profile>
            <id>release</id>
            <activation>
                <property>
                    <name>IS_M2RELEASEBUILD</name>
                    <value>true</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <artifactId>ccadmin-karaf-feature</artifactId>
                    <groupId>com.netdesign.ccadmin</groupId>
                    <classifier>features</classifier>
                    <type>xml</type>
                    <version>${build.parent.version}</version>
                    <scope>runtime</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>snapshot</id>
            <activation>
                <property>
                    <name>IS_M2RELEASEBUILD</name>
                    <value>!true</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <artifactId>ccadmin-karaf-feature</artifactId>
                    <groupId>com.netdesign.ccadmin</groupId>
                    <classifier>features</classifier>
                    <type>xml</type>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
            </dependencies>
        </profile>

    </profiles>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>3.0.2</version>
            </plugin>
                <plugin>
                    <groupId>org.apache.karaf.tooling</groupId>
                    <artifactId>karaf-maven-plugin</artifactId>
                    <extensions>true</extensions>
                    <version>${karaf.version}</version>
                    <configuration>
                        <installedFeatures>
                            <feature>wrapper</feature>
                            <feature>cxf</feature>
                            <feature>cxf-commands</feature>
                            <feature>ccadmin</feature>
                        </installedFeatures>
                        <bootFeatures>
                            <feature>standard</feature>
                            <feature>webconsole</feature>
                        </bootFeatures>
                        <javase>1.8</javase>
                    </configuration>
                </plugin>
            </plugins>
    </build>
</project>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

it will end there, extending the current example.

Regards
JB

On 06/06/2018 08:44, nino martinez wael wrote:
> Ok great, I will check it out.. Did you commit here:
> 
> https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/karaf-maven-example/karaf-maven-example-kar
> 
> On Sat, Jun 2, 2018 at 6:58 AM, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
> 
>     Let me add a new example about what I did on the DEV_GUIDE.
> 
>     Maybe we don't have the same kind of features.xml or I don't understand
>     exactly the test case ;)
> 
>     Regards
>     JB
> 
>     On 01/06/2018 10:34, nino martinez wael wrote:
>     > Yes, when I tried I just ended up with an kar that contained the
>     > outermost feature.xml
>     > 
>     > On Wed, 30 May 2018, 15:36 Jean-Baptiste Onofré, <jb@nanthrax.net <ma...@nanthrax.net>
>     > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>     > 
>     >     Yes, it contains the inner features bundles.
>     > 
>     >     Is it what you are missing ?
>     > 
>     >     Regards
>     >     JB
>     > 
>     >     On 30/05/2018 15:31, nino martinez wael wrote:
>     >     > but what are the resulting kar? does it contain the aggregated feature
>     >     > set bundles?
>     >     >
>     >     >
>     >     > regards Nino
>     >     >
>     >     > On Wed, May 30, 2018 at 2:54 PM, Jean-Baptiste Onofré
>     >     <jb@nanthrax.net <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>     <ma...@nanthrax.net>>
>     >     > <mailto:jb@nanthrax.net <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>     <ma...@nanthrax.net>>>> wrote:
>     >     >
>     >     >     Hi,
>     >     >
>     >     >     I tested without problem with 4.1.5. I'm testing with 4.2.0 now.
>     >     >
>     >     >     I keep you posted.
>     >     >
>     >     >     Regards
>     >     >     JB
>     >     >
>     >     >     On 30/05/2018 14:14, Martin Nielsen wrote:
>     >     >     > Hello everyone
>     >     >     > I am facing a similar issue, did you figure this out?
>     >     >     >
>     >     >     > -Martin
>     >     >     >
>     >     >     > On Wed, May 16, 2018 at 6:06 PM, nino martinez wael
>     >     >     > <nino.martinez.wael@gmail.com <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com <ma...@gmail.com>>>
>     >     >     <mailto:nino.martinez.wael@gmail.com <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com <ma...@gmail.com>>
>     >     >     <mailto:nino.martinez.wael@gmail.com <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>> wrote:
>     >     >     >
>     >     >     >     Did you get a chance to look at this? 
>     >     >     >
>     >     >     >     On 3 May 2018 20:23, "Jean-Baptiste Onofré"
>     >     <jb@nanthrax.net <ma...@nanthrax.net>
>     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>     <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>     >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>
>     >     >     >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>     >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>>> wrote:
>     >     >     >
>     >     >     >         Hi Nino,
>     >     >     >
>     >     >     >         As I'm now back from vacation, I gonna take a
>     look.
>     >     >     >
>     >     >     >         Sorry for the delay.
>     >     >     >
>     >     >     >         Regards
>     >     >     >         JB
>     >     >     >
>     >     >     >
>     >     >     >         On 05/03/2018 08:19 PM, nino martinez wael wrote:
>     >     >     >         > Any chance someone has an idea? 
>     >     >     >         >
>     >     >     >         > On Wed, 18 Apr 2018, 08:02 nino martinez wael,
>     >     >     >         <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>
>     >     >     >         > <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>>> wrote:
>     >     >     >         >
>     >     >     >         >     Actually if I read this part, it does seem
>     >     that the kar
>     >     >     >         goal should do what
>     >     >     >         >     I want. But I am missing the part where the
>     >     kar plugin add
>     >     >     >         the bundles to
>     >     >     >         >     the kar repo..
>     >     >     >         >
>     >     >     >         >   
>     >     >     >       
>     >   
>        https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>
>     >     >   
>     >   
>       <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>>
>     >     >     >       
>     >   
>       <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>
>     >     >   
>     >   
>       <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>>>
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >             Maven
>     >     >     >         >
>     >     >     >         >     Apache Karaf provides a Maven
>     >     plugin: |karaf-maven-plugin|.
>     >     >     >         >
>     >     >     >         >     The Apache Karaf Maven plugin provides
>     >     the |kar| goal.
>     >     >     >         >
>     >     >     >         >     The |kar| goal does: . Reads all features
>     >     specified in the
>     >     >     >         features XML. .
>     >     >     >         >     For each feature described in the features
>     >     XML, the goal
>     >     >     >         resolves the
>     >     >     >         >     bundles described in the feature. . The goal
>     >     finally
>     >     >     >         packages the features
>     >     >     >         >     XML, *_/and the resolved bundles in a
>     zip file./_*
>     >     >     >
>     >     >     >         >
>     >     >     >         >     For instance, the following Maven POM
>     >     create |my-kar.kar|
>     >     >     >         >
>     >     >     >         >     For instance, you can use the following
>     POM to
>     >     create a kar:
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >     On Wed, Apr 18, 2018 at 7:54 AM, nino
>     martinez
>     >     wael
>     >     >     >         >     <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>
>     >     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>>> wrote:
>     >     >     >         >
>     >     >     >         >         if I check the documentation the spring
>     >     kar "example"
>     >     >     >         are pretty much
>     >     >     >         >         what we want todo..
>     >     >     >         >
>     >     >     >         >       
>      https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>
>     >     >     <https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>>
>     >     >     >         <https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>
>     >     >     <https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>>>
>     >     >     >         >
>     >     >     >         >         On Wed, Apr 18, 2018 at 7:52 AM, nino
>     >     martinez wael
>     >     >     >         >         <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>
>     >     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>>> wrote:
>     >     >     >         >
>     >     >     >         >             Yes but, the problem arises when we
>     >     want to mix
>     >     >     >         our products but
>     >     >     >         >             only want / just need one karaf
>     >     instance.. Plus
>     >     >     >         each release does
>     >     >     >         >             actually require a significant
>     amount
>     >     of space on
>     >     >     >         our artifact
>     >     >     >         >             servers.. around 150mb per release /
>     >     snapshot..
>     >     >     >         Using the kar
>     >     >     >         >             approach and one common custom karaf
>     >     for our
>     >     >     >         products lightents this
>     >     >     >         >             a lot.
>     >     >     >         >
>     >     >     >         >             So today we are doing one karaf
>     >     assembly per
>     >     >     >         project but want to
>     >     >     >         >             move away from it.
>     >     >     >         >
>     >     >     >         >             -regards Nino
>     >     >     >         >
>     >     >     >         >             On Tue, Apr 17, 2018 at 11:30 AM,
>     >     Francois Papon
>     >     >     >         >             <francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>
>     >     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>>
>     >     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>
>     >     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>>>>
>     >     >     >
>     >     >     >         >             wrote:
>     >     >     >         >
>     >     >     >         >                 Have you tried to create a
>     custom
>     >     distribution
>     >     >     >         of Karaf ? It's
>     >     >     >         >                 great to use in offline
>     environment.
>     >     >     >         >
>     >     >     >         >                 Here an example of pom
>     assembly :
>     >     >     >         >
>     >     >     >         >                 -- <?xml version="1.0"
>     >     encoding="UTF-8"?>
>     >     >     >         >                 <project
>     >     >     >         xmlns="http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     >     <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>
>     >     >     >         <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     >     <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>>"
>     >     >     >         >               
>      <http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0>
>     >     <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>
>     >     >     >         <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     >     <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>>>
>     >     >     >         >               
>     >     >     >       
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >     >     <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>
>     >     >     >         <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >     >     <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>>"
>     >     >     >         >               
>     >      <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >     >     <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>
>     >     >     >         <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >     >     <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>>>
>     >     >     >         >                    
>     >     >     >       
>     >      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     >     <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>
>     >     >     >         <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     >     >     <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>>
>     >     >     >         >               
>     >     >      http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >     >     <http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>>
>     >     >     >         <http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >     >     <http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>>>"
>     >     >     >         >               
>     >     >     >       
>     >     >   
>     >   
>         <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >     >   
>     >   
>       <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>>
>     >     >     >       
>     >     >   
>     >   
>        <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >     >   
>     >   
>       <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>>>>>
>     >     >     >
>     >     >     >         >
>     >     >     >         >                    
>     <modelVersion>4.0.0</modelVersion>
>     >     >     >         >
>     >     >     >         >                     <parent>
>     >     >     >         >                        
>     >     <groupId>org.mycustom</groupId>
>     >     >     >         >                        
>     >     <artifactId>distrib</artifactId>
>     >     >     >         >                        
>     >     <version>1.0.0-SNAPSHOT</version>
>     >     >     >         >                        
>     >     >     <relativePath>../pom.xml</relativePath>
>     >     >     >         >                     </parent>
>     >     >     >         >
>     >     >     >         >                    
>     >     >     >       
>      <artifactId>org.mycustom.karaf.assembly</artifactId>
>     >     >     >         >                    
>     >     <packaging>karaf-assembly</packaging>
>     >     >     >         >
>     >     >     >         >                     <name>Mycustom :: Karaf
>     >     Distribution ::
>     >     >     >         Assembly</name>
>     >     >     >         >                     <description>Karaf Custom
>     >     distribution
>     >     >     >         assembly</description>
>     >     >     >         >
>     >     >     >         >                     <dependencies>
>     >     >     >         >                         <dependency>
>     >     >     >         >                            
>     >     >     >         <groupId>org.apache.karaf.features</groupId>
>     >     >     >         >                            
>     >     >     <artifactId>framework</artifactId>
>     >     >     >         >                            
>     >     >     <version>${karaf.version}</version>
>     >     >     >         >                             <type>kar</type>
>     >     >     >         >                         </dependency>
>     >     >     >         >
>     >     >     >         >                         <dependency>
>     >     >     >         >                            
>     >     >     >         <groupId>org.apache.karaf.features</groupId>
>     >     >     >         >                            
>     >     >     <artifactId>enterprise</artifactId>
>     >     >     >         >                            
>     >     >     <version>${karaf.version}</version>
>     >     >     >         >                            
>     >     >     <classifier>features</classifier>
>     >     >     >         >                             <type>xml</type>
>     >     >     >         >                            
>     <scope>runtime</scope>
>     >     >     >         >                         </dependency>
>     >     >     >         >
>     >     >     >         >                         <dependency>
>     >     >     >         >                            
>     >     >     >         <groupId>org.apache.cxf.karaf</groupId>
>     >     >     >         >                            
>     >     >     <artifactId>apache-cxf</artifactId>
>     >     >     >         >                            
>     >     >     <classifier>features</classifier>
>     >     >     >         >                            
>     >     >     <version>${cxf-core.version}</version>
>     >     >     >         >                             <type>xml</type>
>     >     >     >         >                            
>     <scope>runtime</scope>
>     >     >     >         >                         </dependency>
>     >     >     >         >
>     >     >     >         >                         <dependency>
>     >     >     >         >                            
>     >     >     <groupId>org.ops4j.pax.jdbc</groupId>
>     >     >     >         >                            
>     >     >     >         <artifactId>pax-jdbc-features</artifactId>
>     >     >     >         >                            
>     >     >     <classifier>features</classifier>
>     >     >     >         >                            
>     >     >     <version>${pax-jdbc.version}</version>
>     >     >     >         >                             <type>xml</type>
>     >     >     >         >                            
>     <scope>runtime</scope>
>     >     >     >         >                         </dependency>
>     >     >     >         >
>     >     >     >         >                         <dependency>
>     >     >     >         >                            
>     >     >     >         <groupId>org.apache.karaf.cellar</groupId>
>     >     >     >         >                            
>     >     >     >         <artifactId>apache-karaf-cellar</artifactId>
>     >     >     >         >                            
>     >     >     <classifier>features</classifier>
>     >     >     >         >                            
>     >     >     >         <version>${karaf-cellar.version}</version>
>     >     >     >         >                             <type>xml</type>
>     >     >     >         >                            
>     <scope>runtime</scope>
>     >     >     >         >                         </dependency>
>     >     >     >         >
>     >     >     >         >                         <dependency>
>     >     >     >         >                            
>     >     >     >         <groupId>io.oxsoftware.kastle</groupId>
>     >     >     >         >                            
>     >     >     >       
>      <artifactId>io.oxsoftware.kastle.features</artifactId>
>     >     >     >         >                            
>     >     >     <classifier>features</classifier>
>     >     >     >         >                            
>     >     >     >         <version>${project.parent.version}</version>
>     >     >     >         >                             <type>xml</type>
>     >     >     >         >                            
>     <scope>runtime</scope>
>     >     >     >         >                         </dependency>
>     >     >     >         >
>     >     >     >         >                     </dependencies>
>     >     >     >         >
>     >     >     >         >                     <build>
>     >     >     >         >                         <!-- if you want to
>     include
>     >     >     resources
>     >     >     >         in the
>     >     >     >         >                 distribution -->
>     >     >     >         >                         <resources>
>     >     >     >         >                             <resource>
>     >     >     >         >                                
>     >     >     >         <directory>src/main/resources</directory>
>     >     >     >         >                                
>     >     <filtering>false</filtering>
>     >     >     >         >                                 <includes>
>     >     >     >         >                                    
>     >     <include>**/*</include>
>     >     >     >         >                                 </includes>
>     >     >     >         >                             </resource>
>     >     >     >         >                             <resource>
>     >     >     >         >                                
>     >     >     >         <directory>src/main/filtered-resources</directory>
>     >     >     >         >                                
>     >     <filtering>true</filtering>
>     >     >     >         >                                 <includes>
>     >     >     >         >                                    
>     >     <include>**/*</include>
>     >     >     >         >                                 </includes>
>     >     >     >         >                             </resource>
>     >     >     >         >                         </resources>
>     >     >     >         >
>     >     >     >         >                         <plugins>
>     >     >     >         >                             <!-- if you want to
>     >     include
>     >     >     >         resources in the
>     >     >     >         >                 distribution -->
>     >     >     >         >                             <plugin>
>     >     >     >         >                                
>     >     >     >         <groupId>org.apache.maven.plugins</groupId>
>     >     >     >         >                                
>     >     >     >         <artifactId>maven-resources-plugin</artifactId>
>     >     >     >         >                                
>     >     <version>3.0.2</version>
>     >     >     >         >                                 <executions>
>     >     >     >         >                                     <execution>
>     >     >     >         >                                        
>     >     >     <id>process-resources</id>
>     >     >     >         >                                         <goals>
>     >     >     >         >                                            
>     >     >     <goal>resources</goal>
>     >     >     >         >                                         </goals>
>     >     >     >         >                                     </execution>
>     >     >     >         >                                 </executions>
>     >     >     >         >                             </plugin>
>     >     >     >         >                             <plugin>
>     >     >     >         >                                
>     >     >     >         <groupId>org.apache.karaf.tooling</groupId>
>     >     >     >         >                                
>     >     >     >         <artifactId>karaf-maven-plugin</artifactId>
>     >     >     >         >                                
>     >     >     >         <version>${karaf.version}</version>
>     >     >     >         >                                
>     >     >     <extensions>true</extensions>
>     >     >     >         >                                 <configuration>
>     >     >     >         >                                    
>     >     <installedFeatures>
>     >     >     >         >                                        
>     >     >     >         <feature>custom-distrib</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>custom-distrib-services</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>custom-distrib-rest</feature>
>     >     >     >         >                                    
>     >     </installedFeatures>
>     >     >     >         >                                    
>     <bootFeatures>
>     >     >     >         >                                        
>     >     >     <feature>wrapper</feature>
>     >     >     >         >                                        
>     >     >     <feature>wrap</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>aries-blueprint</feature>
>     >     >     >         >                                        
>     >     >     <feature>shell</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>shell-compat</feature>
>     >     >     >         >                                        
>     >     >     <feature>feature</feature>
>     >     >     >         >                                        
>     >     >     <feature>jaas</feature>
>     >     >     >         >                                        
>     >     >     <feature>ssh</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>management</feature>
>     >     >     >         >                                        
>     >     >     <feature>bundle</feature>
>     >     >     >         >                                        
>     >     >     <feature>config</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>deployer</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>diagnostic</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>instance</feature>
>     >     >     >         >                                        
>     >     >     <feature>kar</feature>
>     >     >     >         >                                        
>     >     >     <feature>log</feature>
>     >     >     >         >                                        
>     >     >     <feature>package</feature>
>     >     >     >         >                                        
>     >     >     <feature>service</feature>
>     >     >     >         >                                        
>     >     >     <feature>system</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>eventadmin</feature>
>     >     >     >         >                                        
>     >     >     <feature>scr</feature>
>     >     >     >         >
>     >     >     >         >                                        
>     >     >     <feature>jdbc</feature>
>     >     >     >         >                                        
>     >     >     <feature>jndi</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>transaction</feature>
>     >     >     >         >                                        
>     >     >     <feature>war</feature>
>     >     >     >         >
>     >     >     >         >                                        
>     >     >     <feature>cxf</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>cxf-jaxrs</feature>
>     >     >     >         >                                        
>     >     >     >         >               
>     >     >      <feature>cxf-rs-description-swagger2</feature>
>     >     >     >         >                                        
>     >     >     >         >
>     >     >     >         >                                        
>     >     >     >         <feature>pax-jdbc</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>pax-jdbc-config</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>pax-jdbc-pool-hikaricp</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>pax-jdbc-pool-aries</feature>
>     >     >     >         >                                        
>     >     >     >         <feature>pax-jdbc-postgresql</feature>
>     >     >     >         >
>     >     >     >         >                                         
>     >     >     <feature>cellar</feature>
>     >     >     >         >                                    
>     </bootFeatures>
>     >     >     >         >                                     <libraries>
>     >     >     >         >                                        
>     >     >     >         >               
>     >     >     >       
>     >     >   
>     >   
>         <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>     >     >     >         >                                        
>     >     >     >         >               
>     >     >     >       
>     >     >   
>     >   
>         <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
>     >     >     >         >                                     </libraries>
>     >     >     >         >                                    
>     >     <javase>1.8</javase>
>     >     >     >         >                                 </configuration>
>     >     >     >         >                             </plugin>
>     >     >     >         >                         </plugins>
>     >     >     >         >                         <pluginManagement>
>     >     >     >         >                             <plugins>
>     >     >     >         >                                 <!--This
>     plugin's
>     >     >     >         configuration is used to store
>     >     >     >         >                 Eclipse m2e settings
>     >     >     >         >                                     only. It
>     has no
>     >     >     influence
>     >     >     >         on the Maven build
>     >     >     >         >                 itself. -->
>     >     >     >         >                                 <plugin>
>     >     >     >         >                                    
>     >     >     >         <groupId>org.eclipse.m2e</groupId>
>     >     >     >         >                                    
>     >     >     >         <artifactId>lifecycle-mapping</artifactId>
>     >     >     >         >                                    
>     >     <version>1.0.0</version>
>     >     >     >         >                                    
>     <configuration>
>     >     >     >         >                                        
>     >     >     <lifecycleMappingMetadata>
>     >     >     >         >                                            
>     >     >     <pluginExecutions>
>     >     >     >         >                                                
>     >     >     <pluginExecution>
>     >     >     >         >                                            
>            
>     >     >     >         <pluginExecutionFilter>
>     >     >     >         >                                                
>     >            
>     >     >     <groupId>
>     >     >     >         >                                                
>     >                
>     >     >     >         org.apache.karaf.tooling
>     >     >     >         >                                                
>     >            
>     >     >     </groupId>
>     >     >     >         >                                                
>     >            
>     >     >     >         <artifactId>
>     >     >     >         >                                                
>     >                
>     >     >     >         karaf-maven-plugin
>     >     >     >         >                                                
>     >            
>     >     >     >         </artifactId>
>     >     >     >         >                                                
>     >            
>     >     >     >         <versionRange>
>     >     >     >         >                                                
>     >                
>     >     >     >         [4.1.0,)
>     >     >     >         >                                                
>     >            
>     >     >     >         </versionRange>
>     >     >     >         >                                                
>     >            
>     >     >     <goals>
>     >     >     >         >                                                
>     >                
>     >     >     >         <goal>assembly</goal>
>     >     >     >         >                                                
>     >            
>     >     >     </goals>
>     >     >     >         >                                            
>            
>     >     >     >         </pluginExecutionFilter>
>     >     >     >         >                                                
>     >         <action>
>     >     >     >         >                                                
>     >            
>     >     >     >         <ignore></ignore>
>     >     >     >         >                                            
>            
>     >     >     </action>
>     >     >     >         >                                                
>     >     >     </pluginExecution>
>     >     >     >         >                                            
>     >     >     </pluginExecutions>
>     >     >     >         >                                        
>     >     >     >         </lifecycleMappingMetadata>
>     >     >     >         >                                    
>     </configuration>
>     >     >     >         >                                 </plugin>
>     >     >     >         >                             </plugins>
>     >     >     >         >                         </pluginManagement>
>     >     >     >         >                     </build>
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >                 Le 17/04/2018 à 10:30, nino
>     >     martinez wael a
>     >     >     >         écrit :
>     >     >     >         >>                 Yes, I want to include at least
>     >     first level
>     >     >     >         dependencies for
>     >     >     >         >>                 my kar / application.. But
>     we need to
>     >     >     be able
>     >     >     >         todo an offline
>     >     >     >         >>                 installation. With released
>     >     applications.
>     >     >     >         >>
>     >     >     >         >>                 On Sat, Apr 14, 2018 at
>     6:41 PM,
>     >     >     Francois Papon
>     >     >     >         >>               
>      <francois.papon@openobject.fr <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>
>     >     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>>
>     >     >     >         >>               
>     >      <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>
>     >     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>>>> wrote:
>     >     >     >         >>
>     >     >     >         >>                     Hi,
>     >     >     >         >>
>     >     >     >         >>                     You want to include
>     your repo
>     >     into
>     >     >     a kar ?
>     >     >     >         >>
>     >     >     >         >>                     François
>     >     >     >         >>
>     >     >     >         >>
>     >     >     >         >>                     Le 13/04/2018 à 16:50, nino
>     >     >     martinez wael
>     >     >     >         a écrit :
>     >     >     >         >>>                     I have this that does
>     what I
>     >     >     want.. BUT
>     >     >     >         I think it's a
>     >     >     >         >>>                     hardcore hack. Is there no
>     >     way to
>     >     >     make a
>     >     >     >         packaged kar
>     >     >     >         >>>                     containing a repo like
>     below,
>     >     >     using the
>     >     >     >         resources
>     >     >     >         >>>                     parameter seems to be
>     a hack?
>     >     >     >         >>>
>     >     >     >         >>>                     <plugin>
>     >     >     >         >>>                       
>     >     >     >          <groupId>org.apache.karaf.tooling</groupId>
>     >     >     >         >>>                       
>     >     >     >          <artifactId>karaf-maven-plugin</artifactId>
>     >     >     >         >>>                       
>     >      <extensions>true</extensions>
>     >     >     >         >>>                       
>     >     >      <version>${karaf.version}</version>
>     >     >     >         >>>                         <executions>
>     >     >     >         >>>                             <execution>
>     >     >     >         >>>                               
>     >     >      <id>features-add-to-repo</id>
>     >     >     >         >>>                                 <goals>
>     >     >     >         >>>                                   
>     >     >     >          <goal>features-add-to-repository</goal>
>     >     >     >         >>>                                 </goals>
>     >     >     >         >>>                               
>      <configuration>
>     >     >     >         >>>                                   
>      <descriptors>
>     >     >     >         >>>                                       
>     >     >     >       
>     >     >   
>     >   
>         <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>     >     >     >         >>>                                       
>     >     >     >       
>     >     >   
>     >   
>         <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>     >     >     >         >>>                                   
>      </descriptors>
>     >     >     >         >>>                                     <features>
>     >     >     >         >>>                                       
>     >     >     >          <feature>ccadmin</feature>
>     >     >     >         >>>                                   
>      </features>
>     >     >     >         >>>                                   
>     >     >     >       
>     >     >   
>     >   
>         <repository>${project.build.directory}/classes/repository</repository>
>     >     >     >         >>>                               
>      </configuration>
>     >     >     >         >>>                             </execution>
>     >     >     >         >>>                             <execution>
>     >     >     >         >>>                                 <id>kar</id>
>     >     >     >         >>>                                 <goals>
>     >     >     >         >>>                                   
>      <goal>kar</goal>
>     >     >     >         >>>                                 </goals>
>     >     >     >         >>>                             </execution>
>     >     >     >         >>>                         </executions>
>     >     >     >         >>>                     </plugin>
>     >     >     >         >>>
>     >     >     >         >>
>     >     >     >         >>
>     >     >     >         >>
>     >     >     >         >>
>     >     >     >         >>                 --
>     >     >     >         >>                 Best regards / Med venlig
>     hilsen 
>     >     >     >         >>                 Nino Martinez
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >             --
>     >     >     >         >             Best regards / Med venlig hilsen 
>     >     >     >         >             Nino Martinez
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >         --
>     >     >     >         >         Best regards / Med venlig hilsen 
>     >     >     >         >         Nino Martinez
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >
>     >     >     >         >     --
>     >     >     >         >     Best regards / Med venlig hilsen 
>     >     >     >         >     Nino Martinez
>     >     >     >         >
>     >     >     >
>     >     >     >         --
>     >     >     >         Jean-Baptiste Onofré
>     >     >     >         jbonofre@apache.org
>     <ma...@apache.org> <mailto:jbonofre@apache.org
>     <ma...@apache.org>>
>     >     <mailto:jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>>
>     >     >     <mailto:jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     >     <mailto:jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>>>
>     >     >     >         http://blog.nanthrax.net
>     >     >     >         Talend - http://www.talend.com
>     >     >     >
>     >     >     >
>     >     >     >
>     >     >
>     >     >     --
>     >     >     --
>     >     >     Jean-Baptiste Onofré
>     >     >     jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     >     <mailto:jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>>
>     >     >     http://blog.nanthrax.net
>     >     >     Talend - http://www.talend.com
>     >     >
>     >     >
>     >     >
>     >     >
>     >     > --
>     >     > Best regards / Med venlig hilsen 
>     >     > Nino Martinez
>     > 
>     >     -- 
>     >     --
>     >     Jean-Baptiste Onofré
>     >     jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     >     http://blog.nanthrax.net
>     >     Talend - http://www.talend.com
>     >
> 
>     -- 
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
> 
> 
> 
> 
> -- 
> Best regards / Med venlig hilsen 
> Nino Martinez

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
Ok great, I will check it out.. Did you commit here:

https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/karaf-maven-example/karaf-maven-example-kar

On Sat, Jun 2, 2018 at 6:58 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Let me add a new example about what I did on the DEV_GUIDE.
>
> Maybe we don't have the same kind of features.xml or I don't understand
> exactly the test case ;)
>
> Regards
> JB
>
> On 01/06/2018 10:34, nino martinez wael wrote:
> > Yes, when I tried I just ended up with an kar that contained the
> > outermost feature.xml
> >
> > On Wed, 30 May 2018, 15:36 Jean-Baptiste Onofré, <jb@nanthrax.net
> > <ma...@nanthrax.net>> wrote:
> >
> >     Yes, it contains the inner features bundles.
> >
> >     Is it what you are missing ?
> >
> >     Regards
> >     JB
> >
> >     On 30/05/2018 15:31, nino martinez wael wrote:
> >     > but what are the resulting kar? does it contain the aggregated
> feature
> >     > set bundles?
> >     >
> >     >
> >     > regards Nino
> >     >
> >     > On Wed, May 30, 2018 at 2:54 PM, Jean-Baptiste Onofré
> >     <jb@nanthrax.net <ma...@nanthrax.net>
> >     > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
> >     >
> >     >     Hi,
> >     >
> >     >     I tested without problem with 4.1.5. I'm testing with 4.2.0
> now.
> >     >
> >     >     I keep you posted.
> >     >
> >     >     Regards
> >     >     JB
> >     >
> >     >     On 30/05/2018 14:14, Martin Nielsen wrote:
> >     >     > Hello everyone
> >     >     > I am facing a similar issue, did you figure this out?
> >     >     >
> >     >     > -Martin
> >     >     >
> >     >     > On Wed, May 16, 2018 at 6:06 PM, nino martinez wael
> >     >     > <nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>> wrote:
> >     >     >
> >     >     >     Did you get a chance to look at this?
> >     >     >
> >     >     >     On 3 May 2018 20:23, "Jean-Baptiste Onofré"
> >     <jb@nanthrax.net <ma...@nanthrax.net> <mailto:jb@nanthrax.net
> >     <ma...@nanthrax.net>>
> >     >     >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>
> >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
> >     >     >
> >     >     >         Hi Nino,
> >     >     >
> >     >     >         As I'm now back from vacation, I gonna take a look.
> >     >     >
> >     >     >         Sorry for the delay.
> >     >     >
> >     >     >         Regards
> >     >     >         JB
> >     >     >
> >     >     >
> >     >     >         On 05/03/2018 08:19 PM, nino martinez wael wrote:
> >     >     >         > Any chance someone has an idea?
> >     >     >         >
> >     >     >         > On Wed, 18 Apr 2018, 08:02 nino martinez wael,
> >     >     >         <nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>
> >     >     >         > <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>
> >     >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>>> wrote:
> >     >     >         >
> >     >     >         >     Actually if I read this part, it does seem
> >     that the kar
> >     >     >         goal should do what
> >     >     >         >     I want. But I am missing the part where the
> >     kar plugin add
> >     >     >         the bundles to
> >     >     >         >     the kar repo..
> >     >     >         >
> >     >     >         >
> >     >     >
> >       https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc
> >     >
> >      <https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc>
> >     >     >
> >      <https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc
> >     >
> >      <https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc>>
> >     >     >         >
> >     >     >         >
> >     >     >         >             Maven
> >     >     >         >
> >     >     >         >     Apache Karaf provides a Maven
> >     plugin: |karaf-maven-plugin|.
> >     >     >         >
> >     >     >         >     The Apache Karaf Maven plugin provides
> >     the |kar| goal.
> >     >     >         >
> >     >     >         >     The |kar| goal does: . Reads all features
> >     specified in the
> >     >     >         features XML. .
> >     >     >         >     For each feature described in the features
> >     XML, the goal
> >     >     >         resolves the
> >     >     >         >     bundles described in the feature. . The goal
> >     finally
> >     >     >         packages the features
> >     >     >         >     XML, *_/and the resolved bundles in a zip
> file./_*
> >     >     >
> >     >     >         >
> >     >     >         >     For instance, the following Maven POM
> >     create |my-kar.kar|
> >     >     >         >
> >     >     >         >     For instance, you can use the following POM to
> >     create a kar:
> >     >     >         >
> >     >     >         >
> >     >     >         >
> >     >     >         >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez
> >     wael
> >     >     >         >     <nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>
> >     >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>
> >     >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>
> >     >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>>> wrote:
> >     >     >         >
> >     >     >         >         if I check the documentation the spring
> >     kar "example"
> >     >     >         are pretty much
> >     >     >         >         what we want todo..
> >     >     >         >
> >     >     >         >         https://karaf.apache.org/manual/latest/kar
> >     >     <https://karaf.apache.org/manual/latest/kar>
> >     >     >         <https://karaf.apache.org/manual/latest/kar
> >     >     <https://karaf.apache.org/manual/latest/kar>>
> >     >     >         >
> >     >     >         >         On Wed, Apr 18, 2018 at 7:52 AM, nino
> >     martinez wael
> >     >     >         >         <nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>
> >     >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>
> >     >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>
> >     >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>>> wrote:
> >     >     >         >
> >     >     >         >             Yes but, the problem arises when we
> >     want to mix
> >     >     >         our products but
> >     >     >         >             only want / just need one karaf
> >     instance.. Plus
> >     >     >         each release does
> >     >     >         >             actually require a significant amount
> >     of space on
> >     >     >         our artifact
> >     >     >         >             servers.. around 150mb per release /
> >     snapshot..
> >     >     >         Using the kar
> >     >     >         >             approach and one common custom karaf
> >     for our
> >     >     >         products lightents this
> >     >     >         >             a lot.
> >     >     >         >
> >     >     >         >             So today we are doing one karaf
> >     assembly per
> >     >     >         project but want to
> >     >     >         >             move away from it.
> >     >     >         >
> >     >     >         >             -regards Nino
> >     >     >         >
> >     >     >         >             On Tue, Apr 17, 2018 at 11:30 AM,
> >     Francois Papon
> >     >     >         >             <francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>
> >     >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>>
> >     >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >     <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>
> >     >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>>>>
> >     >     >
> >     >     >         >             wrote:
> >     >     >         >
> >     >     >         >                 Have you tried to create a custom
> >     distribution
> >     >     >         of Karaf ? It's
> >     >     >         >                 great to use in offline
> environment.
> >     >     >         >
> >     >     >         >                 Here an example of pom assembly :
> >     >     >         >
> >     >     >         >                 -- <?xml version="1.0"
> >     encoding="UTF-8"?>
> >     >     >         >                 <project
> >     >     >         xmlns="http://maven.apache.org/POM/4.0.0
> >     <http://maven.apache.org/POM/4.0.0>
> >     >     >         <http://maven.apache.org/POM/4.0.0
> >     <http://maven.apache.org/POM/4.0.0>>"
> >     >     >         >                 <http://maven.apache.org/POM/4.0.0
> >     <http://maven.apache.org/POM/4.0.0>
> >     >     >         <http://maven.apache.org/POM/4.0.0
> >     <http://maven.apache.org/POM/4.0.0>>>
> >     >     >         >
> >     >     >          xmlns:xsi="http://www.w3.
> org/2001/XMLSchema-instance
> >     >     <http://www.w3.org/2001/XMLSchema-instance>
> >     >     >         <http://www.w3.org/2001/XMLSchema-instance
> >     >     <http://www.w3.org/2001/XMLSchema-instance>>"
> >     >     >         >
> >      <http://www.w3.org/2001/XMLSchema-instance
> >     >     <http://www.w3.org/2001/XMLSchema-instance>
> >     >     >         <http://www.w3.org/2001/XMLSchema-instance
> >     >     <http://www.w3.org/2001/XMLSchema-instance>>>
> >     >     >         >
> >     >     >
> >      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >     <http://maven.apache.org/POM/4.0.0>
> >     >     >         <http://maven.apache.org/POM/4.0.0
> >     >     <http://maven.apache.org/POM/4.0.0>>
> >     >     >         >
> >     >      http://maven.apache.org/xsd/maven-4.0.0.xsd
> >     >     <http://maven.apache.org/xsd/maven-4.0.0.xsd>
> >     >     >         <http://maven.apache.org/xsd/maven-4.0.0.xsd
> >     >     <http://maven.apache.org/xsd/maven-4.0.0.xsd>>"
> >     >     >         >
> >     >     >
> >     >
> >        <http://maven.apache.org/POM/4.0.0http://maven.apache.
> org/xsd/maven-4.0.0.xsd
> >     >
> >      <http://maven.apache.org/POM/4.0.0http://maven.apache.org/
> xsd/maven-4.0.0.xsd>
> >     >     >
> >     >
> >       <http://maven.apache.org/POM/4.0.0http://maven.apache.
> org/xsd/maven-4.0.0.xsd
> >     >
> >      <http://maven.apache.org/POM/4.0.0http://maven.apache.org/
> xsd/maven-4.0.0.xsd>>>>
> >     >     >
> >     >     >         >
> >     >     >         >                     <modelVersion>4.0.0</
> modelVersion>
> >     >     >         >
> >     >     >         >                     <parent>
> >     >     >         >
> >     <groupId>org.mycustom</groupId>
> >     >     >         >
> >     <artifactId>distrib</artifactId>
> >     >     >         >
> >     <version>1.0.0-SNAPSHOT</version>
> >     >     >         >
> >     >     <relativePath>../pom.xml</relativePath>
> >     >     >         >                     </parent>
> >     >     >         >
> >     >     >         >
> >     >     >         <artifactId>org.mycustom.karaf.assembly</artifactId>
> >     >     >         >
> >     <packaging>karaf-assembly</packaging>
> >     >     >         >
> >     >     >         >                     <name>Mycustom :: Karaf
> >     Distribution ::
> >     >     >         Assembly</name>
> >     >     >         >                     <description>Karaf Custom
> >     distribution
> >     >     >         assembly</description>
> >     >     >         >
> >     >     >         >                     <dependencies>
> >     >     >         >                         <dependency>
> >     >     >         >
> >     >     >         <groupId>org.apache.karaf.features</groupId>
> >     >     >         >
> >     >     <artifactId>framework</artifactId>
> >     >     >         >
> >     >     <version>${karaf.version}</version>
> >     >     >         >                             <type>kar</type>
> >     >     >         >                         </dependency>
> >     >     >         >
> >     >     >         >                         <dependency>
> >     >     >         >
> >     >     >         <groupId>org.apache.karaf.features</groupId>
> >     >     >         >
> >     >     <artifactId>enterprise</artifactId>
> >     >     >         >
> >     >     <version>${karaf.version}</version>
> >     >     >         >
> >     >     <classifier>features</classifier>
> >     >     >         >                             <type>xml</type>
> >     >     >         >                             <scope>runtime</scope>
> >     >     >         >                         </dependency>
> >     >     >         >
> >     >     >         >                         <dependency>
> >     >     >         >
> >     >     >         <groupId>org.apache.cxf.karaf</groupId>
> >     >     >         >
> >     >     <artifactId>apache-cxf</artifactId>
> >     >     >         >
> >     >     <classifier>features</classifier>
> >     >     >         >
> >     >     <version>${cxf-core.version}</version>
> >     >     >         >                             <type>xml</type>
> >     >     >         >                             <scope>runtime</scope>
> >     >     >         >                         </dependency>
> >     >     >         >
> >     >     >         >                         <dependency>
> >     >     >         >
> >     >     <groupId>org.ops4j.pax.jdbc</groupId>
> >     >     >         >
> >     >     >         <artifactId>pax-jdbc-features</artifactId>
> >     >     >         >
> >     >     <classifier>features</classifier>
> >     >     >         >
> >     >     <version>${pax-jdbc.version}</version>
> >     >     >         >                             <type>xml</type>
> >     >     >         >                             <scope>runtime</scope>
> >     >     >         >                         </dependency>
> >     >     >         >
> >     >     >         >                         <dependency>
> >     >     >         >
> >     >     >         <groupId>org.apache.karaf.cellar</groupId>
> >     >     >         >
> >     >     >         <artifactId>apache-karaf-cellar</artifactId>
> >     >     >         >
> >     >     <classifier>features</classifier>
> >     >     >         >
> >     >     >         <version>${karaf-cellar.version}</version>
> >     >     >         >                             <type>xml</type>
> >     >     >         >                             <scope>runtime</scope>
> >     >     >         >                         </dependency>
> >     >     >         >
> >     >     >         >                         <dependency>
> >     >     >         >
> >     >     >         <groupId>io.oxsoftware.kastle</groupId>
> >     >     >         >
> >     >     >         <artifactId>io.oxsoftware.
> kastle.features</artifactId>
> >     >     >         >
> >     >     <classifier>features</classifier>
> >     >     >         >
> >     >     >         <version>${project.parent.version}</version>
> >     >     >         >                             <type>xml</type>
> >     >     >         >                             <scope>runtime</scope>
> >     >     >         >                         </dependency>
> >     >     >         >
> >     >     >         >                     </dependencies>
> >     >     >         >
> >     >     >         >                     <build>
> >     >     >         >                         <!-- if you want to include
> >     >     resources
> >     >     >         in the
> >     >     >         >                 distribution -->
> >     >     >         >                         <resources>
> >     >     >         >                             <resource>
> >     >     >         >
> >     >     >         <directory>src/main/resources</directory>
> >     >     >         >
> >     <filtering>false</filtering>
> >     >     >         >                                 <includes>
> >     >     >         >
> >     <include>**/*</include>
> >     >     >         >                                 </includes>
> >     >     >         >                             </resource>
> >     >     >         >                             <resource>
> >     >     >         >
> >     >     >         <directory>src/main/filtered-resources</directory>
> >     >     >         >
> >     <filtering>true</filtering>
> >     >     >         >                                 <includes>
> >     >     >         >
> >     <include>**/*</include>
> >     >     >         >                                 </includes>
> >     >     >         >                             </resource>
> >     >     >         >                         </resources>
> >     >     >         >
> >     >     >         >                         <plugins>
> >     >     >         >                             <!-- if you want to
> >     include
> >     >     >         resources in the
> >     >     >         >                 distribution -->
> >     >     >         >                             <plugin>
> >     >     >         >
> >     >     >         <groupId>org.apache.maven.plugins</groupId>
> >     >     >         >
> >     >     >         <artifactId>maven-resources-plugin</artifactId>
> >     >     >         >
> >     <version>3.0.2</version>
> >     >     >         >                                 <executions>
> >     >     >         >                                     <execution>
> >     >     >         >
> >     >     <id>process-resources</id>
> >     >     >         >                                         <goals>
> >     >     >         >
> >     >     <goal>resources</goal>
> >     >     >         >                                         </goals>
> >     >     >         >                                     </execution>
> >     >     >         >                                 </executions>
> >     >     >         >                             </plugin>
> >     >     >         >                             <plugin>
> >     >     >         >
> >     >     >         <groupId>org.apache.karaf.tooling</groupId>
> >     >     >         >
> >     >     >         <artifactId>karaf-maven-plugin</artifactId>
> >     >     >         >
> >     >     >         <version>${karaf.version}</version>
> >     >     >         >
> >     >     <extensions>true</extensions>
> >     >     >         >                                 <configuration>
> >     >     >         >
> >     <installedFeatures>
> >     >     >         >
> >     >     >         <feature>custom-distrib</feature>
> >     >     >         >
> >     >     >         <feature>custom-distrib-services</feature>
> >     >     >         >
> >     >     >         <feature>custom-distrib-rest</feature>
> >     >     >         >
> >     </installedFeatures>
> >     >     >         >                                     <bootFeatures>
> >     >     >         >
> >     >     <feature>wrapper</feature>
> >     >     >         >
> >     >     <feature>wrap</feature>
> >     >     >         >
> >     >     >         <feature>aries-blueprint</feature>
> >     >     >         >
> >     >     <feature>shell</feature>
> >     >     >         >
> >     >     >         <feature>shell-compat</feature>
> >     >     >         >
> >     >     <feature>feature</feature>
> >     >     >         >
> >     >     <feature>jaas</feature>
> >     >     >         >
> >     >     <feature>ssh</feature>
> >     >     >         >
> >     >     >         <feature>management</feature>
> >     >     >         >
> >     >     <feature>bundle</feature>
> >     >     >         >
> >     >     <feature>config</feature>
> >     >     >         >
> >     >     >         <feature>deployer</feature>
> >     >     >         >
> >     >     >         <feature>diagnostic</feature>
> >     >     >         >
> >     >     >         <feature>instance</feature>
> >     >     >         >
> >     >     <feature>kar</feature>
> >     >     >         >
> >     >     <feature>log</feature>
> >     >     >         >
> >     >     <feature>package</feature>
> >     >     >         >
> >     >     <feature>service</feature>
> >     >     >         >
> >     >     <feature>system</feature>
> >     >     >         >
> >     >     >         <feature>eventadmin</feature>
> >     >     >         >
> >     >     <feature>scr</feature>
> >     >     >         >
> >     >     >         >
> >     >     <feature>jdbc</feature>
> >     >     >         >
> >     >     <feature>jndi</feature>
> >     >     >         >
> >     >     >         <feature>transaction</feature>
> >     >     >         >
> >     >     <feature>war</feature>
> >     >     >         >
> >     >     >         >
> >     >     <feature>cxf</feature>
> >     >     >         >
> >     >     >         <feature>cxf-jaxrs</feature>
> >     >     >         >
> >     >     >         >
> >     >      <feature>cxf-rs-description-swagger2</feature>
> >     >     >         >
> >     >     >         >
> >     >     >         >
> >     >     >         <feature>pax-jdbc</feature>
> >     >     >         >
> >     >     >         <feature>pax-jdbc-config</feature>
> >     >     >         >
> >     >     >         <feature>pax-jdbc-pool-hikaricp</feature>
> >     >     >         >
> >     >     >         <feature>pax-jdbc-pool-aries</feature>
> >     >     >         >
> >     >     >         <feature>pax-jdbc-postgresql</feature>
> >     >     >         >
> >     >     >         >
> >     >     <feature>cellar</feature>
> >     >     >         >                                     </bootFeatures>
> >     >     >         >                                     <libraries>
> >     >     >         >
> >     >     >         >
> >     >     >
> >     >
> >        <library>mvn:org.apache.servicemix.specs/org.apache.
> servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.
> version};type:=endorsed;export:=true</library>
> >     >     >         >
> >     >     >         >
> >     >     >
> >     >
> >        <library>mvn:org.apache.servicemix.specs/org.apache.
> servicemix.specs.json-api-1.1/${servicemix.specs.json.
> version};type:=endorsed;export:=true</library>
> >     >     >         >                                     </libraries>
> >     >     >         >
> >     <javase>1.8</javase>
> >     >     >         >                                 </configuration>
> >     >     >         >                             </plugin>
> >     >     >         >                         </plugins>
> >     >     >         >                         <pluginManagement>
> >     >     >         >                             <plugins>
> >     >     >         >                                 <!--This plugin's
> >     >     >         configuration is used to store
> >     >     >         >                 Eclipse m2e settings
> >     >     >         >                                     only. It has no
> >     >     influence
> >     >     >         on the Maven build
> >     >     >         >                 itself. -->
> >     >     >         >                                 <plugin>
> >     >     >         >
> >     >     >         <groupId>org.eclipse.m2e</groupId>
> >     >     >         >
> >     >     >         <artifactId>lifecycle-mapping</artifactId>
> >     >     >         >
> >     <version>1.0.0</version>
> >     >     >         >                                     <configuration>
> >     >     >         >
> >     >     <lifecycleMappingMetadata>
> >     >     >         >
> >     >     <pluginExecutions>
> >     >     >         >
> >     >     <pluginExecution>
> >     >     >         >
> >     >     >         <pluginExecutionFilter>
> >     >     >         >
> >
> >     >     <groupId>
> >     >     >         >
> >
> >     >     >         org.apache.karaf.tooling
> >     >     >         >
> >
> >     >     </groupId>
> >     >     >         >
> >
> >     >     >         <artifactId>
> >     >     >         >
> >
> >     >     >         karaf-maven-plugin
> >     >     >         >
> >
> >     >     >         </artifactId>
> >     >     >         >
> >
> >     >     >         <versionRange>
> >     >     >         >
> >
> >     >     >         [4.1.0,)
> >     >     >         >
> >
> >     >     >         </versionRange>
> >     >     >         >
> >
> >     >     <goals>
> >     >     >         >
> >
> >     >     >         <goal>assembly</goal>
> >     >     >         >
> >
> >     >     </goals>
> >     >     >         >
> >     >     >         </pluginExecutionFilter>
> >     >     >         >
> >         <action>
> >     >     >         >
> >
> >     >     >         <ignore></ignore>
> >     >     >         >
> >     >     </action>
> >     >     >         >
> >     >     </pluginExecution>
> >     >     >         >
> >     >     </pluginExecutions>
> >     >     >         >
> >     >     >         </lifecycleMappingMetadata>
> >     >     >         >
> </configuration>
> >     >     >         >                                 </plugin>
> >     >     >         >                             </plugins>
> >     >     >         >                         </pluginManagement>
> >     >     >         >                     </build>
> >     >     >         >
> >     >     >         >
> >     >     >         >                 Le 17/04/2018 à 10:30, nino
> >     martinez wael a
> >     >     >         écrit :
> >     >     >         >>                 Yes, I want to include at least
> >     first level
> >     >     >         dependencies for
> >     >     >         >>                 my kar / application.. But we
> need to
> >     >     be able
> >     >     >         todo an offline
> >     >     >         >>                 installation. With released
> >     applications.
> >     >     >         >>
> >     >     >         >>                 On Sat, Apr 14, 2018 at 6:41 PM,
> >     >     Francois Papon
> >     >     >         >>                 <francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >     <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>
> >     >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >     <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>>
> >     >     >         >>
> >      <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >     <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>
> >     >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >     <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>>>> wrote:
> >     >     >         >>
> >     >     >         >>                     Hi,
> >     >     >         >>
> >     >     >         >>                     You want to include your repo
> >     into
> >     >     a kar ?
> >     >     >         >>
> >     >     >         >>                     François
> >     >     >         >>
> >     >     >         >>
> >     >     >         >>                     Le 13/04/2018 à 16:50, nino
> >     >     martinez wael
> >     >     >         a écrit :
> >     >     >         >>>                     I have this that does what I
> >     >     want.. BUT
> >     >     >         I think it's a
> >     >     >         >>>                     hardcore hack. Is there no
> >     way to
> >     >     make a
> >     >     >         packaged kar
> >     >     >         >>>                     containing a repo like below,
> >     >     using the
> >     >     >         resources
> >     >     >         >>>                     parameter seems to be a hack?
> >     >     >         >>>
> >     >     >         >>>                     <plugin>
> >     >     >         >>>
> >     >     >          <groupId>org.apache.karaf.tooling</groupId>
> >     >     >         >>>
> >     >     >          <artifactId>karaf-maven-plugin</artifactId>
> >     >     >         >>>
> >      <extensions>true</extensions>
> >     >     >         >>>
> >     >      <version>${karaf.version}</version>
> >     >     >         >>>                         <executions>
> >     >     >         >>>                             <execution>
> >     >     >         >>>
> >     >      <id>features-add-to-repo</id>
> >     >     >         >>>                                 <goals>
> >     >     >         >>>
> >     >     >          <goal>features-add-to-repository</goal>
> >     >     >         >>>                                 </goals>
> >     >     >         >>>                                 <configuration>
> >     >     >         >>>                                     <descriptors>
> >     >     >         >>>
> >     >     >
> >     >
> >        <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/
> xml/features</descriptor>
> >     >     >         >>>
> >     >     >
> >     >
> >        <descriptor>mvn:com.netdesign.ccadmin/ccadmin-
> karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
> >     >     >         >>>
>  </descriptors>
> >     >     >         >>>                                     <features>
> >     >     >         >>>
> >     >     >          <feature>ccadmin</feature>
> >     >     >         >>>                                     </features>
> >     >     >         >>>
> >     >     >
> >     >
> >        <repository>${project.build.directory}/classes/
> repository</repository>
> >     >     >         >>>                                 </configuration>
> >     >     >         >>>                             </execution>
> >     >     >         >>>                             <execution>
> >     >     >         >>>                                 <id>kar</id>
> >     >     >         >>>                                 <goals>
> >     >     >         >>>
>  <goal>kar</goal>
> >     >     >         >>>                                 </goals>
> >     >     >         >>>                             </execution>
> >     >     >         >>>                         </executions>
> >     >     >         >>>                     </plugin>
> >     >     >         >>>
> >     >     >         >>
> >     >     >         >>
> >     >     >         >>
> >     >     >         >>
> >     >     >         >>                 --
> >     >     >         >>                 Best regards / Med venlig hilsen
> >     >     >         >>                 Nino Martinez
> >     >     >         >
> >     >     >         >
> >     >     >         >
> >     >     >         >
> >     >     >         >             --
> >     >     >         >             Best regards / Med venlig hilsen
> >     >     >         >             Nino Martinez
> >     >     >         >
> >     >     >         >
> >     >     >         >
> >     >     >         >
> >     >     >         >         --
> >     >     >         >         Best regards / Med venlig hilsen
> >     >     >         >         Nino Martinez
> >     >     >         >
> >     >     >         >
> >     >     >         >
> >     >     >         >
> >     >     >         >     --
> >     >     >         >     Best regards / Med venlig hilsen
> >     >     >         >     Nino Martinez
> >     >     >         >
> >     >     >
> >     >     >         --
> >     >     >         Jean-Baptiste Onofré
> >     >     >         jbonofre@apache.org <ma...@apache.org>
> >     <mailto:jbonofre@apache.org <ma...@apache.org>>
> >     >     <mailto:jbonofre@apache.org <ma...@apache.org>
> >     <mailto:jbonofre@apache.org <ma...@apache.org>>>
> >     >     >         http://blog.nanthrax.net
> >     >     >         Talend - http://www.talend.com
> >     >     >
> >     >     >
> >     >     >
> >     >
> >     >     --
> >     >     --
> >     >     Jean-Baptiste Onofré
> >     >     jbonofre@apache.org <ma...@apache.org>
> >     <mailto:jbonofre@apache.org <ma...@apache.org>>
> >     >     http://blog.nanthrax.net
> >     >     Talend - http://www.talend.com
> >     >
> >     >
> >     >
> >     >
> >     > --
> >     > Best regards / Med venlig hilsen
> >     > Nino Martinez
> >
> >     --
> >     --
> >     Jean-Baptiste Onofré
> >     jbonofre@apache.org <ma...@apache.org>
> >     http://blog.nanthrax.net
> >     Talend - http://www.talend.com
> >
>
> --
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Let me add a new example about what I did on the DEV_GUIDE.

Maybe we don't have the same kind of features.xml or I don't understand
exactly the test case ;)

Regards
JB

On 01/06/2018 10:34, nino martinez wael wrote:
> Yes, when I tried I just ended up with an kar that contained the
> outermost feature.xml
> 
> On Wed, 30 May 2018, 15:36 Jean-Baptiste Onofré, <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
> 
>     Yes, it contains the inner features bundles.
> 
>     Is it what you are missing ?
> 
>     Regards
>     JB
> 
>     On 30/05/2018 15:31, nino martinez wael wrote:
>     > but what are the resulting kar? does it contain the aggregated feature
>     > set bundles?
>     >
>     >
>     > regards Nino
>     >
>     > On Wed, May 30, 2018 at 2:54 PM, Jean-Baptiste Onofré
>     <jb@nanthrax.net <ma...@nanthrax.net>
>     > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>     >
>     >     Hi,
>     >
>     >     I tested without problem with 4.1.5. I'm testing with 4.2.0 now.
>     >
>     >     I keep you posted.
>     >
>     >     Regards
>     >     JB
>     >
>     >     On 30/05/2018 14:14, Martin Nielsen wrote:
>     >     > Hello everyone
>     >     > I am facing a similar issue, did you figure this out?
>     >     >
>     >     > -Martin
>     >     >
>     >     > On Wed, May 16, 2018 at 6:06 PM, nino martinez wael
>     >     > <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>> wrote:
>     >     >
>     >     >     Did you get a chance to look at this? 
>     >     >
>     >     >     On 3 May 2018 20:23, "Jean-Baptiste Onofré"
>     <jb@nanthrax.net <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>     <ma...@nanthrax.net>>
>     >     >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
>     >     >
>     >     >         Hi Nino,
>     >     >
>     >     >         As I'm now back from vacation, I gonna take a look.
>     >     >
>     >     >         Sorry for the delay.
>     >     >
>     >     >         Regards
>     >     >         JB
>     >     >
>     >     >
>     >     >         On 05/03/2018 08:19 PM, nino martinez wael wrote:
>     >     >         > Any chance someone has an idea? 
>     >     >         >
>     >     >         > On Wed, 18 Apr 2018, 08:02 nino martinez wael,
>     >     >         <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >         > <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>> wrote:
>     >     >         >
>     >     >         >     Actually if I read this part, it does seem
>     that the kar
>     >     >         goal should do what
>     >     >         >     I want. But I am missing the part where the
>     kar plugin add
>     >     >         the bundles to
>     >     >         >     the kar repo..
>     >     >         >
>     >     >         >   
>     >     >       
>       https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     >   
>      <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>
>     >     >       
>      <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     >   
>      <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>>
>     >     >         >
>     >     >         >
>     >     >         >             Maven
>     >     >         >
>     >     >         >     Apache Karaf provides a Maven
>     plugin: |karaf-maven-plugin|.
>     >     >         >
>     >     >         >     The Apache Karaf Maven plugin provides
>     the |kar| goal.
>     >     >         >
>     >     >         >     The |kar| goal does: . Reads all features
>     specified in the
>     >     >         features XML. .
>     >     >         >     For each feature described in the features
>     XML, the goal
>     >     >         resolves the
>     >     >         >     bundles described in the feature. . The goal
>     finally
>     >     >         packages the features
>     >     >         >     XML, *_/and the resolved bundles in a zip file./_*
>     >     >
>     >     >         >
>     >     >         >     For instance, the following Maven POM
>     create |my-kar.kar|
>     >     >         >
>     >     >         >     For instance, you can use the following POM to
>     create a kar:
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez
>     wael
>     >     >         >     <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>> wrote:
>     >     >         >
>     >     >         >         if I check the documentation the spring
>     kar "example"
>     >     >         are pretty much
>     >     >         >         what we want todo..
>     >     >         >
>     >     >         >         https://karaf.apache.org/manual/latest/kar
>     >     <https://karaf.apache.org/manual/latest/kar>
>     >     >         <https://karaf.apache.org/manual/latest/kar
>     >     <https://karaf.apache.org/manual/latest/kar>>
>     >     >         >
>     >     >         >         On Wed, Apr 18, 2018 at 7:52 AM, nino
>     martinez wael
>     >     >         >         <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>> wrote:
>     >     >         >
>     >     >         >             Yes but, the problem arises when we
>     want to mix
>     >     >         our products but
>     >     >         >             only want / just need one karaf
>     instance.. Plus
>     >     >         each release does
>     >     >         >             actually require a significant amount
>     of space on
>     >     >         our artifact
>     >     >         >             servers.. around 150mb per release /
>     snapshot..
>     >     >         Using the kar
>     >     >         >             approach and one common custom karaf
>     for our
>     >     >         products lightents this
>     >     >         >             a lot.
>     >     >         >
>     >     >         >             So today we are doing one karaf
>     assembly per
>     >     >         project but want to
>     >     >         >             move away from it.
>     >     >         >
>     >     >         >             -regards Nino
>     >     >         >
>     >     >         >             On Tue, Apr 17, 2018 at 11:30 AM,
>     Francois Papon
>     >     >         >             <francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>>>
>     >     >
>     >     >         >             wrote:
>     >     >         >
>     >     >         >                 Have you tried to create a custom
>     distribution
>     >     >         of Karaf ? It's
>     >     >         >                 great to use in offline environment.
>     >     >         >
>     >     >         >                 Here an example of pom assembly :
>     >     >         >
>     >     >         >                 -- <?xml version="1.0"
>     encoding="UTF-8"?>
>     >     >         >                 <project
>     >     >         xmlns="http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     >     >         <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>"
>     >     >         >                 <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     >     >         <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>>
>     >     >         >               
>     >     >          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>     >     <http://www.w3.org/2001/XMLSchema-instance>
>     >     >         <http://www.w3.org/2001/XMLSchema-instance
>     >     <http://www.w3.org/2001/XMLSchema-instance>>"
>     >     >         >               
>      <http://www.w3.org/2001/XMLSchema-instance
>     >     <http://www.w3.org/2001/XMLSchema-instance>
>     >     >         <http://www.w3.org/2001/XMLSchema-instance
>     >     <http://www.w3.org/2001/XMLSchema-instance>>>
>     >     >         >                    
>     >     >       
>      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     >     >         <http://maven.apache.org/POM/4.0.0
>     >     <http://maven.apache.org/POM/4.0.0>>
>     >     >         >               
>     >      http://maven.apache.org/xsd/maven-4.0.0.xsd
>     >     <http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >     >         <http://maven.apache.org/xsd/maven-4.0.0.xsd
>     >     <http://maven.apache.org/xsd/maven-4.0.0.xsd>>"
>     >     >         >               
>     >     >       
>     >   
>        <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     >   
>      <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >     >       
>     >   
>       <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     >   
>      <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>>>>
>     >     >
>     >     >         >
>     >     >         >                     <modelVersion>4.0.0</modelVersion>
>     >     >         >
>     >     >         >                     <parent>
>     >     >         >                        
>     <groupId>org.mycustom</groupId>
>     >     >         >                        
>     <artifactId>distrib</artifactId>
>     >     >         >                        
>     <version>1.0.0-SNAPSHOT</version>
>     >     >         >                        
>     >     <relativePath>../pom.xml</relativePath>
>     >     >         >                     </parent>
>     >     >         >
>     >     >         >                    
>     >     >         <artifactId>org.mycustom.karaf.assembly</artifactId>
>     >     >         >                    
>     <packaging>karaf-assembly</packaging>
>     >     >         >
>     >     >         >                     <name>Mycustom :: Karaf
>     Distribution ::
>     >     >         Assembly</name>
>     >     >         >                     <description>Karaf Custom
>     distribution
>     >     >         assembly</description>
>     >     >         >
>     >     >         >                     <dependencies>
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>org.apache.karaf.features</groupId>
>     >     >         >                            
>     >     <artifactId>framework</artifactId>
>     >     >         >                            
>     >     <version>${karaf.version}</version>
>     >     >         >                             <type>kar</type>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>org.apache.karaf.features</groupId>
>     >     >         >                            
>     >     <artifactId>enterprise</artifactId>
>     >     >         >                            
>     >     <version>${karaf.version}</version>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>org.apache.cxf.karaf</groupId>
>     >     >         >                            
>     >     <artifactId>apache-cxf</artifactId>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                            
>     >     <version>${cxf-core.version}</version>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     <groupId>org.ops4j.pax.jdbc</groupId>
>     >     >         >                            
>     >     >         <artifactId>pax-jdbc-features</artifactId>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                            
>     >     <version>${pax-jdbc.version}</version>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>org.apache.karaf.cellar</groupId>
>     >     >         >                            
>     >     >         <artifactId>apache-karaf-cellar</artifactId>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                            
>     >     >         <version>${karaf-cellar.version}</version>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>io.oxsoftware.kastle</groupId>
>     >     >         >                            
>     >     >         <artifactId>io.oxsoftware.kastle.features</artifactId>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                            
>     >     >         <version>${project.parent.version}</version>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                     </dependencies>
>     >     >         >
>     >     >         >                     <build>
>     >     >         >                         <!-- if you want to include
>     >     resources
>     >     >         in the
>     >     >         >                 distribution -->
>     >     >         >                         <resources>
>     >     >         >                             <resource>
>     >     >         >                                
>     >     >         <directory>src/main/resources</directory>
>     >     >         >                                
>     <filtering>false</filtering>
>     >     >         >                                 <includes>
>     >     >         >                                    
>     <include>**/*</include>
>     >     >         >                                 </includes>
>     >     >         >                             </resource>
>     >     >         >                             <resource>
>     >     >         >                                
>     >     >         <directory>src/main/filtered-resources</directory>
>     >     >         >                                
>     <filtering>true</filtering>
>     >     >         >                                 <includes>
>     >     >         >                                    
>     <include>**/*</include>
>     >     >         >                                 </includes>
>     >     >         >                             </resource>
>     >     >         >                         </resources>
>     >     >         >
>     >     >         >                         <plugins>
>     >     >         >                             <!-- if you want to
>     include
>     >     >         resources in the
>     >     >         >                 distribution -->
>     >     >         >                             <plugin>
>     >     >         >                                
>     >     >         <groupId>org.apache.maven.plugins</groupId>
>     >     >         >                                
>     >     >         <artifactId>maven-resources-plugin</artifactId>
>     >     >         >                                
>     <version>3.0.2</version>
>     >     >         >                                 <executions>
>     >     >         >                                     <execution>
>     >     >         >                                        
>     >     <id>process-resources</id>
>     >     >         >                                         <goals>
>     >     >         >                                            
>     >     <goal>resources</goal>
>     >     >         >                                         </goals>
>     >     >         >                                     </execution>
>     >     >         >                                 </executions>
>     >     >         >                             </plugin>
>     >     >         >                             <plugin>
>     >     >         >                                
>     >     >         <groupId>org.apache.karaf.tooling</groupId>
>     >     >         >                                
>     >     >         <artifactId>karaf-maven-plugin</artifactId>
>     >     >         >                                
>     >     >         <version>${karaf.version}</version>
>     >     >         >                                
>     >     <extensions>true</extensions>
>     >     >         >                                 <configuration>
>     >     >         >                                    
>     <installedFeatures>
>     >     >         >                                        
>     >     >         <feature>custom-distrib</feature>
>     >     >         >                                        
>     >     >         <feature>custom-distrib-services</feature>
>     >     >         >                                        
>     >     >         <feature>custom-distrib-rest</feature>
>     >     >         >                                    
>     </installedFeatures>
>     >     >         >                                     <bootFeatures>
>     >     >         >                                        
>     >     <feature>wrapper</feature>
>     >     >         >                                        
>     >     <feature>wrap</feature>
>     >     >         >                                        
>     >     >         <feature>aries-blueprint</feature>
>     >     >         >                                        
>     >     <feature>shell</feature>
>     >     >         >                                        
>     >     >         <feature>shell-compat</feature>
>     >     >         >                                        
>     >     <feature>feature</feature>
>     >     >         >                                        
>     >     <feature>jaas</feature>
>     >     >         >                                        
>     >     <feature>ssh</feature>
>     >     >         >                                        
>     >     >         <feature>management</feature>
>     >     >         >                                        
>     >     <feature>bundle</feature>
>     >     >         >                                        
>     >     <feature>config</feature>
>     >     >         >                                        
>     >     >         <feature>deployer</feature>
>     >     >         >                                        
>     >     >         <feature>diagnostic</feature>
>     >     >         >                                        
>     >     >         <feature>instance</feature>
>     >     >         >                                        
>     >     <feature>kar</feature>
>     >     >         >                                        
>     >     <feature>log</feature>
>     >     >         >                                        
>     >     <feature>package</feature>
>     >     >         >                                        
>     >     <feature>service</feature>
>     >     >         >                                        
>     >     <feature>system</feature>
>     >     >         >                                        
>     >     >         <feature>eventadmin</feature>
>     >     >         >                                        
>     >     <feature>scr</feature>
>     >     >         >
>     >     >         >                                        
>     >     <feature>jdbc</feature>
>     >     >         >                                        
>     >     <feature>jndi</feature>
>     >     >         >                                        
>     >     >         <feature>transaction</feature>
>     >     >         >                                        
>     >     <feature>war</feature>
>     >     >         >
>     >     >         >                                        
>     >     <feature>cxf</feature>
>     >     >         >                                        
>     >     >         <feature>cxf-jaxrs</feature>
>     >     >         >                                        
>     >     >         >               
>     >      <feature>cxf-rs-description-swagger2</feature>
>     >     >         >                                        
>     >     >         >
>     >     >         >                                        
>     >     >         <feature>pax-jdbc</feature>
>     >     >         >                                        
>     >     >         <feature>pax-jdbc-config</feature>
>     >     >         >                                        
>     >     >         <feature>pax-jdbc-pool-hikaricp</feature>
>     >     >         >                                        
>     >     >         <feature>pax-jdbc-pool-aries</feature>
>     >     >         >                                        
>     >     >         <feature>pax-jdbc-postgresql</feature>
>     >     >         >
>     >     >         >                                         
>     >     <feature>cellar</feature>
>     >     >         >                                     </bootFeatures>
>     >     >         >                                     <libraries>
>     >     >         >                                        
>     >     >         >               
>     >     >       
>     >   
>        <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>     >     >         >                                        
>     >     >         >               
>     >     >       
>     >   
>        <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
>     >     >         >                                     </libraries>
>     >     >         >                                    
>     <javase>1.8</javase>
>     >     >         >                                 </configuration>
>     >     >         >                             </plugin>
>     >     >         >                         </plugins>
>     >     >         >                         <pluginManagement>
>     >     >         >                             <plugins>
>     >     >         >                                 <!--This plugin's
>     >     >         configuration is used to store
>     >     >         >                 Eclipse m2e settings
>     >     >         >                                     only. It has no
>     >     influence
>     >     >         on the Maven build
>     >     >         >                 itself. -->
>     >     >         >                                 <plugin>
>     >     >         >                                    
>     >     >         <groupId>org.eclipse.m2e</groupId>
>     >     >         >                                    
>     >     >         <artifactId>lifecycle-mapping</artifactId>
>     >     >         >                                    
>     <version>1.0.0</version>
>     >     >         >                                     <configuration>
>     >     >         >                                        
>     >     <lifecycleMappingMetadata>
>     >     >         >                                            
>     >     <pluginExecutions>
>     >     >         >                                                
>     >     <pluginExecution>
>     >     >         >                                                    
>     >     >         <pluginExecutionFilter>
>     >     >         >                                                
>            
>     >     <groupId>
>     >     >         >                                                
>                
>     >     >         org.apache.karaf.tooling
>     >     >         >                                                
>            
>     >     </groupId>
>     >     >         >                                                
>            
>     >     >         <artifactId>
>     >     >         >                                                
>                
>     >     >         karaf-maven-plugin
>     >     >         >                                                
>            
>     >     >         </artifactId>
>     >     >         >                                                
>            
>     >     >         <versionRange>
>     >     >         >                                                
>                
>     >     >         [4.1.0,)
>     >     >         >                                                
>            
>     >     >         </versionRange>
>     >     >         >                                                
>            
>     >     <goals>
>     >     >         >                                                
>                
>     >     >         <goal>assembly</goal>
>     >     >         >                                                
>            
>     >     </goals>
>     >     >         >                                                    
>     >     >         </pluginExecutionFilter>
>     >     >         >                                                
>         <action>
>     >     >         >                                                
>            
>     >     >         <ignore></ignore>
>     >     >         >                                                    
>     >     </action>
>     >     >         >                                                
>     >     </pluginExecution>
>     >     >         >                                            
>     >     </pluginExecutions>
>     >     >         >                                        
>     >     >         </lifecycleMappingMetadata>
>     >     >         >                                     </configuration>
>     >     >         >                                 </plugin>
>     >     >         >                             </plugins>
>     >     >         >                         </pluginManagement>
>     >     >         >                     </build>
>     >     >         >
>     >     >         >
>     >     >         >                 Le 17/04/2018 à 10:30, nino
>     martinez wael a
>     >     >         écrit :
>     >     >         >>                 Yes, I want to include at least
>     first level
>     >     >         dependencies for
>     >     >         >>                 my kar / application.. But we need to
>     >     be able
>     >     >         todo an offline
>     >     >         >>                 installation. With released
>     applications.
>     >     >         >>
>     >     >         >>                 On Sat, Apr 14, 2018 at 6:41 PM,
>     >     Francois Papon
>     >     >         >>                 <francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>
>     >     >         >>               
>      <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>>> wrote:
>     >     >         >>
>     >     >         >>                     Hi,
>     >     >         >>
>     >     >         >>                     You want to include your repo
>     into
>     >     a kar ?
>     >     >         >>
>     >     >         >>                     François
>     >     >         >>
>     >     >         >>
>     >     >         >>                     Le 13/04/2018 à 16:50, nino
>     >     martinez wael
>     >     >         a écrit :
>     >     >         >>>                     I have this that does what I
>     >     want.. BUT
>     >     >         I think it's a
>     >     >         >>>                     hardcore hack. Is there no
>     way to
>     >     make a
>     >     >         packaged kar
>     >     >         >>>                     containing a repo like below,
>     >     using the
>     >     >         resources
>     >     >         >>>                     parameter seems to be a hack?
>     >     >         >>>
>     >     >         >>>                     <plugin>
>     >     >         >>>                       
>     >     >          <groupId>org.apache.karaf.tooling</groupId>
>     >     >         >>>                       
>     >     >          <artifactId>karaf-maven-plugin</artifactId>
>     >     >         >>>                       
>      <extensions>true</extensions>
>     >     >         >>>                       
>     >      <version>${karaf.version}</version>
>     >     >         >>>                         <executions>
>     >     >         >>>                             <execution>
>     >     >         >>>                               
>     >      <id>features-add-to-repo</id>
>     >     >         >>>                                 <goals>
>     >     >         >>>                                   
>     >     >          <goal>features-add-to-repository</goal>
>     >     >         >>>                                 </goals>
>     >     >         >>>                                 <configuration>
>     >     >         >>>                                     <descriptors>
>     >     >         >>>                                       
>     >     >       
>     >   
>        <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>     >     >         >>>                                       
>     >     >       
>     >   
>        <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>     >     >         >>>                                     </descriptors>
>     >     >         >>>                                     <features>
>     >     >         >>>                                       
>     >     >          <feature>ccadmin</feature>
>     >     >         >>>                                     </features>
>     >     >         >>>                                   
>     >     >       
>     >   
>        <repository>${project.build.directory}/classes/repository</repository>
>     >     >         >>>                                 </configuration>
>     >     >         >>>                             </execution>
>     >     >         >>>                             <execution>
>     >     >         >>>                                 <id>kar</id>
>     >     >         >>>                                 <goals>
>     >     >         >>>                                     <goal>kar</goal>
>     >     >         >>>                                 </goals>
>     >     >         >>>                             </execution>
>     >     >         >>>                         </executions>
>     >     >         >>>                     </plugin>
>     >     >         >>>
>     >     >         >>
>     >     >         >>
>     >     >         >>
>     >     >         >>
>     >     >         >>                 --
>     >     >         >>                 Best regards / Med venlig hilsen 
>     >     >         >>                 Nino Martinez
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >             --
>     >     >         >             Best regards / Med venlig hilsen 
>     >     >         >             Nino Martinez
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >         --
>     >     >         >         Best regards / Med venlig hilsen 
>     >     >         >         Nino Martinez
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >     --
>     >     >         >     Best regards / Med venlig hilsen 
>     >     >         >     Nino Martinez
>     >     >         >
>     >     >
>     >     >         --
>     >     >         Jean-Baptiste Onofré
>     >     >         jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     >     <mailto:jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>>
>     >     >         http://blog.nanthrax.net
>     >     >         Talend - http://www.talend.com
>     >     >
>     >     >
>     >     >
>     >
>     >     --
>     >     --
>     >     Jean-Baptiste Onofré
>     >     jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     >     http://blog.nanthrax.net
>     >     Talend - http://www.talend.com
>     >
>     >
>     >
>     >
>     > --
>     > Best regards / Med venlig hilsen 
>     > Nino Martinez
> 
>     -- 
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
> 

-- 
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi guys,

I think we are mixing different use cases.

The kar goal uses a features.xml.

If your features.xml contains inner <repository/> and inner <feature/>,
than it will be added to the kar.

The kar goal doesn't care about the POM <dependencies/>, it uses the
features XML.

Regards
JB

On 30/05/2018 17:11, Nicolas Brasey wrote:
> Hi,
> 
> I am also having the same issue (with v.4.1.2).
> 
> Here is the workaround I use to build an "offline" kar having all the
> bundles of the dependent features. I mix the usage of 2 goals:
> 
> 
> 
> 
> <plugin>
>     <groupId>org.apache.karaf.tooling</groupId>
>     <artifactId>karaf-maven-plugin</artifactId>
>     <extensions>true</extensions>
>     <version>4.1.2</version>
>     <!-- using the kar packaging, you just have to use plugin extensions -->
>     <!--extensions>true</extensions-->
>     <!-- if you use the pom packaging, you have to explicitly define the
> plugin execution -->
>     <executions>
>         <execution>
>             <phase>package</phase>
>             <goals>
>                 <goal>features-add-to-repository</goal>
>             </goals>
>             <configuration>
>                 <descriptors>
>                    
> <descriptor>mvn:org.apache.karaf.features/spring/${karaf.version}/xml/features</descriptor>
>                    
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/${camel.version}/xml/features</descriptor>
>                 </descriptors>
>                 <features>
>                     <feature>spring</feature>
>                     <feature>camel-sql</feature>
>                     <feature>camel-spring</feature>
>                     <feature>camel-kafka</feature>
>                     <feature>camel-http4</feature>
>                 </features>
>                
> <repository>${project.build.directory}/3rd-party-repo/repository</repository>
>             </configuration>
>         </execution>
>         <execution>
>             <id>compile</id>
>             <phase>compile</phase>
>             <goals>
>                 <goal>features-generate-descriptor</goal>
>             </goals>
>             <configuration>
>                 <enableGeneration>false</enableGeneration>
>                 <startLevel>100</startLevel>
>             </configuration>
>         </execution>
>         <execution>
>             <id>package</id>
>             <goals>
>                 <goal>kar</goal>
>             </goals>
>             <configuration>
>                
> <resourcesDir>${project.build.directory}/3rd-party-repo</resourcesDir>
>             </configuration>
>         </execution>
>     </executions>
> </plugin>
>  
> 
> 
> 
> 
> On Wed, May 30, 2018 at 3:36 PM, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
> 
>     Yes, it contains the inner features bundles.
> 
>     Is it what you are missing ?
> 
>     Regards
>     JB
> 
>     On 30/05/2018 15:31, nino martinez wael wrote:
>     > but what are the resulting kar? does it contain the aggregated feature
>     > set bundles?
>     > 
>     > 
>     > regards Nino
>     > 
>     > On Wed, May 30, 2018 at 2:54 PM, Jean-Baptiste Onofré <jb@nanthrax.net <ma...@nanthrax.net>
>     > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>     > 
>     >     Hi,
>     > 
>     >     I tested without problem with 4.1.5. I'm testing with 4.2.0 now.
>     > 
>     >     I keep you posted.
>     > 
>     >     Regards
>     >     JB
>     > 
>     >     On 30/05/2018 14:14, Martin Nielsen wrote:
>     >     > Hello everyone
>     >     > I am facing a similar issue, did you figure this out?
>     >     > 
>     >     > -Martin
>     >     > 
>     >     > On Wed, May 16, 2018 at 6:06 PM, nino martinez wael
>     >     > <nino.martinez.wael@gmail.com <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>> wrote:
>     >     > 
>     >     >     Did you get a chance to look at this? 
>     >     > 
>     >     >     On 3 May 2018 20:23, "Jean-Baptiste Onofré" <jb@nanthrax.net <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>     <ma...@nanthrax.net>>
>     >     >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
>     >     >
>     >     >         Hi Nino,
>     >     >
>     >     >         As I'm now back from vacation, I gonna take a look.
>     >     >
>     >     >         Sorry for the delay.
>     >     >
>     >     >         Regards
>     >     >         JB
>     >     >
>     >     >
>     >     >         On 05/03/2018 08:19 PM, nino martinez wael wrote:
>     >     >         > Any chance someone has an idea? 
>     >     >         >
>     >     >         > On Wed, 18 Apr 2018, 08:02 nino martinez wael,
>     >     >         <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >         > <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>> wrote:
>     >     >         >
>     >     >         >     Actually if I read this part, it does seem
>     that the kar
>     >     >         goal should do what
>     >     >         >     I want. But I am missing the part where the
>     kar plugin add
>     >     >         the bundles to
>     >     >         >     the kar repo..
>     >     >         >
>     >     >         >   
>     >     >       
>       https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>
>     >   
>      <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>>
>     >     >       
>      <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>
>     >   
>      <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>>>
>     >     >         >
>     >     >         >
>     >     >         >             Maven
>     >     >         >
>     >     >         >     Apache Karaf provides a Maven
>     plugin: |karaf-maven-plugin|.
>     >     >         >
>     >     >         >     The Apache Karaf Maven plugin provides
>     the |kar| goal.
>     >     >         >
>     >     >         >     The |kar| goal does: . Reads all features
>     specified in the
>     >     >         features XML. .
>     >     >         >     For each feature described in the features
>     XML, the goal
>     >     >         resolves the
>     >     >         >     bundles described in the feature. . The goal
>     finally
>     >     >         packages the features
>     >     >         >     XML, *_/and the resolved bundles in a zip file./_*
>     >     >
>     >     >         >
>     >     >         >     For instance, the following Maven POM
>     create |my-kar.kar|
>     >     >         >
>     >     >         >     For instance, you can use the following POM to
>     create a kar:
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez
>     wael
>     >     >         >     <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>> wrote:
>     >     >         >
>     >     >         >         if I check the documentation the spring
>     kar "example"
>     >     >         are pretty much
>     >     >         >         what we want todo..
>     >     >         >
>     >     >         >         https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>
>     >     <https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>>
>     >     >         <https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>
>     >     <https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>>>
>     >     >         >
>     >     >         >         On Wed, Apr 18, 2018 at 7:52 AM, nino
>     martinez wael
>     >     >         >         <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>>> wrote:
>     >     >         >
>     >     >         >             Yes but, the problem arises when we
>     want to mix
>     >     >         our products but
>     >     >         >             only want / just need one karaf
>     instance.. Plus
>     >     >         each release does
>     >     >         >             actually require a significant amount
>     of space on
>     >     >         our artifact
>     >     >         >             servers.. around 150mb per release /
>     snapshot..
>     >     >         Using the kar
>     >     >         >             approach and one common custom karaf
>     for our
>     >     >         products lightents this
>     >     >         >             a lot.
>     >     >         >
>     >     >         >             So today we are doing one karaf
>     assembly per
>     >     >         project but want to
>     >     >         >             move away from it.
>     >     >         >
>     >     >         >             -regards Nino
>     >     >         >
>     >     >         >             On Tue, Apr 17, 2018 at 11:30 AM,
>     Francois Papon
>     >     >         >             <francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>>>
>     >     >
>     >     >         >             wrote:
>     >     >         >
>     >     >         >                 Have you tried to create a custom
>     distribution
>     >     >         of Karaf ? It's
>     >     >         >                 great to use in offline environment.
>     >     >         >
>     >     >         >                 Here an example of pom assembly :
>     >     >         >
>     >     >         >                 -- <?xml version="1.0"
>     encoding="UTF-8"?>
>     >     >         >                 <project
>     >     >         xmlns="http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     <http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0>>
>     >     >         <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>>"
>     >     >         >                 <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     <http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0>>
>     >     >         <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>>>
>     >     >         >               
>     >     >       
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >     <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>
>     >     >         <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >     <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>>"
>     >     >         >               
>      <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >     <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>
>     >     >         <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >     <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>>>
>     >     >         >                    
>     >     >       
>      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     <http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0>>
>     >     >         <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>
>     >     <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>>
>     >     >         >               
>     >      http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >     <http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>>
>     >     >         <http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >     <http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>>>"
>     >     >         >               
>     >     >       
>     >   
>        <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >   
>      <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>>
>     >     >       
>     >   
>       <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >   
>      <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>>>>>
>     >     >
>     >     >         >
>     >     >         >                     <modelVersion>4.0.0</modelVersion>
>     >     >         >
>     >     >         >                     <parent>
>     >     >         >                        
>     <groupId>org.mycustom</groupId>
>     >     >         >                        
>     <artifactId>distrib</artifactId>
>     >     >         >                        
>     <version>1.0.0-SNAPSHOT</version>
>     >     >         >                        
>     >     <relativePath>../pom.xml</relativePath>
>     >     >         >                     </parent>
>     >     >         >
>     >     >         >                    
>     >     >         <artifactId>org.mycustom.karaf.assembly</artifactId>
>     >     >         >                    
>     <packaging>karaf-assembly</packaging>
>     >     >         >
>     >     >         >                     <name>Mycustom :: Karaf
>     Distribution ::
>     >     >         Assembly</name>
>     >     >         >                     <description>Karaf Custom
>     distribution
>     >     >         assembly</description>
>     >     >         >
>     >     >         >                     <dependencies>
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>org.apache.karaf.features</groupId>
>     >     >         >                            
>     >     <artifactId>framework</artifactId>
>     >     >         >                            
>     >     <version>${karaf.version}</version>
>     >     >         >                             <type>kar</type>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>org.apache.karaf.features</groupId>
>     >     >         >                            
>     >     <artifactId>enterprise</artifactId>
>     >     >         >                            
>     >     <version>${karaf.version}</version>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>org.apache.cxf.karaf</groupId>
>     >     >         >                            
>     >     <artifactId>apache-cxf</artifactId>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                            
>     >     <version>${cxf-core.version}</version>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     <groupId>org.ops4j.pax.jdbc</groupId>
>     >     >         >                            
>     >     >         <artifactId>pax-jdbc-features</artifactId>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                            
>     >     <version>${pax-jdbc.version}</version>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>org.apache.karaf.cellar</groupId>
>     >     >         >                            
>     >     >         <artifactId>apache-karaf-cellar</artifactId>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                            
>     >     >         <version>${karaf-cellar.version}</version>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                         <dependency>
>     >     >         >                            
>     >     >         <groupId>io.oxsoftware.kastle</groupId>
>     >     >         >                            
>     >     >         <artifactId>io.oxsoftware.kastle.features</artifactId>
>     >     >         >                            
>     >     <classifier>features</classifier>
>     >     >         >                            
>     >     >         <version>${project.parent.version}</version>
>     >     >         >                             <type>xml</type>
>     >     >         >                             <scope>runtime</scope>
>     >     >         >                         </dependency>
>     >     >         >
>     >     >         >                     </dependencies>
>     >     >         >
>     >     >         >                     <build>
>     >     >         >                         <!-- if you want to include
>     >     resources
>     >     >         in the
>     >     >         >                 distribution -->
>     >     >         >                         <resources>
>     >     >         >                             <resource>
>     >     >         >                                
>     >     >         <directory>src/main/resources</directory>
>     >     >         >                                
>     <filtering>false</filtering>
>     >     >         >                                 <includes>
>     >     >         >                                    
>     <include>**/*</include>
>     >     >         >                                 </includes>
>     >     >         >                             </resource>
>     >     >         >                             <resource>
>     >     >         >                                
>     >     >         <directory>src/main/filtered-resources</directory>
>     >     >         >                                
>     <filtering>true</filtering>
>     >     >         >                                 <includes>
>     >     >         >                                    
>     <include>**/*</include>
>     >     >         >                                 </includes>
>     >     >         >                             </resource>
>     >     >         >                         </resources>
>     >     >         >
>     >     >         >                         <plugins>
>     >     >         >                             <!-- if you want to
>     include
>     >     >         resources in the
>     >     >         >                 distribution -->
>     >     >         >                             <plugin>
>     >     >         >                                
>     >     >         <groupId>org.apache.maven.plugins</groupId>
>     >     >         >                                
>     >     >         <artifactId>maven-resources-plugin</artifactId>
>     >     >         >                                
>     <version>3.0.2</version>
>     >     >         >                                 <executions>
>     >     >         >                                     <execution>
>     >     >         >                                        
>     >     <id>process-resources</id>
>     >     >         >                                         <goals>
>     >     >         >                                            
>     >     <goal>resources</goal>
>     >     >         >                                         </goals>
>     >     >         >                                     </execution>
>     >     >         >                                 </executions>
>     >     >         >                             </plugin>
>     >     >         >                             <plugin>
>     >     >         >                                
>     >     >         <groupId>org.apache.karaf.tooling</groupId>
>     >     >         >                                
>     >     >         <artifactId>karaf-maven-plugin</artifactId>
>     >     >         >                                
>     >     >         <version>${karaf.version}</version>
>     >     >         >                                
>     >     <extensions>true</extensions>
>     >     >         >                                 <configuration>
>     >     >         >                                    
>     <installedFeatures>
>     >     >         >                                        
>     >     >         <feature>custom-distrib</feature>
>     >     >         >                                        
>     >     >         <feature>custom-distrib-services</feature>
>     >     >         >                                        
>     >     >         <feature>custom-distrib-rest</feature>
>     >     >         >                                    
>     </installedFeatures>
>     >     >         >                                     <bootFeatures>
>     >     >         >                                        
>     >     <feature>wrapper</feature>
>     >     >         >                                        
>     >     <feature>wrap</feature>
>     >     >         >                                        
>     >     >         <feature>aries-blueprint</feature>
>     >     >         >                                        
>     >     <feature>shell</feature>
>     >     >         >                                        
>     >     >         <feature>shell-compat</feature>
>     >     >         >                                        
>     >     <feature>feature</feature>
>     >     >         >                                        
>     >     <feature>jaas</feature>
>     >     >         >                                        
>     >     <feature>ssh</feature>
>     >     >         >                                        
>     >     >         <feature>management</feature>
>     >     >         >                                        
>     >     <feature>bundle</feature>
>     >     >         >                                        
>     >     <feature>config</feature>
>     >     >         >                                        
>     >     >         <feature>deployer</feature>
>     >     >         >                                        
>     >     >         <feature>diagnostic</feature>
>     >     >         >                                        
>     >     >         <feature>instance</feature>
>     >     >         >                                        
>     >     <feature>kar</feature>
>     >     >         >                                        
>     >     <feature>log</feature>
>     >     >         >                                        
>     >     <feature>package</feature>
>     >     >         >                                        
>     >     <feature>service</feature>
>     >     >         >                                        
>     >     <feature>system</feature>
>     >     >         >                                        
>     >     >         <feature>eventadmin</feature>
>     >     >         >                                        
>     >     <feature>scr</feature>
>     >     >         >
>     >     >         >                                        
>     >     <feature>jdbc</feature>
>     >     >         >                                        
>     >     <feature>jndi</feature>
>     >     >         >                                        
>     >     >         <feature>transaction</feature>
>     >     >         >                                        
>     >     <feature>war</feature>
>     >     >         >
>     >     >         >                                        
>     >     <feature>cxf</feature>
>     >     >         >                                        
>     >     >         <feature>cxf-jaxrs</feature>
>     >     >         >                                        
>     >     >         >               
>     >      <feature>cxf-rs-description-swagger2</feature>
>     >     >         >                                        
>     >     >         >
>     >     >         >                                        
>     >     >         <feature>pax-jdbc</feature>
>     >     >         >                                        
>     >     >         <feature>pax-jdbc-config</feature>
>     >     >         >                                        
>     >     >         <feature>pax-jdbc-pool-hikaricp</feature>
>     >     >         >                                        
>     >     >         <feature>pax-jdbc-pool-aries</feature>
>     >     >         >                                        
>     >     >         <feature>pax-jdbc-postgresql</feature>
>     >     >         >
>     >     >         >                                         
>     >     <feature>cellar</feature>
>     >     >         >                                     </bootFeatures>
>     >     >         >                                     <libraries>
>     >     >         >                                        
>     >     >         >               
>     >     >       
>     >   
>        <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>     >     >         >                                        
>     >     >         >               
>     >     >       
>     >   
>        <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
>     >     >         >                                     </libraries>
>     >     >         >                                    
>     <javase>1.8</javase>
>     >     >         >                                 </configuration>
>     >     >         >                             </plugin>
>     >     >         >                         </plugins>
>     >     >         >                         <pluginManagement>
>     >     >         >                             <plugins>
>     >     >         >                                 <!--This plugin's
>     >     >         configuration is used to store
>     >     >         >                 Eclipse m2e settings
>     >     >         >                                     only. It has no
>     >     influence
>     >     >         on the Maven build
>     >     >         >                 itself. -->
>     >     >         >                                 <plugin>
>     >     >         >                                    
>     >     >         <groupId>org.eclipse.m2e</groupId>
>     >     >         >                                    
>     >     >         <artifactId>lifecycle-mapping</artifactId>
>     >     >         >                                    
>     <version>1.0.0</version>
>     >     >         >                                     <configuration>
>     >     >         >                                        
>     >     <lifecycleMappingMetadata>
>     >     >         >                                            
>     >     <pluginExecutions>
>     >     >         >                                                
>     >     <pluginExecution>
>     >     >         >                                                    
>     >     >         <pluginExecutionFilter>
>     >     >         >                                                
>            
>     >     <groupId>
>     >     >         >                                                
>                
>     >     >         org.apache.karaf.tooling
>     >     >         >                                                
>            
>     >     </groupId>
>     >     >         >                                                
>            
>     >     >         <artifactId>
>     >     >         >                                                
>                
>     >     >         karaf-maven-plugin
>     >     >         >                                                
>            
>     >     >         </artifactId>
>     >     >         >                                                
>            
>     >     >         <versionRange>
>     >     >         >                                                
>                
>     >     >         [4.1.0,)
>     >     >         >                                                
>            
>     >     >         </versionRange>
>     >     >         >                                                
>            
>     >     <goals>
>     >     >         >                                                
>                
>     >     >         <goal>assembly</goal>
>     >     >         >                                                
>            
>     >     </goals>
>     >     >         >                                                    
>     >     >         </pluginExecutionFilter>
>     >     >         >                                                
>         <action>
>     >     >         >                                                
>            
>     >     >         <ignore></ignore>
>     >     >         >                                                    
>     >     </action>
>     >     >         >                                                
>     >     </pluginExecution>
>     >     >         >                                            
>     >     </pluginExecutions>
>     >     >         >                                        
>     >     >         </lifecycleMappingMetadata>
>     >     >         >                                     </configuration>
>     >     >         >                                 </plugin>
>     >     >         >                             </plugins>
>     >     >         >                         </pluginManagement>
>     >     >         >                     </build>
>     >     >         >
>     >     >         >
>     >     >         >                 Le 17/04/2018 à 10:30, nino
>     martinez wael a
>     >     >         écrit :
>     >     >         >>                 Yes, I want to include at least
>     first level
>     >     >         dependencies for
>     >     >         >>                 my kar / application.. But we need to
>     >     be able
>     >     >         todo an offline
>     >     >         >>                 installation. With released
>     applications.
>     >     >         >>
>     >     >         >>                 On Sat, Apr 14, 2018 at 6:41 PM,
>     >     Francois Papon
>     >     >         >>                 <francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>
>     >     >         >>               
>      <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >     <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>>> wrote:
>     >     >         >>
>     >     >         >>                     Hi,
>     >     >         >>
>     >     >         >>                     You want to include your repo
>     into
>     >     a kar ?
>     >     >         >>
>     >     >         >>                     François
>     >     >         >>
>     >     >         >>
>     >     >         >>                     Le 13/04/2018 à 16:50, nino
>     >     martinez wael
>     >     >         a écrit :
>     >     >         >>>                     I have this that does what I
>     >     want.. BUT
>     >     >         I think it's a
>     >     >         >>>                     hardcore hack. Is there no
>     way to
>     >     make a
>     >     >         packaged kar
>     >     >         >>>                     containing a repo like below,
>     >     using the
>     >     >         resources
>     >     >         >>>                     parameter seems to be a hack?
>     >     >         >>>
>     >     >         >>>                     <plugin>
>     >     >         >>>                       
>     >     >          <groupId>org.apache.karaf.tooling</groupId>
>     >     >         >>>                       
>     >     >          <artifactId>karaf-maven-plugin</artifactId>
>     >     >         >>>                       
>      <extensions>true</extensions>
>     >     >         >>>                       
>     >      <version>${karaf.version}</version>
>     >     >         >>>                         <executions>
>     >     >         >>>                             <execution>
>     >     >         >>>                               
>     >      <id>features-add-to-repo</id>
>     >     >         >>>                                 <goals>
>     >     >         >>>                                   
>     >     >          <goal>features-add-to-repository</goal>
>     >     >         >>>                                 </goals>
>     >     >         >>>                                 <configuration>
>     >     >         >>>                                     <descriptors>
>     >     >         >>>                                       
>     >     >       
>     >   
>        <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>     >     >         >>>                                       
>     >     >       
>     >   
>        <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>     >     >         >>>                                     </descriptors>
>     >     >         >>>                                     <features>
>     >     >         >>>                                       
>     >     >          <feature>ccadmin</feature>
>     >     >         >>>                                     </features>
>     >     >         >>>                                   
>     >     >       
>     >   
>        <repository>${project.build.directory}/classes/repository</repository>
>     >     >         >>>                                 </configuration>
>     >     >         >>>                             </execution>
>     >     >         >>>                             <execution>
>     >     >         >>>                                 <id>kar</id>
>     >     >         >>>                                 <goals>
>     >     >         >>>                                     <goal>kar</goal>
>     >     >         >>>                                 </goals>
>     >     >         >>>                             </execution>
>     >     >         >>>                         </executions>
>     >     >         >>>                     </plugin>
>     >     >         >>>
>     >     >         >>
>     >     >         >>
>     >     >         >>
>     >     >         >>
>     >     >         >>                 --
>     >     >         >>                 Best regards / Med venlig hilsen 
>     >     >         >>                 Nino Martinez
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >             --
>     >     >         >             Best regards / Med venlig hilsen 
>     >     >         >             Nino Martinez
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >         --
>     >     >         >         Best regards / Med venlig hilsen 
>     >     >         >         Nino Martinez
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >
>     >     >         >     --
>     >     >         >     Best regards / Med venlig hilsen 
>     >     >         >     Nino Martinez
>     >     >         >
>     >     >
>     >     >         --
>     >     >         Jean-Baptiste Onofré
>     >     >         jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     >     <mailto:jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>>
>     >     >         http://blog.nanthrax.net
>     >     >         Talend - http://www.talend.com
>     >     > 
>     >     > 
>     >     > 
>     > 
>     >     -- 
>     >     --
>     >     Jean-Baptiste Onofré
>     >     jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     >     http://blog.nanthrax.net
>     >     Talend - http://www.talend.com
>     > 
>     > 
>     > 
>     > 
>     > -- 
>     > Best regards / Med venlig hilsen 
>     > Nino Martinez
> 
>     -- 
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
> 
> 

-- 
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
Yes, when I tried I just ended up with an kar that contained the outermost
feature.xml

On Wed, 30 May 2018, 15:36 Jean-Baptiste Onofré, <jb...@nanthrax.net> wrote:

> Yes, it contains the inner features bundles.
>
> Is it what you are missing ?
>
> Regards
> JB
>
> On 30/05/2018 15:31, nino martinez wael wrote:
> > but what are the resulting kar? does it contain the aggregated feature
> > set bundles?
> >
> >
> > regards Nino
> >
> > On Wed, May 30, 2018 at 2:54 PM, Jean-Baptiste Onofré <jb@nanthrax.net
> > <ma...@nanthrax.net>> wrote:
> >
> >     Hi,
> >
> >     I tested without problem with 4.1.5. I'm testing with 4.2.0 now.
> >
> >     I keep you posted.
> >
> >     Regards
> >     JB
> >
> >     On 30/05/2018 14:14, Martin Nielsen wrote:
> >     > Hello everyone
> >     > I am facing a similar issue, did you figure this out?
> >     >
> >     > -Martin
> >     >
> >     > On Wed, May 16, 2018 at 6:06 PM, nino martinez wael
> >     > <nino.martinez.wael@gmail.com <mailto:nino.martinez.wael@gmail.com
> >
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>> wrote:
> >     >
> >     >     Did you get a chance to look at this?
> >     >
> >     >     On 3 May 2018 20:23, "Jean-Baptiste Onofré" <jb@nanthrax.net
> <ma...@nanthrax.net>
> >     >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
> >     >
> >     >         Hi Nino,
> >     >
> >     >         As I'm now back from vacation, I gonna take a look.
> >     >
> >     >         Sorry for the delay.
> >     >
> >     >         Regards
> >     >         JB
> >     >
> >     >
> >     >         On 05/03/2018 08:19 PM, nino martinez wael wrote:
> >     >         > Any chance someone has an idea?
> >     >         >
> >     >         > On Wed, 18 Apr 2018, 08:02 nino martinez wael,
> >     >         <nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>
> >     >         > <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>> wrote:
> >     >         >
> >     >         >     Actually if I read this part, it does seem that the
> kar
> >     >         goal should do what
> >     >         >     I want. But I am missing the part where the kar
> plugin add
> >     >         the bundles to
> >     >         >     the kar repo..
> >     >         >
> >     >         >
> >     >
> https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
> >     <
> https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
> >
> >     >         <
> https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
> >     <
> https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
> >>
> >     >         >
> >     >         >
> >     >         >             Maven
> >     >         >
> >     >         >     Apache Karaf provides a Maven
> plugin: |karaf-maven-plugin|.
> >     >         >
> >     >         >     The Apache Karaf Maven plugin provides
> the |kar| goal.
> >     >         >
> >     >         >     The |kar| goal does: . Reads all features specified
> in the
> >     >         features XML. .
> >     >         >     For each feature described in the features XML, the
> goal
> >     >         resolves the
> >     >         >     bundles described in the feature. . The goal finally
> >     >         packages the features
> >     >         >     XML, *_/and the resolved bundles in a zip file./_*
> >     >
> >     >         >
> >     >         >     For instance, the following Maven POM
> create |my-kar.kar|
> >     >         >
> >     >         >     For instance, you can use the following POM to
> create a kar:
> >     >         >
> >     >         >
> >     >         >
> >     >         >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael
> >     >         >     <nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>> wrote:
> >     >         >
> >     >         >         if I check the documentation the spring kar
> "example"
> >     >         are pretty much
> >     >         >         what we want todo..
> >     >         >
> >     >         >         https://karaf.apache.org/manual/latest/kar
> >     <https://karaf.apache.org/manual/latest/kar>
> >     >         <https://karaf.apache.org/manual/latest/kar
> >     <https://karaf.apache.org/manual/latest/kar>>
> >     >         >
> >     >         >         On Wed, Apr 18, 2018 at 7:52 AM, nino martinez
> wael
> >     >         >         <nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>> wrote:
> >     >         >
> >     >         >             Yes but, the problem arises when we want to
> mix
> >     >         our products but
> >     >         >             only want / just need one karaf instance..
> Plus
> >     >         each release does
> >     >         >             actually require a significant amount of
> space on
> >     >         our artifact
> >     >         >             servers.. around 150mb per release /
> snapshot..
> >     >         Using the kar
> >     >         >             approach and one common custom karaf for our
> >     >         products lightents this
> >     >         >             a lot.
> >     >         >
> >     >         >             So today we are doing one karaf assembly per
> >     >         project but want to
> >     >         >             move away from it.
> >     >         >
> >     >         >             -regards Nino
> >     >         >
> >     >         >             On Tue, Apr 17, 2018 at 11:30 AM, Francois
> Papon
> >     >         >             <francois.papon@openobject.fr <mailto:
> francois.papon@openobject.fr>
> >     >         <mailto:francois.papon@openobject.fr <mailto:
> francois.papon@openobject.fr>>
> >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >         <mailto:francois.papon@openobject.fr <mailto:
> francois.papon@openobject.fr>>>>
> >     >
> >     >         >             wrote:
> >     >         >
> >     >         >                 Have you tried to create a custom
> distribution
> >     >         of Karaf ? It's
> >     >         >                 great to use in offline environment.
> >     >         >
> >     >         >                 Here an example of pom assembly :
> >     >         >
> >     >         >                 -- <?xml version="1.0" encoding="UTF-8"?>
> >     >         >                 <project
> >     >         xmlns="http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>
> >     >         <http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>>"
> >     >         >                 <http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>
> >     >         <http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>>>
> >     >         >
> >     >          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> >     <http://www.w3.org/2001/XMLSchema-instance>
> >     >         <http://www.w3.org/2001/XMLSchema-instance
> >     <http://www.w3.org/2001/XMLSchema-instance>>"
> >     >         >                 <
> http://www.w3.org/2001/XMLSchema-instance
> >     <http://www.w3.org/2001/XMLSchema-instance>
> >     >         <http://www.w3.org/2001/XMLSchema-instance
> >     <http://www.w3.org/2001/XMLSchema-instance>>>
> >     >         >
> >     >         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>
> >     >         <http://maven.apache.org/POM/4.0.0
> >     <http://maven.apache.org/POM/4.0.0>>
> >     >         >
> >      http://maven.apache.org/xsd/maven-4.0.0.xsd
> >     <http://maven.apache.org/xsd/maven-4.0.0.xsd>
> >     >         <http://maven.apache.org/xsd/maven-4.0.0.xsd
> >     <http://maven.apache.org/xsd/maven-4.0.0.xsd>>"
> >     >         >
> >     >
> >       <
> http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
> >     <
> http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
> >
> >     >
> >      <
> http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
> >     <
> http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
> >>>>
> >     >
> >     >         >
> >     >         >                     <modelVersion>4.0.0</modelVersion>
> >     >         >
> >     >         >                     <parent>
> >     >         >                         <groupId>org.mycustom</groupId>
> >     >         >                         <artifactId>distrib</artifactId>
> >     >         >                         <version>1.0.0-SNAPSHOT</version>
> >     >         >
> >     <relativePath>../pom.xml</relativePath>
> >     >         >                     </parent>
> >     >         >
> >     >         >
> >     >         <artifactId>org.mycustom.karaf.assembly</artifactId>
> >     >         >                     <packaging>karaf-assembly</packaging>
> >     >         >
> >     >         >                     <name>Mycustom :: Karaf Distribution
> ::
> >     >         Assembly</name>
> >     >         >                     <description>Karaf Custom
> distribution
> >     >         assembly</description>
> >     >         >
> >     >         >                     <dependencies>
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>org.apache.karaf.features</groupId>
> >     >         >
> >     <artifactId>framework</artifactId>
> >     >         >
> >     <version>${karaf.version}</version>
> >     >         >                             <type>kar</type>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>org.apache.karaf.features</groupId>
> >     >         >
> >     <artifactId>enterprise</artifactId>
> >     >         >
> >     <version>${karaf.version}</version>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>org.apache.cxf.karaf</groupId>
> >     >         >
> >     <artifactId>apache-cxf</artifactId>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >
> >     <version>${cxf-core.version}</version>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     <groupId>org.ops4j.pax.jdbc</groupId>
> >     >         >
> >     >         <artifactId>pax-jdbc-features</artifactId>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >
> >     <version>${pax-jdbc.version}</version>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>org.apache.karaf.cellar</groupId>
> >     >         >
> >     >         <artifactId>apache-karaf-cellar</artifactId>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >
> >     >         <version>${karaf-cellar.version}</version>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>io.oxsoftware.kastle</groupId>
> >     >         >
> >     >         <artifactId>io.oxsoftware.kastle.features</artifactId>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >
> >     >         <version>${project.parent.version}</version>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                     </dependencies>
> >     >         >
> >     >         >                     <build>
> >     >         >                         <!-- if you want to include
> >     resources
> >     >         in the
> >     >         >                 distribution -->
> >     >         >                         <resources>
> >     >         >                             <resource>
> >     >         >
> >     >         <directory>src/main/resources</directory>
> >     >         >
> <filtering>false</filtering>
> >     >         >                                 <includes>
> >     >         >
> <include>**/*</include>
> >     >         >                                 </includes>
> >     >         >                             </resource>
> >     >         >                             <resource>
> >     >         >
> >     >         <directory>src/main/filtered-resources</directory>
> >     >         >
> <filtering>true</filtering>
> >     >         >                                 <includes>
> >     >         >
> <include>**/*</include>
> >     >         >                                 </includes>
> >     >         >                             </resource>
> >     >         >                         </resources>
> >     >         >
> >     >         >                         <plugins>
> >     >         >                             <!-- if you want to include
> >     >         resources in the
> >     >         >                 distribution -->
> >     >         >                             <plugin>
> >     >         >
> >     >         <groupId>org.apache.maven.plugins</groupId>
> >     >         >
> >     >         <artifactId>maven-resources-plugin</artifactId>
> >     >         >                                 <version>3.0.2</version>
> >     >         >                                 <executions>
> >     >         >                                     <execution>
> >     >         >
> >     <id>process-resources</id>
> >     >         >                                         <goals>
> >     >         >
> >     <goal>resources</goal>
> >     >         >                                         </goals>
> >     >         >                                     </execution>
> >     >         >                                 </executions>
> >     >         >                             </plugin>
> >     >         >                             <plugin>
> >     >         >
> >     >         <groupId>org.apache.karaf.tooling</groupId>
> >     >         >
> >     >         <artifactId>karaf-maven-plugin</artifactId>
> >     >         >
> >     >         <version>${karaf.version}</version>
> >     >         >
> >     <extensions>true</extensions>
> >     >         >                                 <configuration>
> >     >         >                                     <installedFeatures>
> >     >         >
> >     >         <feature>custom-distrib</feature>
> >     >         >
> >     >         <feature>custom-distrib-services</feature>
> >     >         >
> >     >         <feature>custom-distrib-rest</feature>
> >     >         >                                     </installedFeatures>
> >     >         >                                     <bootFeatures>
> >     >         >
> >     <feature>wrapper</feature>
> >     >         >
> >     <feature>wrap</feature>
> >     >         >
> >     >         <feature>aries-blueprint</feature>
> >     >         >
> >     <feature>shell</feature>
> >     >         >
> >     >         <feature>shell-compat</feature>
> >     >         >
> >     <feature>feature</feature>
> >     >         >
> >     <feature>jaas</feature>
> >     >         >
> >     <feature>ssh</feature>
> >     >         >
> >     >         <feature>management</feature>
> >     >         >
> >     <feature>bundle</feature>
> >     >         >
> >     <feature>config</feature>
> >     >         >
> >     >         <feature>deployer</feature>
> >     >         >
> >     >         <feature>diagnostic</feature>
> >     >         >
> >     >         <feature>instance</feature>
> >     >         >
> >     <feature>kar</feature>
> >     >         >
> >     <feature>log</feature>
> >     >         >
> >     <feature>package</feature>
> >     >         >
> >     <feature>service</feature>
> >     >         >
> >     <feature>system</feature>
> >     >         >
> >     >         <feature>eventadmin</feature>
> >     >         >
> >     <feature>scr</feature>
> >     >         >
> >     >         >
> >     <feature>jdbc</feature>
> >     >         >
> >     <feature>jndi</feature>
> >     >         >
> >     >         <feature>transaction</feature>
> >     >         >
> >     <feature>war</feature>
> >     >         >
> >     >         >
> >     <feature>cxf</feature>
> >     >         >
> >     >         <feature>cxf-jaxrs</feature>
> >     >         >
> >     >         >
> >      <feature>cxf-rs-description-swagger2</feature>
> >     >         >
> >     >         >
> >     >         >
> >     >         <feature>pax-jdbc</feature>
> >     >         >
> >     >         <feature>pax-jdbc-config</feature>
> >     >         >
> >     >         <feature>pax-jdbc-pool-hikaricp</feature>
> >     >         >
> >     >         <feature>pax-jdbc-pool-aries</feature>
> >     >         >
> >     >         <feature>pax-jdbc-postgresql</feature>
> >     >         >
> >     >         >
> >     <feature>cellar</feature>
> >     >         >                                     </bootFeatures>
> >     >         >                                     <libraries>
> >     >         >
> >     >         >
> >     >
> >
>    <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
> >     >         >
> >     >         >
> >     >
> >
>    <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
> >     >         >                                     </libraries>
> >     >         >                                     <javase>1.8</javase>
> >     >         >                                 </configuration>
> >     >         >                             </plugin>
> >     >         >                         </plugins>
> >     >         >                         <pluginManagement>
> >     >         >                             <plugins>
> >     >         >                                 <!--This plugin's
> >     >         configuration is used to store
> >     >         >                 Eclipse m2e settings
> >     >         >                                     only. It has no
> >     influence
> >     >         on the Maven build
> >     >         >                 itself. -->
> >     >         >                                 <plugin>
> >     >         >
> >     >         <groupId>org.eclipse.m2e</groupId>
> >     >         >
> >     >         <artifactId>lifecycle-mapping</artifactId>
> >     >         >
> <version>1.0.0</version>
> >     >         >                                     <configuration>
> >     >         >
> >     <lifecycleMappingMetadata>
> >     >         >
> >     <pluginExecutions>
> >     >         >
> >     <pluginExecution>
> >     >         >
> >     >         <pluginExecutionFilter>
> >     >         >
> >     <groupId>
> >     >         >
>
> >     >         org.apache.karaf.tooling
> >     >         >
> >     </groupId>
> >     >         >
> >     >         <artifactId>
> >     >         >
>
> >     >         karaf-maven-plugin
> >     >         >
> >     >         </artifactId>
> >     >         >
> >     >         <versionRange>
> >     >         >
>
> >     >         [4.1.0,)
> >     >         >
> >     >         </versionRange>
> >     >         >
> >     <goals>
> >     >         >
>
> >     >         <goal>assembly</goal>
> >     >         >
> >     </goals>
> >     >         >
> >     >         </pluginExecutionFilter>
> >     >         >
> <action>
> >     >         >
> >     >         <ignore></ignore>
> >     >         >
> >     </action>
> >     >         >
> >     </pluginExecution>
> >     >         >
> >     </pluginExecutions>
> >     >         >
> >     >         </lifecycleMappingMetadata>
> >     >         >                                     </configuration>
> >     >         >                                 </plugin>
> >     >         >                             </plugins>
> >     >         >                         </pluginManagement>
> >     >         >                     </build>
> >     >         >
> >     >         >
> >     >         >                 Le 17/04/2018 à 10:30, nino martinez
> wael a
> >     >         écrit :
> >     >         >>                 Yes, I want to include at least first
> level
> >     >         dependencies for
> >     >         >>                 my kar / application.. But we need to
> >     be able
> >     >         todo an offline
> >     >         >>                 installation. With released
> applications.
> >     >         >>
> >     >         >>                 On Sat, Apr 14, 2018 at 6:41 PM,
> >     Francois Papon
> >     >         >>                 <francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>
> >     >         >>                 <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>>> wrote:
> >     >         >>
> >     >         >>                     Hi,
> >     >         >>
> >     >         >>                     You want to include your repo into
> >     a kar ?
> >     >         >>
> >     >         >>                     François
> >     >         >>
> >     >         >>
> >     >         >>                     Le 13/04/2018 à 16:50, nino
> >     martinez wael
> >     >         a écrit :
> >     >         >>>                     I have this that does what I
> >     want.. BUT
> >     >         I think it's a
> >     >         >>>                     hardcore hack. Is there no way to
> >     make a
> >     >         packaged kar
> >     >         >>>                     containing a repo like below,
> >     using the
> >     >         resources
> >     >         >>>                     parameter seems to be a hack?
> >     >         >>>
> >     >         >>>                     <plugin>
> >     >         >>>
> >     >          <groupId>org.apache.karaf.tooling</groupId>
> >     >         >>>
> >     >          <artifactId>karaf-maven-plugin</artifactId>
> >     >         >>>                         <extensions>true</extensions>
> >     >         >>>
> >      <version>${karaf.version}</version>
> >     >         >>>                         <executions>
> >     >         >>>                             <execution>
> >     >         >>>
> >      <id>features-add-to-repo</id>
> >     >         >>>                                 <goals>
> >     >         >>>
> >     >          <goal>features-add-to-repository</goal>
> >     >         >>>                                 </goals>
> >     >         >>>                                 <configuration>
> >     >         >>>                                     <descriptors>
> >     >         >>>
> >     >
> >
>    <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
> >     >         >>>
> >     >
> >
>    <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
> >     >         >>>                                     </descriptors>
> >     >         >>>                                     <features>
> >     >         >>>
> >     >          <feature>ccadmin</feature>
> >     >         >>>                                     </features>
> >     >         >>>
> >     >
> >
>    <repository>${project.build.directory}/classes/repository</repository>
> >     >         >>>                                 </configuration>
> >     >         >>>                             </execution>
> >     >         >>>                             <execution>
> >     >         >>>                                 <id>kar</id>
> >     >         >>>                                 <goals>
> >     >         >>>                                     <goal>kar</goal>
> >     >         >>>                                 </goals>
> >     >         >>>                             </execution>
> >     >         >>>                         </executions>
> >     >         >>>                     </plugin>
> >     >         >>>
> >     >         >>
> >     >         >>
> >     >         >>
> >     >         >>
> >     >         >>                 --
> >     >         >>                 Best regards / Med venlig hilsen
> >     >         >>                 Nino Martinez
> >     >         >
> >     >         >
> >     >         >
> >     >         >
> >     >         >             --
> >     >         >             Best regards / Med venlig hilsen
> >     >         >             Nino Martinez
> >     >         >
> >     >         >
> >     >         >
> >     >         >
> >     >         >         --
> >     >         >         Best regards / Med venlig hilsen
> >     >         >         Nino Martinez
> >     >         >
> >     >         >
> >     >         >
> >     >         >
> >     >         >     --
> >     >         >     Best regards / Med venlig hilsen
> >     >         >     Nino Martinez
> >     >         >
> >     >
> >     >         --
> >     >         Jean-Baptiste Onofré
> >     >         jbonofre@apache.org <ma...@apache.org>
> >     <mailto:jbonofre@apache.org <ma...@apache.org>>
> >     >         http://blog.nanthrax.net
> >     >         Talend - http://www.talend.com
> >     >
> >     >
> >     >
> >
> >     --
> >     --
> >     Jean-Baptiste Onofré
> >     jbonofre@apache.org <ma...@apache.org>
> >     http://blog.nanthrax.net
> >     Talend - http://www.talend.com
> >
> >
> >
> >
> > --
> > Best regards / Med venlig hilsen
> > Nino Martinez
>
> --
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Nicolas Brasey <ni...@gmail.com>.
Hi,

I am also having the same issue (with v.4.1.2).

Here is the workaround I use to build an "offline" kar having all the
bundles of the dependent features. I mix the usage of 2 goals:




<plugin>
    <groupId>org.apache.karaf.tooling</groupId>
    <artifactId>karaf-maven-plugin</artifactId>
    <extensions>true</extensions>
    <version>4.1.2</version>
    <!-- using the kar packaging, you just have to use plugin extensions -->
    <!--extensions>true</extensions-->
    <!-- if you use the pom packaging, you have to explicitly define the
plugin execution -->
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>features-add-to-repository</goal>
            </goals>
            <configuration>
                <descriptors>

<descriptor>mvn:org.apache.karaf.features/spring/${karaf.version}/xml/features</descriptor>

<descriptor>mvn:org.apache.camel.karaf/apache-camel/${camel.version}/xml/features</descriptor>
                </descriptors>
                <features>
                    <feature>spring</feature>
                    <feature>camel-sql</feature>
                    <feature>camel-spring</feature>
                    <feature>camel-kafka</feature>
                    <feature>camel-http4</feature>
                </features>

<repository>${project.build.directory}/3rd-party-repo/repository</repository>
            </configuration>
        </execution>
        <execution>
            <id>compile</id>
            <phase>compile</phase>
            <goals>
                <goal>features-generate-descriptor</goal>
            </goals>
            <configuration>
                <enableGeneration>false</enableGeneration>
                <startLevel>100</startLevel>
            </configuration>
        </execution>
        <execution>
            <id>package</id>
            <goals>
                <goal>kar</goal>
            </goals>
            <configuration>

<resourcesDir>${project.build.directory}/3rd-party-repo</resourcesDir>
            </configuration>
        </execution>
    </executions>
</plugin>





On Wed, May 30, 2018 at 3:36 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Yes, it contains the inner features bundles.
>
> Is it what you are missing ?
>
> Regards
> JB
>
> On 30/05/2018 15:31, nino martinez wael wrote:
> > but what are the resulting kar? does it contain the aggregated feature
> > set bundles?
> >
> >
> > regards Nino
> >
> > On Wed, May 30, 2018 at 2:54 PM, Jean-Baptiste Onofré <jb@nanthrax.net
> > <ma...@nanthrax.net>> wrote:
> >
> >     Hi,
> >
> >     I tested without problem with 4.1.5. I'm testing with 4.2.0 now.
> >
> >     I keep you posted.
> >
> >     Regards
> >     JB
> >
> >     On 30/05/2018 14:14, Martin Nielsen wrote:
> >     > Hello everyone
> >     > I am facing a similar issue, did you figure this out?
> >     >
> >     > -Martin
> >     >
> >     > On Wed, May 16, 2018 at 6:06 PM, nino martinez wael
> >     > <nino.martinez.wael@gmail.com <mailto:nino.martinez.wael@gmail.com
> >
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>> wrote:
> >     >
> >     >     Did you get a chance to look at this?
> >     >
> >     >     On 3 May 2018 20:23, "Jean-Baptiste Onofré" <jb@nanthrax.net
> <ma...@nanthrax.net>
> >     >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
> >     >
> >     >         Hi Nino,
> >     >
> >     >         As I'm now back from vacation, I gonna take a look.
> >     >
> >     >         Sorry for the delay.
> >     >
> >     >         Regards
> >     >         JB
> >     >
> >     >
> >     >         On 05/03/2018 08:19 PM, nino martinez wael wrote:
> >     >         > Any chance someone has an idea?
> >     >         >
> >     >         > On Wed, 18 Apr 2018, 08:02 nino martinez wael,
> >     >         <nino.martinez.wael@gmail.com <mailto:nino.martinez.wael@
> gmail.com>
> >     <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>
> >     >         > <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>> wrote:
> >     >         >
> >     >         >     Actually if I read this part, it does seem that the
> kar
> >     >         goal should do what
> >     >         >     I want. But I am missing the part where the kar
> plugin add
> >     >         the bundles to
> >     >         >     the kar repo..
> >     >         >
> >     >         >
> >     >          https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc
> >     <https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc>
> >     >         <https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc
> >     <https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc>>
> >     >         >
> >     >         >
> >     >         >             Maven
> >     >         >
> >     >         >     Apache Karaf provides a Maven
> plugin: |karaf-maven-plugin|.
> >     >         >
> >     >         >     The Apache Karaf Maven plugin provides
> the |kar| goal.
> >     >         >
> >     >         >     The |kar| goal does: . Reads all features specified
> in the
> >     >         features XML. .
> >     >         >     For each feature described in the features XML, the
> goal
> >     >         resolves the
> >     >         >     bundles described in the feature. . The goal finally
> >     >         packages the features
> >     >         >     XML, *_/and the resolved bundles in a zip file./_*
> >     >
> >     >         >
> >     >         >     For instance, the following Maven POM
> create |my-kar.kar|
> >     >         >
> >     >         >     For instance, you can use the following POM to
> create a kar:
> >     >         >
> >     >         >
> >     >         >
> >     >         >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael
> >     >         >     <nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>> wrote:
> >     >         >
> >     >         >         if I check the documentation the spring kar
> "example"
> >     >         are pretty much
> >     >         >         what we want todo..
> >     >         >
> >     >         >         https://karaf.apache.org/manual/latest/kar
> >     <https://karaf.apache.org/manual/latest/kar>
> >     >         <https://karaf.apache.org/manual/latest/kar
> >     <https://karaf.apache.org/manual/latest/kar>>
> >     >         >
> >     >         >         On Wed, Apr 18, 2018 at 7:52 AM, nino martinez
> wael
> >     >         >         <nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>
> >     >         <mailto:nino.martinez.wael@gmail.com
> >     <ma...@gmail.com>>>> wrote:
> >     >         >
> >     >         >             Yes but, the problem arises when we want to
> mix
> >     >         our products but
> >     >         >             only want / just need one karaf instance..
> Plus
> >     >         each release does
> >     >         >             actually require a significant amount of
> space on
> >     >         our artifact
> >     >         >             servers.. around 150mb per release /
> snapshot..
> >     >         Using the kar
> >     >         >             approach and one common custom karaf for our
> >     >         products lightents this
> >     >         >             a lot.
> >     >         >
> >     >         >             So today we are doing one karaf assembly per
> >     >         project but want to
> >     >         >             move away from it.
> >     >         >
> >     >         >             -regards Nino
> >     >         >
> >     >         >             On Tue, Apr 17, 2018 at 11:30 AM, Francois
> Papon
> >     >         >             <francois.papon@openobject.fr <mailto:
> francois.papon@openobject.fr>
> >     >         <mailto:francois.papon@openobject.fr <mailto:
> francois.papon@openobject.fr>>
> >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >         <mailto:francois.papon@openobject.fr <mailto:
> francois.papon@openobject.fr>>>>
> >     >
> >     >         >             wrote:
> >     >         >
> >     >         >                 Have you tried to create a custom
> distribution
> >     >         of Karaf ? It's
> >     >         >                 great to use in offline environment.
> >     >         >
> >     >         >                 Here an example of pom assembly :
> >     >         >
> >     >         >                 -- <?xml version="1.0" encoding="UTF-8"?>
> >     >         >                 <project
> >     >         xmlns="http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>
> >     >         <http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>>"
> >     >         >                 <http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>
> >     >         <http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>>>
> >     >         >
> >     >          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> >     <http://www.w3.org/2001/XMLSchema-instance>
> >     >         <http://www.w3.org/2001/XMLSchema-instance
> >     <http://www.w3.org/2001/XMLSchema-instance>>"
> >     >         >                 <http://www.w3.org/2001/
> XMLSchema-instance
> >     <http://www.w3.org/2001/XMLSchema-instance>
> >     >         <http://www.w3.org/2001/XMLSchema-instance
> >     <http://www.w3.org/2001/XMLSchema-instance>>>
> >     >         >
> >     >         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 <
> http://maven.apache.org/POM/4.0.0>
> >     >         <http://maven.apache.org/POM/4.0.0
> >     <http://maven.apache.org/POM/4.0.0>>
> >     >         >
> >      http://maven.apache.org/xsd/maven-4.0.0.xsd
> >     <http://maven.apache.org/xsd/maven-4.0.0.xsd>
> >     >         <http://maven.apache.org/xsd/maven-4.0.0.xsd
> >     <http://maven.apache.org/xsd/maven-4.0.0.xsd>>"
> >     >         >
> >     >
> >       <http://maven.apache.org/POM/4.0.0http://maven.apache.
> org/xsd/maven-4.0.0.xsd
> >     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/
> xsd/maven-4.0.0.xsd>
> >     >
> >      <http://maven.apache.org/POM/4.0.0http://maven.apache.org/
> xsd/maven-4.0.0.xsd
> >     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/
> xsd/maven-4.0.0.xsd>>>>
> >     >
> >     >         >
> >     >         >                     <modelVersion>4.0.0</modelVersion>
> >     >         >
> >     >         >                     <parent>
> >     >         >                         <groupId>org.mycustom</groupId>
> >     >         >                         <artifactId>distrib</artifactId>
> >     >         >                         <version>1.0.0-SNAPSHOT</
> version>
> >     >         >
> >     <relativePath>../pom.xml</relativePath>
> >     >         >                     </parent>
> >     >         >
> >     >         >
> >     >         <artifactId>org.mycustom.karaf.assembly</artifactId>
> >     >         >                     <packaging>karaf-assembly</
> packaging>
> >     >         >
> >     >         >                     <name>Mycustom :: Karaf Distribution
> ::
> >     >         Assembly</name>
> >     >         >                     <description>Karaf Custom
> distribution
> >     >         assembly</description>
> >     >         >
> >     >         >                     <dependencies>
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>org.apache.karaf.features</groupId>
> >     >         >
> >     <artifactId>framework</artifactId>
> >     >         >
> >     <version>${karaf.version}</version>
> >     >         >                             <type>kar</type>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>org.apache.karaf.features</groupId>
> >     >         >
> >     <artifactId>enterprise</artifactId>
> >     >         >
> >     <version>${karaf.version}</version>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>org.apache.cxf.karaf</groupId>
> >     >         >
> >     <artifactId>apache-cxf</artifactId>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >
> >     <version>${cxf-core.version}</version>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     <groupId>org.ops4j.pax.jdbc</groupId>
> >     >         >
> >     >         <artifactId>pax-jdbc-features</artifactId>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >
> >     <version>${pax-jdbc.version}</version>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>org.apache.karaf.cellar</groupId>
> >     >         >
> >     >         <artifactId>apache-karaf-cellar</artifactId>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >
> >     >         <version>${karaf-cellar.version}</version>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                         <dependency>
> >     >         >
> >     >         <groupId>io.oxsoftware.kastle</groupId>
> >     >         >
> >     >         <artifactId>io.oxsoftware.kastle.features</artifactId>
> >     >         >
> >     <classifier>features</classifier>
> >     >         >
> >     >         <version>${project.parent.version}</version>
> >     >         >                             <type>xml</type>
> >     >         >                             <scope>runtime</scope>
> >     >         >                         </dependency>
> >     >         >
> >     >         >                     </dependencies>
> >     >         >
> >     >         >                     <build>
> >     >         >                         <!-- if you want to include
> >     resources
> >     >         in the
> >     >         >                 distribution -->
> >     >         >                         <resources>
> >     >         >                             <resource>
> >     >         >
> >     >         <directory>src/main/resources</directory>
> >     >         >
> <filtering>false</filtering>
> >     >         >                                 <includes>
> >     >         >
> <include>**/*</include>
> >     >         >                                 </includes>
> >     >         >                             </resource>
> >     >         >                             <resource>
> >     >         >
> >     >         <directory>src/main/filtered-resources</directory>
> >     >         >
> <filtering>true</filtering>
> >     >         >                                 <includes>
> >     >         >
> <include>**/*</include>
> >     >         >                                 </includes>
> >     >         >                             </resource>
> >     >         >                         </resources>
> >     >         >
> >     >         >                         <plugins>
> >     >         >                             <!-- if you want to include
> >     >         resources in the
> >     >         >                 distribution -->
> >     >         >                             <plugin>
> >     >         >
> >     >         <groupId>org.apache.maven.plugins</groupId>
> >     >         >
> >     >         <artifactId>maven-resources-plugin</artifactId>
> >     >         >                                 <version>3.0.2</version>
> >     >         >                                 <executions>
> >     >         >                                     <execution>
> >     >         >
> >     <id>process-resources</id>
> >     >         >                                         <goals>
> >     >         >
> >     <goal>resources</goal>
> >     >         >                                         </goals>
> >     >         >                                     </execution>
> >     >         >                                 </executions>
> >     >         >                             </plugin>
> >     >         >                             <plugin>
> >     >         >
> >     >         <groupId>org.apache.karaf.tooling</groupId>
> >     >         >
> >     >         <artifactId>karaf-maven-plugin</artifactId>
> >     >         >
> >     >         <version>${karaf.version}</version>
> >     >         >
> >     <extensions>true</extensions>
> >     >         >                                 <configuration>
> >     >         >                                     <installedFeatures>
> >     >         >
> >     >         <feature>custom-distrib</feature>
> >     >         >
> >     >         <feature>custom-distrib-services</feature>
> >     >         >
> >     >         <feature>custom-distrib-rest</feature>
> >     >         >                                     </installedFeatures>
> >     >         >                                     <bootFeatures>
> >     >         >
> >     <feature>wrapper</feature>
> >     >         >
> >     <feature>wrap</feature>
> >     >         >
> >     >         <feature>aries-blueprint</feature>
> >     >         >
> >     <feature>shell</feature>
> >     >         >
> >     >         <feature>shell-compat</feature>
> >     >         >
> >     <feature>feature</feature>
> >     >         >
> >     <feature>jaas</feature>
> >     >         >
> >     <feature>ssh</feature>
> >     >         >
> >     >         <feature>management</feature>
> >     >         >
> >     <feature>bundle</feature>
> >     >         >
> >     <feature>config</feature>
> >     >         >
> >     >         <feature>deployer</feature>
> >     >         >
> >     >         <feature>diagnostic</feature>
> >     >         >
> >     >         <feature>instance</feature>
> >     >         >
> >     <feature>kar</feature>
> >     >         >
> >     <feature>log</feature>
> >     >         >
> >     <feature>package</feature>
> >     >         >
> >     <feature>service</feature>
> >     >         >
> >     <feature>system</feature>
> >     >         >
> >     >         <feature>eventadmin</feature>
> >     >         >
> >     <feature>scr</feature>
> >     >         >
> >     >         >
> >     <feature>jdbc</feature>
> >     >         >
> >     <feature>jndi</feature>
> >     >         >
> >     >         <feature>transaction</feature>
> >     >         >
> >     <feature>war</feature>
> >     >         >
> >     >         >
> >     <feature>cxf</feature>
> >     >         >
> >     >         <feature>cxf-jaxrs</feature>
> >     >         >
> >     >         >
> >      <feature>cxf-rs-description-swagger2</feature>
> >     >         >
> >     >         >
> >     >         >
> >     >         <feature>pax-jdbc</feature>
> >     >         >
> >     >         <feature>pax-jdbc-config</feature>
> >     >         >
> >     >         <feature>pax-jdbc-pool-hikaricp</feature>
> >     >         >
> >     >         <feature>pax-jdbc-pool-aries</feature>
> >     >         >
> >     >         <feature>pax-jdbc-postgresql</feature>
> >     >         >
> >     >         >
> >     <feature>cellar</feature>
> >     >         >                                     </bootFeatures>
> >     >         >                                     <libraries>
> >     >         >
> >     >         >
> >     >
> >       <library>mvn:org.apache.servicemix.specs/org.apache.
> servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.
> version};type:=endorsed;export:=true</library>
> >     >         >
> >     >         >
> >     >
> >       <library>mvn:org.apache.servicemix.specs/org.apache.
> servicemix.specs.json-api-1.1/${servicemix.specs.json.
> version};type:=endorsed;export:=true</library>
> >     >         >                                     </libraries>
> >     >         >                                     <javase>1.8</javase>
> >     >         >                                 </configuration>
> >     >         >                             </plugin>
> >     >         >                         </plugins>
> >     >         >                         <pluginManagement>
> >     >         >                             <plugins>
> >     >         >                                 <!--This plugin's
> >     >         configuration is used to store
> >     >         >                 Eclipse m2e settings
> >     >         >                                     only. It has no
> >     influence
> >     >         on the Maven build
> >     >         >                 itself. -->
> >     >         >                                 <plugin>
> >     >         >
> >     >         <groupId>org.eclipse.m2e</groupId>
> >     >         >
> >     >         <artifactId>lifecycle-mapping</artifactId>
> >     >         >
> <version>1.0.0</version>
> >     >         >                                     <configuration>
> >     >         >
> >     <lifecycleMappingMetadata>
> >     >         >
> >     <pluginExecutions>
> >     >         >
> >     <pluginExecution>
> >     >         >
> >     >         <pluginExecutionFilter>
> >     >         >
> >     <groupId>
> >     >         >
>
> >     >         org.apache.karaf.tooling
> >     >         >
> >     </groupId>
> >     >         >
> >     >         <artifactId>
> >     >         >
>
> >     >         karaf-maven-plugin
> >     >         >
> >     >         </artifactId>
> >     >         >
> >     >         <versionRange>
> >     >         >
>
> >     >         [4.1.0,)
> >     >         >
> >     >         </versionRange>
> >     >         >
> >     <goals>
> >     >         >
>
> >     >         <goal>assembly</goal>
> >     >         >
> >     </goals>
> >     >         >
> >     >         </pluginExecutionFilter>
> >     >         >
> <action>
> >     >         >
> >     >         <ignore></ignore>
> >     >         >
> >     </action>
> >     >         >
> >     </pluginExecution>
> >     >         >
> >     </pluginExecutions>
> >     >         >
> >     >         </lifecycleMappingMetadata>
> >     >         >                                     </configuration>
> >     >         >                                 </plugin>
> >     >         >                             </plugins>
> >     >         >                         </pluginManagement>
> >     >         >                     </build>
> >     >         >
> >     >         >
> >     >         >                 Le 17/04/2018 à 10:30, nino martinez
> wael a
> >     >         écrit :
> >     >         >>                 Yes, I want to include at least first
> level
> >     >         dependencies for
> >     >         >>                 my kar / application.. But we need to
> >     be able
> >     >         todo an offline
> >     >         >>                 installation. With released
> applications.
> >     >         >>
> >     >         >>                 On Sat, Apr 14, 2018 at 6:41 PM,
> >     Francois Papon
> >     >         >>                 <francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>
> >     >         >>                 <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>
> >     >         <mailto:francois.papon@openobject.fr
> >     <ma...@openobject.fr>>>> wrote:
> >     >         >>
> >     >         >>                     Hi,
> >     >         >>
> >     >         >>                     You want to include your repo into
> >     a kar ?
> >     >         >>
> >     >         >>                     François
> >     >         >>
> >     >         >>
> >     >         >>                     Le 13/04/2018 à 16:50, nino
> >     martinez wael
> >     >         a écrit :
> >     >         >>>                     I have this that does what I
> >     want.. BUT
> >     >         I think it's a
> >     >         >>>                     hardcore hack. Is there no way to
> >     make a
> >     >         packaged kar
> >     >         >>>                     containing a repo like below,
> >     using the
> >     >         resources
> >     >         >>>                     parameter seems to be a hack?
> >     >         >>>
> >     >         >>>                     <plugin>
> >     >         >>>
> >     >          <groupId>org.apache.karaf.tooling</groupId>
> >     >         >>>
> >     >          <artifactId>karaf-maven-plugin</artifactId>
> >     >         >>>                         <extensions>true</extensions>
> >     >         >>>
> >      <version>${karaf.version}</version>
> >     >         >>>                         <executions>
> >     >         >>>                             <execution>
> >     >         >>>
> >      <id>features-add-to-repo</id>
> >     >         >>>                                 <goals>
> >     >         >>>
> >     >          <goal>features-add-to-repository</goal>
> >     >         >>>                                 </goals>
> >     >         >>>                                 <configuration>
> >     >         >>>                                     <descriptors>
> >     >         >>>
> >     >
> >       <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/
> xml/features</descriptor>
> >     >         >>>
> >     >
> >       <descriptor>mvn:com.netdesign.ccadmin/ccadmin-
> karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
> >     >         >>>                                     </descriptors>
> >     >         >>>                                     <features>
> >     >         >>>
> >     >          <feature>ccadmin</feature>
> >     >         >>>                                     </features>
> >     >         >>>
> >     >
> >       <repository>${project.build.directory}/classes/repository<
> /repository>
> >     >         >>>                                 </configuration>
> >     >         >>>                             </execution>
> >     >         >>>                             <execution>
> >     >         >>>                                 <id>kar</id>
> >     >         >>>                                 <goals>
> >     >         >>>                                     <goal>kar</goal>
> >     >         >>>                                 </goals>
> >     >         >>>                             </execution>
> >     >         >>>                         </executions>
> >     >         >>>                     </plugin>
> >     >         >>>
> >     >         >>
> >     >         >>
> >     >         >>
> >     >         >>
> >     >         >>                 --
> >     >         >>                 Best regards / Med venlig hilsen
> >     >         >>                 Nino Martinez
> >     >         >
> >     >         >
> >     >         >
> >     >         >
> >     >         >             --
> >     >         >             Best regards / Med venlig hilsen
> >     >         >             Nino Martinez
> >     >         >
> >     >         >
> >     >         >
> >     >         >
> >     >         >         --
> >     >         >         Best regards / Med venlig hilsen
> >     >         >         Nino Martinez
> >     >         >
> >     >         >
> >     >         >
> >     >         >
> >     >         >     --
> >     >         >     Best regards / Med venlig hilsen
> >     >         >     Nino Martinez
> >     >         >
> >     >
> >     >         --
> >     >         Jean-Baptiste Onofré
> >     >         jbonofre@apache.org <ma...@apache.org>
> >     <mailto:jbonofre@apache.org <ma...@apache.org>>
> >     >         http://blog.nanthrax.net
> >     >         Talend - http://www.talend.com
> >     >
> >     >
> >     >
> >
> >     --
> >     --
> >     Jean-Baptiste Onofré
> >     jbonofre@apache.org <ma...@apache.org>
> >     http://blog.nanthrax.net
> >     Talend - http://www.talend.com
> >
> >
> >
> >
> > --
> > Best regards / Med venlig hilsen
> > Nino Martinez
>
> --
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes, it contains the inner features bundles.

Is it what you are missing ?

Regards
JB

On 30/05/2018 15:31, nino martinez wael wrote:
> but what are the resulting kar? does it contain the aggregated feature
> set bundles?
> 
> 
> regards Nino
> 
> On Wed, May 30, 2018 at 2:54 PM, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
> 
>     Hi,
> 
>     I tested without problem with 4.1.5. I'm testing with 4.2.0 now.
> 
>     I keep you posted.
> 
>     Regards
>     JB
> 
>     On 30/05/2018 14:14, Martin Nielsen wrote:
>     > Hello everyone
>     > I am facing a similar issue, did you figure this out?
>     > 
>     > -Martin
>     > 
>     > On Wed, May 16, 2018 at 6:06 PM, nino martinez wael
>     > <nino.martinez.wael@gmail.com <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>> wrote:
>     > 
>     >     Did you get a chance to look at this? 
>     > 
>     >     On 3 May 2018 20:23, "Jean-Baptiste Onofré" <jb@nanthrax.net <ma...@nanthrax.net>
>     >     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>     > 
>     >         Hi Nino,
>     > 
>     >         As I'm now back from vacation, I gonna take a look.
>     > 
>     >         Sorry for the delay.
>     > 
>     >         Regards
>     >         JB
>     > 
>     > 
>     >         On 05/03/2018 08:19 PM, nino martinez wael wrote:
>     >         > Any chance someone has an idea? 
>     >         >
>     >         > On Wed, 18 Apr 2018, 08:02 nino martinez wael,
>     >         <nino.martinez.wael@gmail.com <ma...@gmail.com>
>     <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>
>     >         > <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>> wrote:
>     >         >
>     >         >     Actually if I read this part, it does seem that the kar
>     >         goal should do what
>     >         >     I want. But I am missing the part where the kar plugin add
>     >         the bundles to
>     >         >     the kar repo..
>     >         >
>     >         >   
>     >          https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>
>     >         <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>     <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>>
>     >         >
>     >         >
>     >         >             Maven
>     >         >
>     >         >     Apache Karaf provides a Maven plugin: |karaf-maven-plugin|.
>     >         >
>     >         >     The Apache Karaf Maven plugin provides the |kar| goal.
>     >         >
>     >         >     The |kar| goal does: . Reads all features specified in the
>     >         features XML. .
>     >         >     For each feature described in the features XML, the goal
>     >         resolves the
>     >         >     bundles described in the feature. . The goal finally
>     >         packages the features
>     >         >     XML, *_/and the resolved bundles in a zip file./_*
>     > 
>     >         >
>     >         >     For instance, the following Maven POM create |my-kar.kar|
>     >         >
>     >         >     For instance, you can use the following POM to create a kar:
>     >         >
>     >         >
>     >         >
>     >         >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael
>     >         >     <nino.martinez.wael@gmail.com <ma...@gmail.com>
>     >         <mailto:nino.martinez.wael@gmail.com <ma...@gmail.com>>
>     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>> wrote:
>     >         >
>     >         >         if I check the documentation the spring kar "example"
>     >         are pretty much
>     >         >         what we want todo..
>     >         >
>     >         >         https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>
>     >         <https://karaf.apache.org/manual/latest/kar
>     <https://karaf.apache.org/manual/latest/kar>>
>     >         >
>     >         >         On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael
>     >         >         <nino.martinez.wael@gmail.com <ma...@gmail.com>
>     >         <mailto:nino.martinez.wael@gmail.com <ma...@gmail.com>>
>     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>
>     >         <mailto:nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>>> wrote:
>     >         >
>     >         >             Yes but, the problem arises when we want to mix
>     >         our products but
>     >         >             only want / just need one karaf instance.. Plus
>     >         each release does
>     >         >             actually require a significant amount of space on
>     >         our artifact
>     >         >             servers.. around 150mb per release / snapshot..
>     >         Using the kar
>     >         >             approach and one common custom karaf for our
>     >         products lightents this
>     >         >             a lot.
>     >         >
>     >         >             So today we are doing one karaf assembly per
>     >         project but want to
>     >         >             move away from it.
>     >         >
>     >         >             -regards Nino
>     >         >
>     >         >             On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon
>     >         >             <francois.papon@openobject.fr <ma...@openobject.fr>
>     >         <mailto:francois.papon@openobject.fr <ma...@openobject.fr>>
>     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >         <mailto:francois.papon@openobject.fr <ma...@openobject.fr>>>>
>     > 
>     >         >             wrote:
>     >         >
>     >         >                 Have you tried to create a custom distribution
>     >         of Karaf ? It's
>     >         >                 great to use in offline environment.
>     >         >
>     >         >                 Here an example of pom assembly :
>     >         >
>     >         >                 -- <?xml version="1.0" encoding="UTF-8"?>
>     >         >                 <project
>     >         xmlns="http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0>
>     >         <http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0>>"
>     >         >                 <http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0>
>     >         <http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0>>>
>     >         >               
>     >          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >         <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>"
>     >         >                 <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>
>     >         <http://www.w3.org/2001/XMLSchema-instance
>     <http://www.w3.org/2001/XMLSchema-instance>>>
>     >         >                    
>     >         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0>
>     >         <http://maven.apache.org/POM/4.0.0
>     <http://maven.apache.org/POM/4.0.0>>
>     >         >               
>      http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >         <http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/xsd/maven-4.0.0.xsd>>"
>     >         >               
>     >       
>       <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
>     >       
>      <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>     <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>>>>
>     >
>     >         >
>     >         >                     <modelVersion>4.0.0</modelVersion>
>     >         >
>     >         >                     <parent>
>     >         >                         <groupId>org.mycustom</groupId>
>     >         >                         <artifactId>distrib</artifactId>
>     >         >                         <version>1.0.0-SNAPSHOT</version>
>     >         >                        
>     <relativePath>../pom.xml</relativePath>
>     >         >                     </parent>
>     >         >
>     >         >                    
>     >         <artifactId>org.mycustom.karaf.assembly</artifactId>
>     >         >                     <packaging>karaf-assembly</packaging>
>     >         >
>     >         >                     <name>Mycustom :: Karaf Distribution ::
>     >         Assembly</name>
>     >         >                     <description>Karaf Custom distribution
>     >         assembly</description>
>     >         >
>     >         >                     <dependencies>
>     >         >                         <dependency>
>     >         >                            
>     >         <groupId>org.apache.karaf.features</groupId>
>     >         >                            
>     <artifactId>framework</artifactId>
>     >         >                            
>     <version>${karaf.version}</version>
>     >         >                             <type>kar</type>
>     >         >                         </dependency>
>     >         >
>     >         >                         <dependency>
>     >         >                            
>     >         <groupId>org.apache.karaf.features</groupId>
>     >         >                            
>     <artifactId>enterprise</artifactId>
>     >         >                            
>     <version>${karaf.version}</version>
>     >         >                            
>     <classifier>features</classifier>
>     >         >                             <type>xml</type>
>     >         >                             <scope>runtime</scope>
>     >         >                         </dependency>
>     >         >
>     >         >                         <dependency>
>     >         >                            
>     >         <groupId>org.apache.cxf.karaf</groupId>
>     >         >                            
>     <artifactId>apache-cxf</artifactId>
>     >         >                            
>     <classifier>features</classifier>
>     >         >                            
>     <version>${cxf-core.version}</version>
>     >         >                             <type>xml</type>
>     >         >                             <scope>runtime</scope>
>     >         >                         </dependency>
>     >         >
>     >         >                         <dependency>
>     >         >                            
>     <groupId>org.ops4j.pax.jdbc</groupId>
>     >         >                            
>     >         <artifactId>pax-jdbc-features</artifactId>
>     >         >                            
>     <classifier>features</classifier>
>     >         >                            
>     <version>${pax-jdbc.version}</version>
>     >         >                             <type>xml</type>
>     >         >                             <scope>runtime</scope>
>     >         >                         </dependency>
>     >         >
>     >         >                         <dependency>
>     >         >                            
>     >         <groupId>org.apache.karaf.cellar</groupId>
>     >         >                            
>     >         <artifactId>apache-karaf-cellar</artifactId>
>     >         >                            
>     <classifier>features</classifier>
>     >         >                            
>     >         <version>${karaf-cellar.version}</version>
>     >         >                             <type>xml</type>
>     >         >                             <scope>runtime</scope>
>     >         >                         </dependency>
>     >         >
>     >         >                         <dependency>
>     >         >                            
>     >         <groupId>io.oxsoftware.kastle</groupId>
>     >         >                            
>     >         <artifactId>io.oxsoftware.kastle.features</artifactId>
>     >         >                            
>     <classifier>features</classifier>
>     >         >                            
>     >         <version>${project.parent.version}</version>
>     >         >                             <type>xml</type>
>     >         >                             <scope>runtime</scope>
>     >         >                         </dependency>
>     >         >
>     >         >                     </dependencies>
>     >         >
>     >         >                     <build>
>     >         >                         <!-- if you want to include
>     resources
>     >         in the
>     >         >                 distribution -->
>     >         >                         <resources>
>     >         >                             <resource>
>     >         >                                
>     >         <directory>src/main/resources</directory>
>     >         >                                 <filtering>false</filtering>
>     >         >                                 <includes>
>     >         >                                     <include>**/*</include>
>     >         >                                 </includes>
>     >         >                             </resource>
>     >         >                             <resource>
>     >         >                                
>     >         <directory>src/main/filtered-resources</directory>
>     >         >                                 <filtering>true</filtering>
>     >         >                                 <includes>
>     >         >                                     <include>**/*</include>
>     >         >                                 </includes>
>     >         >                             </resource>
>     >         >                         </resources>
>     >         >
>     >         >                         <plugins>
>     >         >                             <!-- if you want to include
>     >         resources in the
>     >         >                 distribution -->
>     >         >                             <plugin>
>     >         >                                
>     >         <groupId>org.apache.maven.plugins</groupId>
>     >         >                                
>     >         <artifactId>maven-resources-plugin</artifactId>
>     >         >                                 <version>3.0.2</version>
>     >         >                                 <executions>
>     >         >                                     <execution>
>     >         >                                        
>     <id>process-resources</id>
>     >         >                                         <goals>
>     >         >                                            
>     <goal>resources</goal>
>     >         >                                         </goals>
>     >         >                                     </execution>
>     >         >                                 </executions>
>     >         >                             </plugin>
>     >         >                             <plugin>
>     >         >                                
>     >         <groupId>org.apache.karaf.tooling</groupId>
>     >         >                                
>     >         <artifactId>karaf-maven-plugin</artifactId>
>     >         >                                
>     >         <version>${karaf.version}</version>
>     >         >                                
>     <extensions>true</extensions>
>     >         >                                 <configuration>
>     >         >                                     <installedFeatures>
>     >         >                                        
>     >         <feature>custom-distrib</feature>
>     >         >                                        
>     >         <feature>custom-distrib-services</feature>
>     >         >                                        
>     >         <feature>custom-distrib-rest</feature>
>     >         >                                     </installedFeatures>
>     >         >                                     <bootFeatures>
>     >         >                                        
>     <feature>wrapper</feature>
>     >         >                                        
>     <feature>wrap</feature>
>     >         >                                        
>     >         <feature>aries-blueprint</feature>
>     >         >                                        
>     <feature>shell</feature>
>     >         >                                        
>     >         <feature>shell-compat</feature>
>     >         >                                        
>     <feature>feature</feature>
>     >         >                                        
>     <feature>jaas</feature>
>     >         >                                        
>     <feature>ssh</feature>
>     >         >                                        
>     >         <feature>management</feature>
>     >         >                                        
>     <feature>bundle</feature>
>     >         >                                        
>     <feature>config</feature>
>     >         >                                        
>     >         <feature>deployer</feature>
>     >         >                                        
>     >         <feature>diagnostic</feature>
>     >         >                                        
>     >         <feature>instance</feature>
>     >         >                                        
>     <feature>kar</feature>
>     >         >                                        
>     <feature>log</feature>
>     >         >                                        
>     <feature>package</feature>
>     >         >                                        
>     <feature>service</feature>
>     >         >                                        
>     <feature>system</feature>
>     >         >                                        
>     >         <feature>eventadmin</feature>
>     >         >                                        
>     <feature>scr</feature>
>     >         >
>     >         >                                        
>     <feature>jdbc</feature>
>     >         >                                        
>     <feature>jndi</feature>
>     >         >                                        
>     >         <feature>transaction</feature>
>     >         >                                        
>     <feature>war</feature>
>     >         >
>     >         >                                        
>     <feature>cxf</feature>
>     >         >                                        
>     >         <feature>cxf-jaxrs</feature>
>     >         >                                        
>     >         >               
>      <feature>cxf-rs-description-swagger2</feature>
>     >         >                                        
>     >         >
>     >         >                                        
>     >         <feature>pax-jdbc</feature>
>     >         >                                        
>     >         <feature>pax-jdbc-config</feature>
>     >         >                                        
>     >         <feature>pax-jdbc-pool-hikaricp</feature>
>     >         >                                        
>     >         <feature>pax-jdbc-pool-aries</feature>
>     >         >                                        
>     >         <feature>pax-jdbc-postgresql</feature>
>     >         >
>     >         >                                         
>     <feature>cellar</feature>
>     >         >                                     </bootFeatures>
>     >         >                                     <libraries>
>     >         >                                        
>     >         >               
>     >       
>       <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>     >         >                                        
>     >         >               
>     >       
>       <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
>     >         >                                     </libraries>
>     >         >                                     <javase>1.8</javase>
>     >         >                                 </configuration>
>     >         >                             </plugin>
>     >         >                         </plugins>
>     >         >                         <pluginManagement>
>     >         >                             <plugins>
>     >         >                                 <!--This plugin's
>     >         configuration is used to store
>     >         >                 Eclipse m2e settings
>     >         >                                     only. It has no
>     influence
>     >         on the Maven build
>     >         >                 itself. -->
>     >         >                                 <plugin>
>     >         >                                    
>     >         <groupId>org.eclipse.m2e</groupId>
>     >         >                                    
>     >         <artifactId>lifecycle-mapping</artifactId>
>     >         >                                     <version>1.0.0</version>
>     >         >                                     <configuration>
>     >         >                                        
>     <lifecycleMappingMetadata>
>     >         >                                            
>     <pluginExecutions>
>     >         >                                                
>     <pluginExecution>
>     >         >                                                    
>     >         <pluginExecutionFilter>
>     >         >                                                        
>     <groupId>
>     >         >                                                            
>     >         org.apache.karaf.tooling
>     >         >                                                        
>     </groupId>
>     >         >                                                        
>     >         <artifactId>
>     >         >                                                            
>     >         karaf-maven-plugin
>     >         >                                                        
>     >         </artifactId>
>     >         >                                                        
>     >         <versionRange>
>     >         >                                                            
>     >         [4.1.0,)
>     >         >                                                        
>     >         </versionRange>
>     >         >                                                        
>     <goals>
>     >         >                                                            
>     >         <goal>assembly</goal>
>     >         >                                                        
>     </goals>
>     >         >                                                    
>     >         </pluginExecutionFilter>
>     >         >                                                     <action>
>     >         >                                                        
>     >         <ignore></ignore>
>     >         >                                                    
>     </action>
>     >         >                                                
>     </pluginExecution>
>     >         >                                            
>     </pluginExecutions>
>     >         >                                        
>     >         </lifecycleMappingMetadata>
>     >         >                                     </configuration>
>     >         >                                 </plugin>
>     >         >                             </plugins>
>     >         >                         </pluginManagement>
>     >         >                     </build>
>     >         >
>     >         >
>     >         >                 Le 17/04/2018 à 10:30, nino martinez wael a
>     >         écrit :
>     >         >>                 Yes, I want to include at least first level
>     >         dependencies for
>     >         >>                 my kar / application.. But we need to
>     be able
>     >         todo an offline
>     >         >>                 installation. With released applications.
>     >         >>
>     >         >>                 On Sat, Apr 14, 2018 at 6:41 PM,
>     Francois Papon
>     >         >>                 <francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>
>     >         >>                 <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>
>     >         <mailto:francois.papon@openobject.fr
>     <ma...@openobject.fr>>>> wrote:
>     >         >>
>     >         >>                     Hi,
>     >         >>
>     >         >>                     You want to include your repo into
>     a kar ?
>     >         >>
>     >         >>                     François
>     >         >>
>     >         >>
>     >         >>                     Le 13/04/2018 à 16:50, nino
>     martinez wael
>     >         a écrit :
>     >         >>>                     I have this that does what I
>     want.. BUT
>     >         I think it's a
>     >         >>>                     hardcore hack. Is there no way to
>     make a
>     >         packaged kar
>     >         >>>                     containing a repo like below,
>     using the
>     >         resources
>     >         >>>                     parameter seems to be a hack?
>     >         >>>
>     >         >>>                     <plugin>
>     >         >>>                       
>     >          <groupId>org.apache.karaf.tooling</groupId>
>     >         >>>                       
>     >          <artifactId>karaf-maven-plugin</artifactId>
>     >         >>>                         <extensions>true</extensions>
>     >         >>>                       
>      <version>${karaf.version}</version>
>     >         >>>                         <executions>
>     >         >>>                             <execution>
>     >         >>>                               
>      <id>features-add-to-repo</id>
>     >         >>>                                 <goals>
>     >         >>>                                   
>     >          <goal>features-add-to-repository</goal>
>     >         >>>                                 </goals>
>     >         >>>                                 <configuration>
>     >         >>>                                     <descriptors>
>     >         >>>                                       
>     >       
>       <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>     >         >>>                                       
>     >       
>       <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>     >         >>>                                     </descriptors>
>     >         >>>                                     <features>
>     >         >>>                                       
>     >          <feature>ccadmin</feature>
>     >         >>>                                     </features>
>     >         >>>                                   
>     >       
>       <repository>${project.build.directory}/classes/repository</repository>
>     >         >>>                                 </configuration>
>     >         >>>                             </execution>
>     >         >>>                             <execution>
>     >         >>>                                 <id>kar</id>
>     >         >>>                                 <goals>
>     >         >>>                                     <goal>kar</goal>
>     >         >>>                                 </goals>
>     >         >>>                             </execution>
>     >         >>>                         </executions>
>     >         >>>                     </plugin>
>     >         >>>
>     >         >>
>     >         >>
>     >         >>
>     >         >>
>     >         >>                 --
>     >         >>                 Best regards / Med venlig hilsen 
>     >         >>                 Nino Martinez
>     >         >
>     >         >
>     >         >
>     >         >
>     >         >             --
>     >         >             Best regards / Med venlig hilsen 
>     >         >             Nino Martinez
>     >         >
>     >         >
>     >         >
>     >         >
>     >         >         --
>     >         >         Best regards / Med venlig hilsen 
>     >         >         Nino Martinez
>     >         >
>     >         >
>     >         >
>     >         >
>     >         >     --
>     >         >     Best regards / Med venlig hilsen 
>     >         >     Nino Martinez
>     >         >
>     >
>     >         --
>     >         Jean-Baptiste Onofré
>     >         jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     >         http://blog.nanthrax.net
>     >         Talend - http://www.talend.com
>     > 
>     > 
>     > 
> 
>     -- 
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
> 
> 
> 
> 
> -- 
> Best regards / Med venlig hilsen 
> Nino Martinez

-- 
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
but what are the resulting kar? does it contain the aggregated feature set
bundles?


regards Nino

On Wed, May 30, 2018 at 2:54 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Hi,
>
> I tested without problem with 4.1.5. I'm testing with 4.2.0 now.
>
> I keep you posted.
>
> Regards
> JB
>
> On 30/05/2018 14:14, Martin Nielsen wrote:
> > Hello everyone
> > I am facing a similar issue, did you figure this out?
> >
> > -Martin
> >
> > On Wed, May 16, 2018 at 6:06 PM, nino martinez wael
> > <nino.martinez.wael@gmail.com <ma...@gmail.com>>
> wrote:
> >
> >     Did you get a chance to look at this?
> >
> >     On 3 May 2018 20:23, "Jean-Baptiste Onofré" <jb@nanthrax.net
> >     <ma...@nanthrax.net>> wrote:
> >
> >         Hi Nino,
> >
> >         As I'm now back from vacation, I gonna take a look.
> >
> >         Sorry for the delay.
> >
> >         Regards
> >         JB
> >
> >
> >         On 05/03/2018 08:19 PM, nino martinez wael wrote:
> >         > Any chance someone has an idea?
> >         >
> >         > On Wed, 18 Apr 2018, 08:02 nino martinez wael,
> >         <nino.martinez.wael@gmail.com <mailto:nino.martinez.wael@
> gmail.com>
> >         > <mailto:nino.martinez.wael@gmail.com
> >         <ma...@gmail.com>>> wrote:
> >         >
> >         >     Actually if I read this part, it does seem that the kar
> >         goal should do what
> >         >     I want. But I am missing the part where the kar plugin add
> >         the bundles to
> >         >     the kar repo..
> >         >
> >         >
> >          https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc
> >         <https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc>
> >         >
> >         >
> >         >             Maven
> >         >
> >         >     Apache Karaf provides a Maven plugin: |karaf-maven-plugin|.
> >         >
> >         >     The Apache Karaf Maven plugin provides the |kar| goal.
> >         >
> >         >     The |kar| goal does: . Reads all features specified in the
> >         features XML. .
> >         >     For each feature described in the features XML, the goal
> >         resolves the
> >         >     bundles described in the feature. . The goal finally
> >         packages the features
> >         >     XML, *_/and the resolved bundles in a zip file./_*
> >
> >         >
> >         >     For instance, the following Maven POM create |my-kar.kar|
> >         >
> >         >     For instance, you can use the following POM to create a
> kar:
> >         >
> >         >
> >         >
> >         >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael
> >         >     <nino.martinez.wael@gmail.com
> >         <ma...@gmail.com>
> >         <mailto:nino.martinez.wael@gmail.com
> >         <ma...@gmail.com>>> wrote:
> >         >
> >         >         if I check the documentation the spring kar "example"
> >         are pretty much
> >         >         what we want todo..
> >         >
> >         >         https://karaf.apache.org/manual/latest/kar
> >         <https://karaf.apache.org/manual/latest/kar>
> >         >
> >         >         On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael
> >         >         <nino.martinez.wael@gmail.com
> >         <ma...@gmail.com>
> >         <mailto:nino.martinez.wael@gmail.com
> >         <ma...@gmail.com>>> wrote:
> >         >
> >         >             Yes but, the problem arises when we want to mix
> >         our products but
> >         >             only want / just need one karaf instance.. Plus
> >         each release does
> >         >             actually require a significant amount of space on
> >         our artifact
> >         >             servers.. around 150mb per release / snapshot..
> >         Using the kar
> >         >             approach and one common custom karaf for our
> >         products lightents this
> >         >             a lot.
> >         >
> >         >             So today we are doing one karaf assembly per
> >         project but want to
> >         >             move away from it.
> >         >
> >         >             -regards Nino
> >         >
> >         >             On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon
> >         >             <francois.papon@openobject.fr
> >         <ma...@openobject.fr>
> >         <mailto:francois.papon@openobject.fr
> >         <ma...@openobject.fr>>>
> >
> >         >             wrote:
> >         >
> >         >                 Have you tried to create a custom distribution
> >         of Karaf ? It's
> >         >                 great to use in offline environment.
> >         >
> >         >                 Here an example of pom assembly :
> >         >
> >         >                 -- <?xml version="1.0" encoding="UTF-8"?>
> >         >                 <project
> >         xmlns="http://maven.apache.org/POM/4.0.0
> >         <http://maven.apache.org/POM/4.0.0>"
> >         >                 <http://maven.apache.org/POM/4.0.0
> >         <http://maven.apache.org/POM/4.0.0>>
> >         >
> >          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> >         <http://www.w3.org/2001/XMLSchema-instance>"
> >         >                 <http://www.w3.org/2001/XMLSchema-instance
> >         <http://www.w3.org/2001/XMLSchema-instance>>
> >         >
> >         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >         <http://maven.apache.org/POM/4.0.0>
> >         >                 http://maven.apache.org/xsd/maven-4.0.0.xsd
> >         <http://maven.apache.org/xsd/maven-4.0.0.xsd>"
> >         >
> >          <http://maven.apache.org/POM/4.0.0http://maven.apache.org/
> xsd/maven-4.0.0.xsd
> >         <http://maven.apache.org/POM/4.0.0http://maven.apache.org/
> xsd/maven-4.0.0.xsd>>>
> >
> >         >
> >         >                     <modelVersion>4.0.0</modelVersion>
> >         >
> >         >                     <parent>
> >         >                         <groupId>org.mycustom</groupId>
> >         >                         <artifactId>distrib</artifactId>
> >         >                         <version>1.0.0-SNAPSHOT</version>
> >         >                         <relativePath>../pom.xml</
> relativePath>
> >         >                     </parent>
> >         >
> >         >
> >         <artifactId>org.mycustom.karaf.assembly</artifactId>
> >         >                     <packaging>karaf-assembly</packaging>
> >         >
> >         >                     <name>Mycustom :: Karaf Distribution ::
> >         Assembly</name>
> >         >                     <description>Karaf Custom distribution
> >         assembly</description>
> >         >
> >         >                     <dependencies>
> >         >                         <dependency>
> >         >
> >         <groupId>org.apache.karaf.features</groupId>
> >         >                             <artifactId>framework</artifactId>
> >         >                             <version>${karaf.version}</
> version>
> >         >                             <type>kar</type>
> >         >                         </dependency>
> >         >
> >         >                         <dependency>
> >         >
> >         <groupId>org.apache.karaf.features</groupId>
> >         >                             <artifactId>enterprise</
> artifactId>
> >         >                             <version>${karaf.version}</
> version>
> >         >                             <classifier>features</classifier>
> >         >                             <type>xml</type>
> >         >                             <scope>runtime</scope>
> >         >                         </dependency>
> >         >
> >         >                         <dependency>
> >         >
> >         <groupId>org.apache.cxf.karaf</groupId>
> >         >                             <artifactId>apache-cxf</
> artifactId>
> >         >                             <classifier>features</classifier>
> >         >                             <version>${cxf-core.version}</
> version>
> >         >                             <type>xml</type>
> >         >                             <scope>runtime</scope>
> >         >                         </dependency>
> >         >
> >         >                         <dependency>
> >         >                             <groupId>org.ops4j.pax.jdbc</
> groupId>
> >         >
> >         <artifactId>pax-jdbc-features</artifactId>
> >         >                             <classifier>features</classifier>
> >         >                             <version>${pax-jdbc.version}</
> version>
> >         >                             <type>xml</type>
> >         >                             <scope>runtime</scope>
> >         >                         </dependency>
> >         >
> >         >                         <dependency>
> >         >
> >         <groupId>org.apache.karaf.cellar</groupId>
> >         >
> >         <artifactId>apache-karaf-cellar</artifactId>
> >         >                             <classifier>features</classifier>
> >         >
> >         <version>${karaf-cellar.version}</version>
> >         >                             <type>xml</type>
> >         >                             <scope>runtime</scope>
> >         >                         </dependency>
> >         >
> >         >                         <dependency>
> >         >
> >         <groupId>io.oxsoftware.kastle</groupId>
> >         >
> >         <artifactId>io.oxsoftware.kastle.features</artifactId>
> >         >                             <classifier>features</classifier>
> >         >
> >         <version>${project.parent.version}</version>
> >         >                             <type>xml</type>
> >         >                             <scope>runtime</scope>
> >         >                         </dependency>
> >         >
> >         >                     </dependencies>
> >         >
> >         >                     <build>
> >         >                         <!-- if you want to include resources
> >         in the
> >         >                 distribution -->
> >         >                         <resources>
> >         >                             <resource>
> >         >
> >         <directory>src/main/resources</directory>
> >         >                                 <filtering>false</filtering>
> >         >                                 <includes>
> >         >                                     <include>**/*</include>
> >         >                                 </includes>
> >         >                             </resource>
> >         >                             <resource>
> >         >
> >         <directory>src/main/filtered-resources</directory>
> >         >                                 <filtering>true</filtering>
> >         >                                 <includes>
> >         >                                     <include>**/*</include>
> >         >                                 </includes>
> >         >                             </resource>
> >         >                         </resources>
> >         >
> >         >                         <plugins>
> >         >                             <!-- if you want to include
> >         resources in the
> >         >                 distribution -->
> >         >                             <plugin>
> >         >
> >         <groupId>org.apache.maven.plugins</groupId>
> >         >
> >         <artifactId>maven-resources-plugin</artifactId>
> >         >                                 <version>3.0.2</version>
> >         >                                 <executions>
> >         >                                     <execution>
> >         >
> <id>process-resources</id>
> >         >                                         <goals>
> >         >
> <goal>resources</goal>
> >         >                                         </goals>
> >         >                                     </execution>
> >         >                                 </executions>
> >         >                             </plugin>
> >         >                             <plugin>
> >         >
> >         <groupId>org.apache.karaf.tooling</groupId>
> >         >
> >         <artifactId>karaf-maven-plugin</artifactId>
> >         >
> >         <version>${karaf.version}</version>
> >         >                                 <extensions>true</extensions>
> >         >                                 <configuration>
> >         >                                     <installedFeatures>
> >         >
> >         <feature>custom-distrib</feature>
> >         >
> >         <feature>custom-distrib-services</feature>
> >         >
> >         <feature>custom-distrib-rest</feature>
> >         >                                     </installedFeatures>
> >         >                                     <bootFeatures>
> >         >
> <feature>wrapper</feature>
> >         >                                         <feature>wrap</feature>
> >         >
> >         <feature>aries-blueprint</feature>
> >         >
> <feature>shell</feature>
> >         >
> >         <feature>shell-compat</feature>
> >         >
> <feature>feature</feature>
> >         >                                         <feature>jaas</feature>
> >         >                                         <feature>ssh</feature>
> >         >
> >         <feature>management</feature>
> >         >
> <feature>bundle</feature>
> >         >
> <feature>config</feature>
> >         >
> >         <feature>deployer</feature>
> >         >
> >         <feature>diagnostic</feature>
> >         >
> >         <feature>instance</feature>
> >         >                                         <feature>kar</feature>
> >         >                                         <feature>log</feature>
> >         >
> <feature>package</feature>
> >         >
> <feature>service</feature>
> >         >
> <feature>system</feature>
> >         >
> >         <feature>eventadmin</feature>
> >         >                                         <feature>scr</feature>
> >         >
> >         >                                         <feature>jdbc</feature>
> >         >                                         <feature>jndi</feature>
> >         >
> >         <feature>transaction</feature>
> >         >                                         <feature>war</feature>
> >         >
> >         >                                         <feature>cxf</feature>
> >         >
> >         <feature>cxf-jaxrs</feature>
> >         >
> >         >                 <feature>cxf-rs-description-swagger2</feature>
> >         >
> >         >
> >         >
> >         <feature>pax-jdbc</feature>
> >         >
> >         <feature>pax-jdbc-config</feature>
> >         >
> >         <feature>pax-jdbc-pool-hikaricp</feature>
> >         >
> >         <feature>pax-jdbc-pool-aries</feature>
> >         >
> >         <feature>pax-jdbc-postgresql</feature>
> >         >
> >         >
> <feature>cellar</feature>
> >         >                                     </bootFeatures>
> >         >                                     <libraries>
> >         >
> >         >
> >          <library>mvn:org.apache.servicemix.specs/org.apache.
> servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.
> version};type:=endorsed;export:=true</library>
> >         >
> >         >
> >          <library>mvn:org.apache.servicemix.specs/org.apache.
> servicemix.specs.json-api-1.1/${servicemix.specs.json.
> version};type:=endorsed;export:=true</library>
> >         >                                     </libraries>
> >         >                                     <javase>1.8</javase>
> >         >                                 </configuration>
> >         >                             </plugin>
> >         >                         </plugins>
> >         >                         <pluginManagement>
> >         >                             <plugins>
> >         >                                 <!--This plugin's
> >         configuration is used to store
> >         >                 Eclipse m2e settings
> >         >                                     only. It has no influence
> >         on the Maven build
> >         >                 itself. -->
> >         >                                 <plugin>
> >         >
> >         <groupId>org.eclipse.m2e</groupId>
> >         >
> >         <artifactId>lifecycle-mapping</artifactId>
> >         >                                     <version>1.0.0</version>
> >         >                                     <configuration>
> >         >
> <lifecycleMappingMetadata>
> >         >                                             <pluginExecutions>
> >         >
> <pluginExecution>
> >         >
> >         <pluginExecutionFilter>
> >         >
> <groupId>
> >         >
> >         org.apache.karaf.tooling
> >         >
> </groupId>
> >         >
> >         <artifactId>
> >         >
> >         karaf-maven-plugin
> >         >
> >         </artifactId>
> >         >
> >         <versionRange>
> >         >
> >         [4.1.0,)
> >         >
> >         </versionRange>
> >         >                                                         <goals>
> >         >
> >         <goal>assembly</goal>
> >         >
> </goals>
> >         >
> >         </pluginExecutionFilter>
> >         >                                                     <action>
> >         >
> >         <ignore></ignore>
> >         >                                                     </action>
> >         >
> </pluginExecution>
> >         >                                             </pluginExecutions>
> >         >
> >         </lifecycleMappingMetadata>
> >         >                                     </configuration>
> >         >                                 </plugin>
> >         >                             </plugins>
> >         >                         </pluginManagement>
> >         >                     </build>
> >         >
> >         >
> >         >                 Le 17/04/2018 à 10:30, nino martinez wael a
> >         écrit :
> >         >>                 Yes, I want to include at least first level
> >         dependencies for
> >         >>                 my kar / application.. But we need to be able
> >         todo an offline
> >         >>                 installation. With released applications.
> >         >>
> >         >>                 On Sat, Apr 14, 2018 at 6:41 PM, Francois
> Papon
> >         >>                 <francois.papon@openobject.fr
> >         <ma...@openobject.fr>
> >         >>                 <mailto:francois.papon@openobject.fr
> >         <ma...@openobject.fr>>> wrote:
> >         >>
> >         >>                     Hi,
> >         >>
> >         >>                     You want to include your repo into a kar ?
> >         >>
> >         >>                     François
> >         >>
> >         >>
> >         >>                     Le 13/04/2018 à 16:50, nino martinez wael
> >         a écrit :
> >         >>>                     I have this that does what I want.. BUT
> >         I think it's a
> >         >>>                     hardcore hack. Is there no way to make a
> >         packaged kar
> >         >>>                     containing a repo like below, using the
> >         resources
> >         >>>                     parameter seems to be a hack?
> >         >>>
> >         >>>                     <plugin>
> >         >>>
> >          <groupId>org.apache.karaf.tooling</groupId>
> >         >>>
> >          <artifactId>karaf-maven-plugin</artifactId>
> >         >>>                         <extensions>true</extensions>
> >         >>>                         <version>${karaf.version}</version>
> >         >>>                         <executions>
> >         >>>                             <execution>
> >         >>>                                 <id>features-add-to-repo</id>
> >         >>>                                 <goals>
> >         >>>
> >          <goal>features-add-to-repository</goal>
> >         >>>                                 </goals>
> >         >>>                                 <configuration>
> >         >>>                                     <descriptors>
> >         >>>
> >          <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/
> xml/features</descriptor>
> >         >>>
> >          <descriptor>mvn:com.netdesign.ccadmin/ccadmin-
> karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
> >         >>>                                     </descriptors>
> >         >>>                                     <features>
> >         >>>
> >          <feature>ccadmin</feature>
> >         >>>                                     </features>
> >         >>>
> >          <repository>${project.build.directory}/classes/repository<
> /repository>
> >         >>>                                 </configuration>
> >         >>>                             </execution>
> >         >>>                             <execution>
> >         >>>                                 <id>kar</id>
> >         >>>                                 <goals>
> >         >>>                                     <goal>kar</goal>
> >         >>>                                 </goals>
> >         >>>                             </execution>
> >         >>>                         </executions>
> >         >>>                     </plugin>
> >         >>>
> >         >>
> >         >>
> >         >>
> >         >>
> >         >>                 --
> >         >>                 Best regards / Med venlig hilsen
> >         >>                 Nino Martinez
> >         >
> >         >
> >         >
> >         >
> >         >             --
> >         >             Best regards / Med venlig hilsen
> >         >             Nino Martinez
> >         >
> >         >
> >         >
> >         >
> >         >         --
> >         >         Best regards / Med venlig hilsen
> >         >         Nino Martinez
> >         >
> >         >
> >         >
> >         >
> >         >     --
> >         >     Best regards / Med venlig hilsen
> >         >     Nino Martinez
> >         >
> >
> >         --
> >         Jean-Baptiste Onofré
> >         jbonofre@apache.org <ma...@apache.org>
> >         http://blog.nanthrax.net
> >         Talend - http://www.talend.com
> >
> >
> >
>
> --
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

I tested without problem with 4.1.5. I'm testing with 4.2.0 now.

I keep you posted.

Regards
JB

On 30/05/2018 14:14, Martin Nielsen wrote:
> Hello everyone
> I am facing a similar issue, did you figure this out?
> 
> -Martin
> 
> On Wed, May 16, 2018 at 6:06 PM, nino martinez wael
> <nino.martinez.wael@gmail.com <ma...@gmail.com>> wrote:
> 
>     Did you get a chance to look at this? 
> 
>     On 3 May 2018 20:23, "Jean-Baptiste Onofré" <jb@nanthrax.net
>     <ma...@nanthrax.net>> wrote:
> 
>         Hi Nino,
> 
>         As I'm now back from vacation, I gonna take a look.
> 
>         Sorry for the delay.
> 
>         Regards
>         JB
> 
> 
>         On 05/03/2018 08:19 PM, nino martinez wael wrote:
>         > Any chance someone has an idea? 
>         >
>         > On Wed, 18 Apr 2018, 08:02 nino martinez wael,
>         <nino.martinez.wael@gmail.com <ma...@gmail.com>
>         > <mailto:nino.martinez.wael@gmail.com
>         <ma...@gmail.com>>> wrote:
>         >
>         >     Actually if I read this part, it does seem that the kar
>         goal should do what
>         >     I want. But I am missing the part where the kar plugin add
>         the bundles to
>         >     the kar repo..
>         >
>         >   
>          https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>         <https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc>
>         >
>         >
>         >             Maven
>         >
>         >     Apache Karaf provides a Maven plugin: |karaf-maven-plugin|.
>         >
>         >     The Apache Karaf Maven plugin provides the |kar| goal.
>         >
>         >     The |kar| goal does: . Reads all features specified in the
>         features XML. .
>         >     For each feature described in the features XML, the goal
>         resolves the
>         >     bundles described in the feature. . The goal finally
>         packages the features
>         >     XML, *_/and the resolved bundles in a zip file./_*
> 
>         >
>         >     For instance, the following Maven POM create |my-kar.kar|
>         >
>         >     For instance, you can use the following POM to create a kar:
>         >
>         >
>         >
>         >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael
>         >     <nino.martinez.wael@gmail.com
>         <ma...@gmail.com>
>         <mailto:nino.martinez.wael@gmail.com
>         <ma...@gmail.com>>> wrote:
>         >
>         >         if I check the documentation the spring kar "example"
>         are pretty much
>         >         what we want todo..
>         >
>         >         https://karaf.apache.org/manual/latest/kar
>         <https://karaf.apache.org/manual/latest/kar>
>         >
>         >         On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael
>         >         <nino.martinez.wael@gmail.com
>         <ma...@gmail.com>
>         <mailto:nino.martinez.wael@gmail.com
>         <ma...@gmail.com>>> wrote:
>         >
>         >             Yes but, the problem arises when we want to mix
>         our products but
>         >             only want / just need one karaf instance.. Plus
>         each release does
>         >             actually require a significant amount of space on
>         our artifact
>         >             servers.. around 150mb per release / snapshot..
>         Using the kar
>         >             approach and one common custom karaf for our
>         products lightents this
>         >             a lot.
>         >
>         >             So today we are doing one karaf assembly per
>         project but want to
>         >             move away from it.
>         >
>         >             -regards Nino
>         >
>         >             On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon
>         >             <francois.papon@openobject.fr
>         <ma...@openobject.fr>
>         <mailto:francois.papon@openobject.fr
>         <ma...@openobject.fr>>>
> 
>         >             wrote:
>         >
>         >                 Have you tried to create a custom distribution
>         of Karaf ? It's
>         >                 great to use in offline environment.
>         >
>         >                 Here an example of pom assembly :
>         >
>         >                 -- <?xml version="1.0" encoding="UTF-8"?>
>         >                 <project
>         xmlns="http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>"
>         >                 <http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>>
>         >               
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>"
>         >                 <http://www.w3.org/2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>>
>         >                    
>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>
>         >                 http://maven.apache.org/xsd/maven-4.0.0.xsd
>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>"
>         >               
>          <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>         <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>>>
> 
>         >
>         >                     <modelVersion>4.0.0</modelVersion>
>         >
>         >                     <parent>
>         >                         <groupId>org.mycustom</groupId>
>         >                         <artifactId>distrib</artifactId>
>         >                         <version>1.0.0-SNAPSHOT</version>
>         >                         <relativePath>../pom.xml</relativePath>
>         >                     </parent>
>         >
>         >                    
>         <artifactId>org.mycustom.karaf.assembly</artifactId>
>         >                     <packaging>karaf-assembly</packaging>
>         >
>         >                     <name>Mycustom :: Karaf Distribution ::
>         Assembly</name>
>         >                     <description>Karaf Custom distribution
>         assembly</description>
>         >
>         >                     <dependencies>
>         >                         <dependency>
>         >                            
>         <groupId>org.apache.karaf.features</groupId>
>         >                             <artifactId>framework</artifactId>
>         >                             <version>${karaf.version}</version>
>         >                             <type>kar</type>
>         >                         </dependency>
>         >
>         >                         <dependency>
>         >                            
>         <groupId>org.apache.karaf.features</groupId>
>         >                             <artifactId>enterprise</artifactId>
>         >                             <version>${karaf.version}</version>
>         >                             <classifier>features</classifier>
>         >                             <type>xml</type>
>         >                             <scope>runtime</scope>
>         >                         </dependency>
>         >
>         >                         <dependency>
>         >                            
>         <groupId>org.apache.cxf.karaf</groupId>
>         >                             <artifactId>apache-cxf</artifactId>
>         >                             <classifier>features</classifier>
>         >                             <version>${cxf-core.version}</version>
>         >                             <type>xml</type>
>         >                             <scope>runtime</scope>
>         >                         </dependency>
>         >
>         >                         <dependency>
>         >                             <groupId>org.ops4j.pax.jdbc</groupId>
>         >                            
>         <artifactId>pax-jdbc-features</artifactId>
>         >                             <classifier>features</classifier>
>         >                             <version>${pax-jdbc.version}</version>
>         >                             <type>xml</type>
>         >                             <scope>runtime</scope>
>         >                         </dependency>
>         >
>         >                         <dependency>
>         >                            
>         <groupId>org.apache.karaf.cellar</groupId>
>         >                            
>         <artifactId>apache-karaf-cellar</artifactId>
>         >                             <classifier>features</classifier>
>         >                            
>         <version>${karaf-cellar.version}</version>
>         >                             <type>xml</type>
>         >                             <scope>runtime</scope>
>         >                         </dependency>
>         >
>         >                         <dependency>
>         >                            
>         <groupId>io.oxsoftware.kastle</groupId>
>         >                            
>         <artifactId>io.oxsoftware.kastle.features</artifactId>
>         >                             <classifier>features</classifier>
>         >                            
>         <version>${project.parent.version}</version>
>         >                             <type>xml</type>
>         >                             <scope>runtime</scope>
>         >                         </dependency>
>         >
>         >                     </dependencies>
>         >
>         >                     <build>
>         >                         <!-- if you want to include resources
>         in the
>         >                 distribution -->
>         >                         <resources>
>         >                             <resource>
>         >                                
>         <directory>src/main/resources</directory>
>         >                                 <filtering>false</filtering>
>         >                                 <includes>
>         >                                     <include>**/*</include>
>         >                                 </includes>
>         >                             </resource>
>         >                             <resource>
>         >                                
>         <directory>src/main/filtered-resources</directory>
>         >                                 <filtering>true</filtering>
>         >                                 <includes>
>         >                                     <include>**/*</include>
>         >                                 </includes>
>         >                             </resource>
>         >                         </resources>
>         >
>         >                         <plugins>
>         >                             <!-- if you want to include
>         resources in the
>         >                 distribution -->
>         >                             <plugin>
>         >                                
>         <groupId>org.apache.maven.plugins</groupId>
>         >                                
>         <artifactId>maven-resources-plugin</artifactId>
>         >                                 <version>3.0.2</version>
>         >                                 <executions>
>         >                                     <execution>
>         >                                         <id>process-resources</id>
>         >                                         <goals>
>         >                                             <goal>resources</goal>
>         >                                         </goals>
>         >                                     </execution>
>         >                                 </executions>
>         >                             </plugin>
>         >                             <plugin>
>         >                                
>         <groupId>org.apache.karaf.tooling</groupId>
>         >                                
>         <artifactId>karaf-maven-plugin</artifactId>
>         >                                
>         <version>${karaf.version}</version>
>         >                                 <extensions>true</extensions>
>         >                                 <configuration>
>         >                                     <installedFeatures>
>         >                                        
>         <feature>custom-distrib</feature>
>         >                                        
>         <feature>custom-distrib-services</feature>
>         >                                        
>         <feature>custom-distrib-rest</feature>
>         >                                     </installedFeatures>
>         >                                     <bootFeatures>
>         >                                         <feature>wrapper</feature>
>         >                                         <feature>wrap</feature>
>         >                                        
>         <feature>aries-blueprint</feature>
>         >                                         <feature>shell</feature>
>         >                                        
>         <feature>shell-compat</feature>
>         >                                         <feature>feature</feature>
>         >                                         <feature>jaas</feature>
>         >                                         <feature>ssh</feature>
>         >                                        
>         <feature>management</feature>
>         >                                         <feature>bundle</feature>
>         >                                         <feature>config</feature>
>         >                                        
>         <feature>deployer</feature>
>         >                                        
>         <feature>diagnostic</feature>
>         >                                        
>         <feature>instance</feature>
>         >                                         <feature>kar</feature>
>         >                                         <feature>log</feature>
>         >                                         <feature>package</feature>
>         >                                         <feature>service</feature>
>         >                                         <feature>system</feature>
>         >                                        
>         <feature>eventadmin</feature>
>         >                                         <feature>scr</feature>
>         >
>         >                                         <feature>jdbc</feature>
>         >                                         <feature>jndi</feature>
>         >                                        
>         <feature>transaction</feature>
>         >                                         <feature>war</feature>
>         >
>         >                                         <feature>cxf</feature>
>         >                                        
>         <feature>cxf-jaxrs</feature>
>         >                                        
>         >                 <feature>cxf-rs-description-swagger2</feature>
>         >                                        
>         >
>         >                                        
>         <feature>pax-jdbc</feature>
>         >                                        
>         <feature>pax-jdbc-config</feature>
>         >                                        
>         <feature>pax-jdbc-pool-hikaricp</feature>
>         >                                        
>         <feature>pax-jdbc-pool-aries</feature>
>         >                                        
>         <feature>pax-jdbc-postgresql</feature>
>         >
>         >                                          <feature>cellar</feature>
>         >                                     </bootFeatures>
>         >                                     <libraries>
>         >                                        
>         >               
>          <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>         >                                        
>         >               
>          <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
>         >                                     </libraries>
>         >                                     <javase>1.8</javase>
>         >                                 </configuration>
>         >                             </plugin>
>         >                         </plugins>
>         >                         <pluginManagement>
>         >                             <plugins>
>         >                                 <!--This plugin's
>         configuration is used to store
>         >                 Eclipse m2e settings
>         >                                     only. It has no influence
>         on the Maven build
>         >                 itself. -->
>         >                                 <plugin>
>         >                                    
>         <groupId>org.eclipse.m2e</groupId>
>         >                                    
>         <artifactId>lifecycle-mapping</artifactId>
>         >                                     <version>1.0.0</version>
>         >                                     <configuration>
>         >                                         <lifecycleMappingMetadata>
>         >                                             <pluginExecutions>
>         >                                                 <pluginExecution>
>         >                                                    
>         <pluginExecutionFilter>
>         >                                                         <groupId>
>         >                                                            
>         org.apache.karaf.tooling
>         >                                                         </groupId>
>         >                                                        
>         <artifactId>
>         >                                                            
>         karaf-maven-plugin
>         >                                                        
>         </artifactId>
>         >                                                        
>         <versionRange>
>         >                                                            
>         [4.1.0,)
>         >                                                        
>         </versionRange>
>         >                                                         <goals>
>         >                                                            
>         <goal>assembly</goal>
>         >                                                         </goals>
>         >                                                    
>         </pluginExecutionFilter>
>         >                                                     <action>
>         >                                                        
>         <ignore></ignore>
>         >                                                     </action>
>         >                                                 </pluginExecution>
>         >                                             </pluginExecutions>
>         >                                        
>         </lifecycleMappingMetadata>
>         >                                     </configuration>
>         >                                 </plugin>
>         >                             </plugins>
>         >                         </pluginManagement>
>         >                     </build>
>         >
>         >
>         >                 Le 17/04/2018 à 10:30, nino martinez wael a
>         écrit :
>         >>                 Yes, I want to include at least first level
>         dependencies for
>         >>                 my kar / application.. But we need to be able
>         todo an offline
>         >>                 installation. With released applications.
>         >>
>         >>                 On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon
>         >>                 <francois.papon@openobject.fr
>         <ma...@openobject.fr>
>         >>                 <mailto:francois.papon@openobject.fr
>         <ma...@openobject.fr>>> wrote:
>         >>
>         >>                     Hi,
>         >>
>         >>                     You want to include your repo into a kar ?
>         >>
>         >>                     François
>         >>
>         >>
>         >>                     Le 13/04/2018 à 16:50, nino martinez wael
>         a écrit :
>         >>>                     I have this that does what I want.. BUT
>         I think it's a
>         >>>                     hardcore hack. Is there no way to make a
>         packaged kar
>         >>>                     containing a repo like below, using the
>         resources
>         >>>                     parameter seems to be a hack?
>         >>>
>         >>>                     <plugin>
>         >>>                       
>          <groupId>org.apache.karaf.tooling</groupId>
>         >>>                       
>          <artifactId>karaf-maven-plugin</artifactId>
>         >>>                         <extensions>true</extensions>
>         >>>                         <version>${karaf.version}</version>
>         >>>                         <executions>
>         >>>                             <execution>
>         >>>                                 <id>features-add-to-repo</id>
>         >>>                                 <goals>
>         >>>                                   
>          <goal>features-add-to-repository</goal>
>         >>>                                 </goals>
>         >>>                                 <configuration>
>         >>>                                     <descriptors>
>         >>>                                       
>          <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>         >>>                                       
>          <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>         >>>                                     </descriptors>
>         >>>                                     <features>
>         >>>                                       
>          <feature>ccadmin</feature>
>         >>>                                     </features>
>         >>>                                   
>          <repository>${project.build.directory}/classes/repository</repository>
>         >>>                                 </configuration>
>         >>>                             </execution>
>         >>>                             <execution>
>         >>>                                 <id>kar</id>
>         >>>                                 <goals>
>         >>>                                     <goal>kar</goal>
>         >>>                                 </goals>
>         >>>                             </execution>
>         >>>                         </executions>
>         >>>                     </plugin>
>         >>>
>         >>
>         >>
>         >>
>         >>
>         >>                 --
>         >>                 Best regards / Med venlig hilsen 
>         >>                 Nino Martinez
>         >
>         >
>         >
>         >
>         >             --
>         >             Best regards / Med venlig hilsen 
>         >             Nino Martinez
>         >
>         >
>         >
>         >
>         >         --
>         >         Best regards / Med venlig hilsen 
>         >         Nino Martinez
>         >
>         >
>         >
>         >
>         >     --
>         >     Best regards / Med venlig hilsen 
>         >     Nino Martinez
>         >
> 
>         -- 
>         Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         http://blog.nanthrax.net
>         Talend - http://www.talend.com
> 
> 
> 

-- 
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
No need to apologise 😁

On Thu, 3 May 2018, 20:23 Jean-Baptiste Onofré, <jb...@nanthrax.net> wrote:

> Hi Nino,
>
> As I'm now back from vacation, I gonna take a look.
>
> Sorry for the delay.
>
> Regards
> JB
>
> On 05/03/2018 08:19 PM, nino martinez wael wrote:
> > Any chance someone has an idea?
> >
> > On Wed, 18 Apr 2018, 08:02 nino martinez wael, <
> nino.martinez.wael@gmail.com
> > <ma...@gmail.com>> wrote:
> >
> >     Actually if I read this part, it does seem that the kar goal should
> do what
> >     I want. But I am missing the part where the kar plugin add the
> bundles to
> >     the kar repo..
> >
> >
> https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
> >
> >
> >             Maven
> >
> >     Apache Karaf provides a Maven plugin: |karaf-maven-plugin|.
> >
> >     The Apache Karaf Maven plugin provides the |kar| goal.
> >
> >     The |kar| goal does: . Reads all features specified in the features
> XML. .
> >     For each feature described in the features XML, the goal resolves the
> >     bundles described in the feature. . The goal finally packages the
> features
> >     XML, *_/and the resolved bundles in a zip file./_*
> >
> >     For instance, the following Maven POM create |my-kar.kar|
> >
> >     For instance, you can use the following POM to create a kar:
> >
> >
> >
> >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael
> >     <nino.martinez.wael@gmail.com <ma...@gmail.com>>
> wrote:
> >
> >         if I check the documentation the spring kar "example" are pretty
> much
> >         what we want todo..
> >
> >         https://karaf.apache.org/manual/latest/kar
> >
> >         On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael
> >         <nino.martinez.wael@gmail.com <mailto:
> nino.martinez.wael@gmail.com>> wrote:
> >
> >             Yes but, the problem arises when we want to mix our products
> but
> >             only want / just need one karaf instance.. Plus each release
> does
> >             actually require a significant amount of space on our
> artifact
> >             servers.. around 150mb per release / snapshot.. Using the kar
> >             approach and one common custom karaf for our products
> lightents this
> >             a lot.
> >
> >             So today we are doing one karaf assembly per project but
> want to
> >             move away from it.
> >
> >             -regards Nino
> >
> >             On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon
> >             <francois.papon@openobject.fr <mailto:
> francois.papon@openobject.fr>>
> >             wrote:
> >
> >                 Have you tried to create a custom distribution of Karaf
> ? It's
> >                 great to use in offline environment.
> >
> >                 Here an example of pom assembly :
> >
> >                 -- <?xml version="1.0" encoding="UTF-8"?>
> >                 <project xmlns="http://maven.apache.org/POM/4.0.0"
> >                 <http://maven.apache.org/POM/4.0.0>
> >                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >                 <http://www.w3.org/2001/XMLSchema-instance>
> >                     xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0
> >                 http://maven.apache.org/xsd/maven-4.0.0.xsd"
> >                 <
> http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
> >>
> >
> >                     <modelVersion>4.0.0</modelVersion>
> >
> >                     <parent>
> >                         <groupId>org.mycustom</groupId>
> >                         <artifactId>distrib</artifactId>
> >                         <version>1.0.0-SNAPSHOT</version>
> >                         <relativePath>../pom.xml</relativePath>
> >                     </parent>
> >
> >                     <artifactId>org.mycustom.karaf.assembly</artifactId>
> >                     <packaging>karaf-assembly</packaging>
> >
> >                     <name>Mycustom :: Karaf Distribution ::
> Assembly</name>
> >                     <description>Karaf Custom distribution
> assembly</description>
> >
> >                     <dependencies>
> >                         <dependency>
> >                             <groupId>org.apache.karaf.features</groupId>
> >                             <artifactId>framework</artifactId>
> >                             <version>${karaf.version}</version>
> >                             <type>kar</type>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>org.apache.karaf.features</groupId>
> >                             <artifactId>enterprise</artifactId>
> >                             <version>${karaf.version}</version>
> >                             <classifier>features</classifier>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>org.apache.cxf.karaf</groupId>
> >                             <artifactId>apache-cxf</artifactId>
> >                             <classifier>features</classifier>
> >                             <version>${cxf-core.version}</version>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>org.ops4j.pax.jdbc</groupId>
> >                             <artifactId>pax-jdbc-features</artifactId>
> >                             <classifier>features</classifier>
> >                             <version>${pax-jdbc.version}</version>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>org.apache.karaf.cellar</groupId>
> >                             <artifactId>apache-karaf-cellar</artifactId>
> >                             <classifier>features</classifier>
> >                             <version>${karaf-cellar.version}</version>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>io.oxsoftware.kastle</groupId>
> >
> <artifactId>io.oxsoftware.kastle.features</artifactId>
> >                             <classifier>features</classifier>
> >                             <version>${project.parent.version}</version>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                     </dependencies>
> >
> >                     <build>
> >                         <!-- if you want to include resources in the
> >                 distribution -->
> >                         <resources>
> >                             <resource>
> >                                 <directory>src/main/resources</directory>
> >                                 <filtering>false</filtering>
> >                                 <includes>
> >                                     <include>**/*</include>
> >                                 </includes>
> >                             </resource>
> >                             <resource>
> >
> <directory>src/main/filtered-resources</directory>
> >                                 <filtering>true</filtering>
> >                                 <includes>
> >                                     <include>**/*</include>
> >                                 </includes>
> >                             </resource>
> >                         </resources>
> >
> >                         <plugins>
> >                             <!-- if you want to include resources in the
> >                 distribution -->
> >                             <plugin>
> >
> <groupId>org.apache.maven.plugins</groupId>
> >
> <artifactId>maven-resources-plugin</artifactId>
> >                                 <version>3.0.2</version>
> >                                 <executions>
> >                                     <execution>
> >                                         <id>process-resources</id>
> >                                         <goals>
> >                                             <goal>resources</goal>
> >                                         </goals>
> >                                     </execution>
> >                                 </executions>
> >                             </plugin>
> >                             <plugin>
> >
> <groupId>org.apache.karaf.tooling</groupId>
> >
> <artifactId>karaf-maven-plugin</artifactId>
> >                                 <version>${karaf.version}</version>
> >                                 <extensions>true</extensions>
> >                                 <configuration>
> >                                     <installedFeatures>
> >                                         <feature>custom-distrib</feature>
> >
> <feature>custom-distrib-services</feature>
> >
> <feature>custom-distrib-rest</feature>
> >                                     </installedFeatures>
> >                                     <bootFeatures>
> >                                         <feature>wrapper</feature>
> >                                         <feature>wrap</feature>
> >
> <feature>aries-blueprint</feature>
> >                                         <feature>shell</feature>
> >                                         <feature>shell-compat</feature>
> >                                         <feature>feature</feature>
> >                                         <feature>jaas</feature>
> >                                         <feature>ssh</feature>
> >                                         <feature>management</feature>
> >                                         <feature>bundle</feature>
> >                                         <feature>config</feature>
> >                                         <feature>deployer</feature>
> >                                         <feature>diagnostic</feature>
> >                                         <feature>instance</feature>
> >                                         <feature>kar</feature>
> >                                         <feature>log</feature>
> >                                         <feature>package</feature>
> >                                         <feature>service</feature>
> >                                         <feature>system</feature>
> >                                         <feature>eventadmin</feature>
> >                                         <feature>scr</feature>
> >
> >                                         <feature>jdbc</feature>
> >                                         <feature>jndi</feature>
> >                                         <feature>transaction</feature>
> >                                         <feature>war</feature>
> >
> >                                         <feature>cxf</feature>
> >                                         <feature>cxf-jaxrs</feature>
> >
> >                 <feature>cxf-rs-description-swagger2</feature>
> >
> >
> >                                         <feature>pax-jdbc</feature>
> >
> <feature>pax-jdbc-config</feature>
> >
> <feature>pax-jdbc-pool-hikaricp</feature>
> >
> <feature>pax-jdbc-pool-aries</feature>
> >
> <feature>pax-jdbc-postgresql</feature>
> >
> >                                          <feature>cellar</feature>
> >                                     </bootFeatures>
> >                                     <libraries>
> >
> >
>  <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
> >
> >
>  <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
> >                                     </libraries>
> >                                     <javase>1.8</javase>
> >                                 </configuration>
> >                             </plugin>
> >                         </plugins>
> >                         <pluginManagement>
> >                             <plugins>
> >                                 <!--This plugin's configuration is used
> to store
> >                 Eclipse m2e settings
> >                                     only. It has no influence on the
> Maven build
> >                 itself. -->
> >                                 <plugin>
> >                                     <groupId>org.eclipse.m2e</groupId>
> >
> <artifactId>lifecycle-mapping</artifactId>
> >                                     <version>1.0.0</version>
> >                                     <configuration>
> >                                         <lifecycleMappingMetadata>
> >                                             <pluginExecutions>
> >                                                 <pluginExecution>
> >
> <pluginExecutionFilter>
> >                                                         <groupId>
> >
> org.apache.karaf.tooling
> >                                                         </groupId>
> >                                                         <artifactId>
> >
> karaf-maven-plugin
> >                                                         </artifactId>
> >                                                         <versionRange>
> >                                                             [4.1.0,)
> >                                                         </versionRange>
> >                                                         <goals>
> >
> <goal>assembly</goal>
> >                                                         </goals>
> >
> </pluginExecutionFilter>
> >                                                     <action>
> >                                                         <ignore></ignore>
> >                                                     </action>
> >                                                 </pluginExecution>
> >                                             </pluginExecutions>
> >                                         </lifecycleMappingMetadata>
> >                                     </configuration>
> >                                 </plugin>
> >                             </plugins>
> >                         </pluginManagement>
> >                     </build>
> >
> >
> >                 Le 17/04/2018 à 10:30, nino martinez wael a écrit :
> >>                 Yes, I want to include at least first level
> dependencies for
> >>                 my kar / application.. But we need to be able todo an
> offline
> >>                 installation. With released applications.
> >>
> >>                 On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon
> >>                 <francois.papon@openobject.fr
> >>                 <ma...@openobject.fr>> wrote:
> >>
> >>                     Hi,
> >>
> >>                     You want to include your repo into a kar ?
> >>
> >>                     François
> >>
> >>
> >>                     Le 13/04/2018 à 16:50, nino martinez wael a écrit :
> >>>                     I have this that does what I want.. BUT I think
> it's a
> >>>                     hardcore hack. Is there no way to make a packaged
> kar
> >>>                     containing a repo like below, using the resources
> >>>                     parameter seems to be a hack?
> >>>
> >>>                     <plugin>
> >>>                         <groupId>org.apache.karaf.tooling</groupId>
> >>>                         <artifactId>karaf-maven-plugin</artifactId>
> >>>                         <extensions>true</extensions>
> >>>                         <version>${karaf.version}</version>
> >>>                         <executions>
> >>>                             <execution>
> >>>                                 <id>features-add-to-repo</id>
> >>>                                 <goals>
> >>>
>  <goal>features-add-to-repository</goal>
> >>>                                 </goals>
> >>>                                 <configuration>
> >>>                                     <descriptors>
> >>>
>  <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
> >>>
>  <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
> >>>                                     </descriptors>
> >>>                                     <features>
> >>>                                         <feature>ccadmin</feature>
> >>>                                     </features>
> >>>
>  <repository>${project.build.directory}/classes/repository</repository>
> >>>                                 </configuration>
> >>>                             </execution>
> >>>                             <execution>
> >>>                                 <id>kar</id>
> >>>                                 <goals>
> >>>                                     <goal>kar</goal>
> >>>                                 </goals>
> >>>                             </execution>
> >>>                         </executions>
> >>>                     </plugin>
> >>>
> >>
> >>
> >>
> >>
> >>                 --
> >>                 Best regards / Med venlig hilsen
> >>                 Nino Martinez
> >
> >
> >
> >
> >             --
> >             Best regards / Med venlig hilsen
> >             Nino Martinez
> >
> >
> >
> >
> >         --
> >         Best regards / Med venlig hilsen
> >         Nino Martinez
> >
> >
> >
> >
> >     --
> >     Best regards / Med venlig hilsen
> >     Nino Martinez
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Martin Nielsen <mn...@gmail.com>.
Hello everyone
I am facing a similar issue, did you figure this out?

-Martin

On Wed, May 16, 2018 at 6:06 PM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> Did you get a chance to look at this?
>
> On 3 May 2018 20:23, "Jean-Baptiste Onofré" <jb...@nanthrax.net> wrote:
>
> Hi Nino,
>
> As I'm now back from vacation, I gonna take a look.
>
> Sorry for the delay.
>
> Regards
> JB
>
>
> On 05/03/2018 08:19 PM, nino martinez wael wrote:
> > Any chance someone has an idea?
> >
> > On Wed, 18 Apr 2018, 08:02 nino martinez wael, <
> nino.martinez.wael@gmail.com
> > <ma...@gmail.com>> wrote:
> >
> >     Actually if I read this part, it does seem that the kar goal should
> do what
> >     I want. But I am missing the part where the kar plugin add the
> bundles to
> >     the kar repo..
> >
> >     https://github.com/apache/karaf/blob/master/manual/src/
> main/asciidoc/user-guide/kar.adoc
> >
> >
> >             Maven
> >
> >     Apache Karaf provides a Maven plugin: |karaf-maven-plugin|.
> >
> >     The Apache Karaf Maven plugin provides the |kar| goal.
> >
> >     The |kar| goal does: . Reads all features specified in the features
> XML. .
> >     For each feature described in the features XML, the goal resolves the
> >     bundles described in the feature. . The goal finally packages the
> features
> >     XML, *_/and the resolved bundles in a zip file./_*
>
> >
> >     For instance, the following Maven POM create |my-kar.kar|
> >
> >     For instance, you can use the following POM to create a kar:
> >
> >
> >
> >     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael
> >     <nino.martinez.wael@gmail.com <ma...@gmail.com>>
> wrote:
> >
> >         if I check the documentation the spring kar "example" are pretty
> much
> >         what we want todo..
> >
> >         https://karaf.apache.org/manual/latest/kar
> >
> >         On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael
> >         <nino.martinez.wael@gmail.com <mailto:nino.martinez.wael@
> gmail.com>> wrote:
> >
> >             Yes but, the problem arises when we want to mix our products
> but
> >             only want / just need one karaf instance.. Plus each release
> does
> >             actually require a significant amount of space on our
> artifact
> >             servers.. around 150mb per release / snapshot.. Using the kar
> >             approach and one common custom karaf for our products
> lightents this
> >             a lot.
> >
> >             So today we are doing one karaf assembly per project but
> want to
> >             move away from it.
> >
> >             -regards Nino
> >
> >             On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon
> >             <francois.papon@openobject.fr <mailto:francois.papon@
> openobject.fr>>
>
> >             wrote:
> >
> >                 Have you tried to create a custom distribution of Karaf
> ? It's
> >                 great to use in offline environment.
> >
> >                 Here an example of pom assembly :
> >
> >                 -- <?xml version="1.0" encoding="UTF-8"?>
> >                 <project xmlns="http://maven.apache.org/POM/4.0.0"
> >                 <http://maven.apache.org/POM/4.0.0>
> >                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >                 <http://www.w3.org/2001/XMLSchema-instance>
> >                     xsi:schemaLocation="http://
> maven.apache.org/POM/4.0.0
> >                 http://maven.apache.org/xsd/maven-4.0.0.xsd"
> >                 <http://maven.apache.org/POM/
> 4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>>
>
> >
> >                     <modelVersion>4.0.0</modelVersion>
> >
> >                     <parent>
> >                         <groupId>org.mycustom</groupId>
> >                         <artifactId>distrib</artifactId>
> >                         <version>1.0.0-SNAPSHOT</version>
> >                         <relativePath>../pom.xml</relativePath>
> >                     </parent>
> >
> >                     <artifactId>org.mycustom.karaf.assembly</artifactId>
> >                     <packaging>karaf-assembly</packaging>
> >
> >                     <name>Mycustom :: Karaf Distribution ::
> Assembly</name>
> >                     <description>Karaf Custom distribution
> assembly</description>
> >
> >                     <dependencies>
> >                         <dependency>
> >                             <groupId>org.apache.karaf.features</groupId>
> >                             <artifactId>framework</artifactId>
> >                             <version>${karaf.version}</version>
> >                             <type>kar</type>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>org.apache.karaf.features</groupId>
> >                             <artifactId>enterprise</artifactId>
> >                             <version>${karaf.version}</version>
> >                             <classifier>features</classifier>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>org.apache.cxf.karaf</groupId>
> >                             <artifactId>apache-cxf</artifactId>
> >                             <classifier>features</classifier>
> >                             <version>${cxf-core.version}</version>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>org.ops4j.pax.jdbc</groupId>
> >                             <artifactId>pax-jdbc-features</artifactId>
> >                             <classifier>features</classifier>
> >                             <version>${pax-jdbc.version}</version>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>org.apache.karaf.cellar</groupId>
> >                             <artifactId>apache-karaf-cellar</artifactId>
> >                             <classifier>features</classifier>
> >                             <version>${karaf-cellar.version}</version>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                         <dependency>
> >                             <groupId>io.oxsoftware.kastle</groupId>
> >                             <artifactId>io.oxsoftware.
> kastle.features</artifactId>
> >                             <classifier>features</classifier>
> >                             <version>${project.parent.version}</version>
> >                             <type>xml</type>
> >                             <scope>runtime</scope>
> >                         </dependency>
> >
> >                     </dependencies>
> >
> >                     <build>
> >                         <!-- if you want to include resources in the
> >                 distribution -->
> >                         <resources>
> >                             <resource>
> >                                 <directory>src/main/resources<
> /directory>
> >                                 <filtering>false</filtering>
> >                                 <includes>
> >                                     <include>**/*</include>
> >                                 </includes>
> >                             </resource>
> >                             <resource>
> >                                 <directory>src/main/filtered-
> resources</directory>
> >                                 <filtering>true</filtering>
> >                                 <includes>
> >                                     <include>**/*</include>
> >                                 </includes>
> >                             </resource>
> >                         </resources>
> >
> >                         <plugins>
> >                             <!-- if you want to include resources in the
> >                 distribution -->
> >                             <plugin>
> >                                 <groupId>org.apache.maven.
> plugins</groupId>
> >                                 <artifactId>maven-resources-
> plugin</artifactId>
> >                                 <version>3.0.2</version>
> >                                 <executions>
> >                                     <execution>
> >                                         <id>process-resources</id>
> >                                         <goals>
> >                                             <goal>resources</goal>
> >                                         </goals>
> >                                     </execution>
> >                                 </executions>
> >                             </plugin>
> >                             <plugin>
> >                                 <groupId>org.apache.karaf.
> tooling</groupId>
> >                                 <artifactId>karaf-maven-
> plugin</artifactId>
> >                                 <version>${karaf.version}</version>
> >                                 <extensions>true</extensions>
> >                                 <configuration>
> >                                     <installedFeatures>
> >                                         <feature>custom-distrib</
> feature>
> >                                         <feature>custom-distrib-
> services</feature>
> >                                         <feature>custom-distrib-rest</
> feature>
> >                                     </installedFeatures>
> >                                     <bootFeatures>
> >                                         <feature>wrapper</feature>
> >                                         <feature>wrap</feature>
> >                                         <feature>aries-blueprint</
> feature>
> >                                         <feature>shell</feature>
> >                                         <feature>shell-compat</feature>
> >                                         <feature>feature</feature>
> >                                         <feature>jaas</feature>
> >                                         <feature>ssh</feature>
> >                                         <feature>management</feature>
> >                                         <feature>bundle</feature>
> >                                         <feature>config</feature>
> >                                         <feature>deployer</feature>
> >                                         <feature>diagnostic</feature>
> >                                         <feature>instance</feature>
> >                                         <feature>kar</feature>
> >                                         <feature>log</feature>
> >                                         <feature>package</feature>
> >                                         <feature>service</feature>
> >                                         <feature>system</feature>
> >                                         <feature>eventadmin</feature>
> >                                         <feature>scr</feature>
> >
> >                                         <feature>jdbc</feature>
> >                                         <feature>jndi</feature>
> >                                         <feature>transaction</feature>
> >                                         <feature>war</feature>
> >
> >                                         <feature>cxf</feature>
> >                                         <feature>cxf-jaxrs</feature>
> >
> >                 <feature>cxf-rs-description-swagger2</feature>
> >
> >
> >                                         <feature>pax-jdbc</feature>
> >                                         <feature>pax-jdbc-config</
> feature>
> >                                         <feature>pax-jdbc-pool-
> hikaricp</feature>
> >                                         <feature>pax-jdbc-pool-aries</
> feature>
> >                                         <feature>pax-jdbc-postgresql</
> feature>
> >
> >                                          <feature>cellar</feature>
> >                                     </bootFeatures>
> >                                     <libraries>
> >
> >                 <library>mvn:org.apache.servicemix.specs/org.apache.
> servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.
> version};type:=endorsed;export:=true</library>
> >
> >                 <library>mvn:org.apache.servicemix.specs/org.apache.
> servicemix.specs.json-api-1.1/${servicemix.specs.json.
> version};type:=endorsed;export:=true</library>
> >                                     </libraries>
> >                                     <javase>1.8</javase>
> >                                 </configuration>
> >                             </plugin>
> >                         </plugins>
> >                         <pluginManagement>
> >                             <plugins>
> >                                 <!--This plugin's configuration is used
> to store
> >                 Eclipse m2e settings
> >                                     only. It has no influence on the
> Maven build
> >                 itself. -->
> >                                 <plugin>
> >                                     <groupId>org.eclipse.m2e</groupId>
> >                                     <artifactId>lifecycle-mapping<
> /artifactId>
> >                                     <version>1.0.0</version>
> >                                     <configuration>
> >                                         <lifecycleMappingMetadata>
> >                                             <pluginExecutions>
> >                                                 <pluginExecution>
> >
> <pluginExecutionFilter>
> >                                                         <groupId>
> >
> org.apache.karaf.tooling
> >                                                         </groupId>
> >                                                         <artifactId>
> >
> karaf-maven-plugin
> >                                                         </artifactId>
> >                                                         <versionRange>
> >                                                             [4.1.0,)
> >                                                         </versionRange>
> >                                                         <goals>
> >
> <goal>assembly</goal>
> >                                                         </goals>
> >
> </pluginExecutionFilter>
> >                                                     <action>
> >                                                         <ignore></ignore>
> >                                                     </action>
> >                                                 </pluginExecution>
> >                                             </pluginExecutions>
> >                                         </lifecycleMappingMetadata>
> >                                     </configuration>
> >                                 </plugin>
> >                             </plugins>
> >                         </pluginManagement>
> >                     </build>
> >
> >
> >                 Le 17/04/2018 à 10:30, nino martinez wael a écrit :
> >>                 Yes, I want to include at least first level
> dependencies for
> >>                 my kar / application.. But we need to be able todo an
> offline
> >>                 installation. With released applications.
> >>
> >>                 On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon
> >>                 <francois.papon@openobject.fr
> >>                 <ma...@openobject.fr>> wrote:
> >>
> >>                     Hi,
> >>
> >>                     You want to include your repo into a kar ?
> >>
> >>                     François
> >>
> >>
> >>                     Le 13/04/2018 à 16:50, nino martinez wael a écrit :
> >>>                     I have this that does what I want.. BUT I think
> it's a
> >>>                     hardcore hack. Is there no way to make a packaged
> kar
> >>>                     containing a repo like below, using the resources
> >>>                     parameter seems to be a hack?
> >>>
> >>>                     <plugin>
> >>>                         <groupId>org.apache.karaf.tooling</groupId>
> >>>                         <artifactId>karaf-maven-plugin</artifactId>
> >>>                         <extensions>true</extensions>
> >>>                         <version>${karaf.version}</version>
> >>>                         <executions>
> >>>                             <execution>
> >>>                                 <id>features-add-to-repo</id>
> >>>                                 <goals>
> >>>                                     <goal>features-add-to-
> repository</goal>
> >>>                                 </goals>
> >>>                                 <configuration>
> >>>                                     <descriptors>
> >>>                                         <descriptor>mvn:org.apache.
> karaf.features/standard/4.2.0/xml/features</descriptor>
> >>>                                         <descriptor>mvn:com.
> netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/
> xml/features</descriptor>
> >>>                                     </descriptors>
> >>>                                     <features>
> >>>                                         <feature>ccadmin</feature>
> >>>                                     </features>
> >>>                                     <repository>${project.build.
> directory}/classes/repository</repository>
> >>>                                 </configuration>
> >>>                             </execution>
> >>>                             <execution>
> >>>                                 <id>kar</id>
> >>>                                 <goals>
> >>>                                     <goal>kar</goal>
> >>>                                 </goals>
> >>>                             </execution>
> >>>                         </executions>
> >>>                     </plugin>
> >>>
> >>
> >>
> >>
> >>
> >>                 --
> >>                 Best regards / Med venlig hilsen
> >>                 Nino Martinez
> >
> >
> >
> >
> >             --
> >             Best regards / Med venlig hilsen
> >             Nino Martinez
> >
> >
> >
> >
> >         --
> >         Best regards / Med venlig hilsen
> >         Nino Martinez
> >
> >
> >
> >
> >     --
> >     Best regards / Med venlig hilsen
> >     Nino Martinez
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
Did you get a chance to look at this?

On 3 May 2018 20:23, "Jean-Baptiste Onofré" <jb...@nanthrax.net> wrote:

Hi Nino,

As I'm now back from vacation, I gonna take a look.

Sorry for the delay.

Regards
JB


On 05/03/2018 08:19 PM, nino martinez wael wrote:
> Any chance someone has an idea?
>
> On Wed, 18 Apr 2018, 08:02 nino martinez wael, <
nino.martinez.wael@gmail.com
> <ma...@gmail.com>> wrote:
>
>     Actually if I read this part, it does seem that the kar goal should
do what
>     I want. But I am missing the part where the kar plugin add the
bundles to
>     the kar repo..
>
>
https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
>
>
>             Maven
>
>     Apache Karaf provides a Maven plugin: |karaf-maven-plugin|.
>
>     The Apache Karaf Maven plugin provides the |kar| goal.
>
>     The |kar| goal does: . Reads all features specified in the features
XML. .
>     For each feature described in the features XML, the goal resolves the
>     bundles described in the feature. . The goal finally packages the
features
>     XML, *_/and the resolved bundles in a zip file./_*

>
>     For instance, the following Maven POM create |my-kar.kar|
>
>     For instance, you can use the following POM to create a kar:
>
>
>
>     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael
>     <nino.martinez.wael@gmail.com <ma...@gmail.com>>
wrote:
>
>         if I check the documentation the spring kar "example" are pretty
much
>         what we want todo..
>
>         https://karaf.apache.org/manual/latest/kar
>
>         On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael
>         <nino.martinez.wael@gmail.com <ma...@gmail.com>>
wrote:
>
>             Yes but, the problem arises when we want to mix our products
but
>             only want / just need one karaf instance.. Plus each release
does
>             actually require a significant amount of space on our artifact
>             servers.. around 150mb per release / snapshot.. Using the kar
>             approach and one common custom karaf for our products
lightents this
>             a lot.
>
>             So today we are doing one karaf assembly per project but want
to
>             move away from it.
>
>             -regards Nino
>
>             On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon
>             <francois.papon@openobject.fr <mailto:
francois.papon@openobject.fr>>

>             wrote:
>
>                 Have you tried to create a custom distribution of Karaf ?
It's
>                 great to use in offline environment.
>
>                 Here an example of pom assembly :
>
>                 -- <?xml version="1.0" encoding="UTF-8"?>
>                 <project xmlns="http://maven.apache.org/POM/4.0.0"
>                 <http://maven.apache.org/POM/4.0.0>
>                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>                 <http://www.w3.org/2001/XMLSchema-instance>
>                     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>                 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>                 <
http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd
>>

>
>                     <modelVersion>4.0.0</modelVersion>
>
>                     <parent>
>                         <groupId>org.mycustom</groupId>
>                         <artifactId>distrib</artifactId>
>                         <version>1.0.0-SNAPSHOT</version>
>                         <relativePath>../pom.xml</relativePath>
>                     </parent>
>
>                     <artifactId>org.mycustom.karaf.assembly</artifactId>
>                     <packaging>karaf-assembly</packaging>
>
>                     <name>Mycustom :: Karaf Distribution ::
Assembly</name>
>                     <description>Karaf Custom distribution
assembly</description>
>
>                     <dependencies>
>                         <dependency>
>                             <groupId>org.apache.karaf.features</groupId>
>                             <artifactId>framework</artifactId>
>                             <version>${karaf.version}</version>
>                             <type>kar</type>
>                         </dependency>
>
>                         <dependency>
>                             <groupId>org.apache.karaf.features</groupId>
>                             <artifactId>enterprise</artifactId>
>                             <version>${karaf.version}</version>
>                             <classifier>features</classifier>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
>
>                         <dependency>
>                             <groupId>org.apache.cxf.karaf</groupId>
>                             <artifactId>apache-cxf</artifactId>
>                             <classifier>features</classifier>
>                             <version>${cxf-core.version}</version>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
>
>                         <dependency>
>                             <groupId>org.ops4j.pax.jdbc</groupId>
>                             <artifactId>pax-jdbc-features</artifactId>
>                             <classifier>features</classifier>
>                             <version>${pax-jdbc.version}</version>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
>
>                         <dependency>
>                             <groupId>org.apache.karaf.cellar</groupId>
>                             <artifactId>apache-karaf-cellar</artifactId>
>                             <classifier>features</classifier>
>                             <version>${karaf-cellar.version}</version>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
>
>                         <dependency>
>                             <groupId>io.oxsoftware.kastle</groupId>
>
<artifactId>io.oxsoftware.kastle.features</artifactId>
>                             <classifier>features</classifier>
>                             <version>${project.parent.version}</version>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
>
>                     </dependencies>
>
>                     <build>
>                         <!-- if you want to include resources in the
>                 distribution -->
>                         <resources>
>                             <resource>
>                                 <directory>src/main/resources</directory>
>                                 <filtering>false</filtering>
>                                 <includes>
>                                     <include>**/*</include>
>                                 </includes>
>                             </resource>
>                             <resource>
>
<directory>src/main/filtered-resources</directory>
>                                 <filtering>true</filtering>
>                                 <includes>
>                                     <include>**/*</include>
>                                 </includes>
>                             </resource>
>                         </resources>
>
>                         <plugins>
>                             <!-- if you want to include resources in the
>                 distribution -->
>                             <plugin>
>
<groupId>org.apache.maven.plugins</groupId>
>
<artifactId>maven-resources-plugin</artifactId>
>                                 <version>3.0.2</version>
>                                 <executions>
>                                     <execution>
>                                         <id>process-resources</id>
>                                         <goals>
>                                             <goal>resources</goal>
>                                         </goals>
>                                     </execution>
>                                 </executions>
>                             </plugin>
>                             <plugin>
>
<groupId>org.apache.karaf.tooling</groupId>
>
<artifactId>karaf-maven-plugin</artifactId>
>                                 <version>${karaf.version}</version>
>                                 <extensions>true</extensions>
>                                 <configuration>
>                                     <installedFeatures>
>                                         <feature>custom-distrib</feature>
>
<feature>custom-distrib-services</feature>
>
<feature>custom-distrib-rest</feature>
>                                     </installedFeatures>
>                                     <bootFeatures>
>                                         <feature>wrapper</feature>
>                                         <feature>wrap</feature>
>                                         <feature>aries-blueprint</feature>
>                                         <feature>shell</feature>
>                                         <feature>shell-compat</feature>
>                                         <feature>feature</feature>
>                                         <feature>jaas</feature>
>                                         <feature>ssh</feature>
>                                         <feature>management</feature>
>                                         <feature>bundle</feature>
>                                         <feature>config</feature>
>                                         <feature>deployer</feature>
>                                         <feature>diagnostic</feature>
>                                         <feature>instance</feature>
>                                         <feature>kar</feature>
>                                         <feature>log</feature>
>                                         <feature>package</feature>
>                                         <feature>service</feature>
>                                         <feature>system</feature>
>                                         <feature>eventadmin</feature>
>                                         <feature>scr</feature>
>
>                                         <feature>jdbc</feature>
>                                         <feature>jndi</feature>
>                                         <feature>transaction</feature>
>                                         <feature>war</feature>
>
>                                         <feature>cxf</feature>
>                                         <feature>cxf-jaxrs</feature>
>
>                 <feature>cxf-rs-description-swagger2</feature>
>
>
>                                         <feature>pax-jdbc</feature>
>                                         <feature>pax-jdbc-config</feature>
>
<feature>pax-jdbc-pool-hikaricp</feature>
>
<feature>pax-jdbc-pool-aries</feature>
>
<feature>pax-jdbc-postgresql</feature>
>
>                                          <feature>cellar</feature>
>                                     </bootFeatures>
>                                     <libraries>
>
>
 <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>
>
 <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
>                                     </libraries>
>                                     <javase>1.8</javase>
>                                 </configuration>
>                             </plugin>
>                         </plugins>
>                         <pluginManagement>
>                             <plugins>
>                                 <!--This plugin's configuration is used
to store
>                 Eclipse m2e settings
>                                     only. It has no influence on the
Maven build
>                 itself. -->
>                                 <plugin>
>                                     <groupId>org.eclipse.m2e</groupId>
>
<artifactId>lifecycle-mapping</artifactId>
>                                     <version>1.0.0</version>
>                                     <configuration>
>                                         <lifecycleMappingMetadata>
>                                             <pluginExecutions>
>                                                 <pluginExecution>
>
<pluginExecutionFilter>
>                                                         <groupId>
>
org.apache.karaf.tooling
>                                                         </groupId>
>                                                         <artifactId>
>
karaf-maven-plugin
>                                                         </artifactId>
>                                                         <versionRange>
>                                                             [4.1.0,)
>                                                         </versionRange>
>                                                         <goals>
>
<goal>assembly</goal>
>                                                         </goals>
>
</pluginExecutionFilter>
>                                                     <action>
>                                                         <ignore></ignore>
>                                                     </action>
>                                                 </pluginExecution>
>                                             </pluginExecutions>
>                                         </lifecycleMappingMetadata>
>                                     </configuration>
>                                 </plugin>
>                             </plugins>
>                         </pluginManagement>
>                     </build>
>
>
>                 Le 17/04/2018 à 10:30, nino martinez wael a écrit :
>>                 Yes, I want to include at least first level dependencies
for
>>                 my kar / application.. But we need to be able todo an
offline
>>                 installation. With released applications.
>>
>>                 On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon
>>                 <francois.papon@openobject.fr
>>                 <ma...@openobject.fr>> wrote:
>>
>>                     Hi,
>>
>>                     You want to include your repo into a kar ?
>>
>>                     François
>>
>>
>>                     Le 13/04/2018 à 16:50, nino martinez wael a écrit :
>>>                     I have this that does what I want.. BUT I think
it's a
>>>                     hardcore hack. Is there no way to make a packaged
kar
>>>                     containing a repo like below, using the resources
>>>                     parameter seems to be a hack?
>>>
>>>                     <plugin>
>>>                         <groupId>org.apache.karaf.tooling</groupId>
>>>                         <artifactId>karaf-maven-plugin</artifactId>
>>>                         <extensions>true</extensions>
>>>                         <version>${karaf.version}</version>
>>>                         <executions>
>>>                             <execution>
>>>                                 <id>features-add-to-repo</id>
>>>                                 <goals>
>>>
 <goal>features-add-to-repository</goal>
>>>                                 </goals>
>>>                                 <configuration>
>>>                                     <descriptors>
>>>
 <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>>>
 <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>>>                                     </descriptors>
>>>                                     <features>
>>>                                         <feature>ccadmin</feature>
>>>                                     </features>
>>>
 <repository>${project.build.directory}/classes/repository</repository>
>>>                                 </configuration>
>>>                             </execution>
>>>                             <execution>
>>>                                 <id>kar</id>
>>>                                 <goals>
>>>                                     <goal>kar</goal>
>>>                                 </goals>
>>>                             </execution>
>>>                         </executions>
>>>                     </plugin>
>>>
>>
>>
>>
>>
>>                 --
>>                 Best regards / Med venlig hilsen
>>                 Nino Martinez
>
>
>
>
>             --
>             Best regards / Med venlig hilsen
>             Nino Martinez
>
>
>
>
>         --
>         Best regards / Med venlig hilsen
>         Nino Martinez
>
>
>
>
>     --
>     Best regards / Med venlig hilsen
>     Nino Martinez
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Nino,

As I'm now back from vacation, I gonna take a look.

Sorry for the delay.

Regards
JB

On 05/03/2018 08:19 PM, nino martinez wael wrote:
> Any chance someone has an idea? 
> 
> On Wed, 18 Apr 2018, 08:02 nino martinez wael, <nino.martinez.wael@gmail.com
> <ma...@gmail.com>> wrote:
> 
>     Actually if I read this part, it does seem that the kar goal should do what
>     I want. But I am missing the part where the kar plugin add the bundles to
>     the kar repo..
> 
>     https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
> 
> 
>             Maven
> 
>     Apache Karaf provides a Maven plugin: |karaf-maven-plugin|.
> 
>     The Apache Karaf Maven plugin provides the |kar| goal.
> 
>     The |kar| goal does: . Reads all features specified in the features XML. .
>     For each feature described in the features XML, the goal resolves the
>     bundles described in the feature. . The goal finally packages the features
>     XML, *_/and the resolved bundles in a zip file./_*
> 
>     For instance, the following Maven POM create |my-kar.kar|
> 
>     For instance, you can use the following POM to create a kar:
> 
> 
> 
>     On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael
>     <nino.martinez.wael@gmail.com <ma...@gmail.com>> wrote:
> 
>         if I check the documentation the spring kar "example" are pretty much
>         what we want todo..
> 
>         https://karaf.apache.org/manual/latest/kar
> 
>         On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael
>         <nino.martinez.wael@gmail.com <ma...@gmail.com>> wrote:
> 
>             Yes but, the problem arises when we want to mix our products but
>             only want / just need one karaf instance.. Plus each release does
>             actually require a significant amount of space on our artifact
>             servers.. around 150mb per release / snapshot.. Using the kar
>             approach and one common custom karaf for our products lightents this
>             a lot.
> 
>             So today we are doing one karaf assembly per project but want to
>             move away from it.
> 
>             -regards Nino
> 
>             On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon
>             <francois.papon@openobject.fr <ma...@openobject.fr>>
>             wrote:
> 
>                 Have you tried to create a custom distribution of Karaf ? It's
>                 great to use in offline environment.
> 
>                 Here an example of pom assembly :
> 
>                 -- <?xml version="1.0" encoding="UTF-8"?>
>                 <project xmlns="http://maven.apache.org/POM/4.0.0"
>                 <http://maven.apache.org/POM/4.0.0>
>                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>                 <http://www.w3.org/2001/XMLSchema-instance>
>                     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>                 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>                 <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>>
> 
>                     <modelVersion>4.0.0</modelVersion>
> 
>                     <parent>
>                         <groupId>org.mycustom</groupId>
>                         <artifactId>distrib</artifactId>
>                         <version>1.0.0-SNAPSHOT</version>
>                         <relativePath>../pom.xml</relativePath>
>                     </parent>
> 
>                     <artifactId>org.mycustom.karaf.assembly</artifactId>
>                     <packaging>karaf-assembly</packaging>
> 
>                     <name>Mycustom :: Karaf Distribution :: Assembly</name>
>                     <description>Karaf Custom distribution assembly</description>
> 
>                     <dependencies>
>                         <dependency>
>                             <groupId>org.apache.karaf.features</groupId>
>                             <artifactId>framework</artifactId>
>                             <version>${karaf.version}</version>
>                             <type>kar</type>
>                         </dependency>
> 
>                         <dependency>
>                             <groupId>org.apache.karaf.features</groupId>
>                             <artifactId>enterprise</artifactId>
>                             <version>${karaf.version}</version>
>                             <classifier>features</classifier>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
> 
>                         <dependency>
>                             <groupId>org.apache.cxf.karaf</groupId>
>                             <artifactId>apache-cxf</artifactId>
>                             <classifier>features</classifier>
>                             <version>${cxf-core.version}</version>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
> 
>                         <dependency>
>                             <groupId>org.ops4j.pax.jdbc</groupId>
>                             <artifactId>pax-jdbc-features</artifactId>
>                             <classifier>features</classifier>
>                             <version>${pax-jdbc.version}</version>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
> 
>                         <dependency>
>                             <groupId>org.apache.karaf.cellar</groupId>
>                             <artifactId>apache-karaf-cellar</artifactId>
>                             <classifier>features</classifier>
>                             <version>${karaf-cellar.version}</version>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
> 
>                         <dependency>
>                             <groupId>io.oxsoftware.kastle</groupId>
>                             <artifactId>io.oxsoftware.kastle.features</artifactId>
>                             <classifier>features</classifier>
>                             <version>${project.parent.version}</version>
>                             <type>xml</type>
>                             <scope>runtime</scope>
>                         </dependency>
> 
>                     </dependencies>
> 
>                     <build>
>                         <!-- if you want to include resources in the
>                 distribution -->
>                         <resources>
>                             <resource>
>                                 <directory>src/main/resources</directory>
>                                 <filtering>false</filtering>
>                                 <includes>
>                                     <include>**/*</include>
>                                 </includes>
>                             </resource>
>                             <resource>
>                                 <directory>src/main/filtered-resources</directory>
>                                 <filtering>true</filtering>
>                                 <includes>
>                                     <include>**/*</include>
>                                 </includes>
>                             </resource>
>                         </resources>
> 
>                         <plugins>
>                             <!-- if you want to include resources in the
>                 distribution -->
>                             <plugin>
>                                 <groupId>org.apache.maven.plugins</groupId>
>                                 <artifactId>maven-resources-plugin</artifactId>
>                                 <version>3.0.2</version>
>                                 <executions>
>                                     <execution>
>                                         <id>process-resources</id>
>                                         <goals>
>                                             <goal>resources</goal>
>                                         </goals>
>                                     </execution>
>                                 </executions>
>                             </plugin>
>                             <plugin>
>                                 <groupId>org.apache.karaf.tooling</groupId>
>                                 <artifactId>karaf-maven-plugin</artifactId>
>                                 <version>${karaf.version}</version>
>                                 <extensions>true</extensions>
>                                 <configuration>
>                                     <installedFeatures>
>                                         <feature>custom-distrib</feature>
>                                         <feature>custom-distrib-services</feature>
>                                         <feature>custom-distrib-rest</feature>
>                                     </installedFeatures>
>                                     <bootFeatures>
>                                         <feature>wrapper</feature>
>                                         <feature>wrap</feature>
>                                         <feature>aries-blueprint</feature>
>                                         <feature>shell</feature>
>                                         <feature>shell-compat</feature>
>                                         <feature>feature</feature>
>                                         <feature>jaas</feature>
>                                         <feature>ssh</feature>
>                                         <feature>management</feature>
>                                         <feature>bundle</feature>
>                                         <feature>config</feature>
>                                         <feature>deployer</feature>
>                                         <feature>diagnostic</feature>
>                                         <feature>instance</feature>
>                                         <feature>kar</feature>
>                                         <feature>log</feature>
>                                         <feature>package</feature>
>                                         <feature>service</feature>
>                                         <feature>system</feature>
>                                         <feature>eventadmin</feature>
>                                         <feature>scr</feature>
> 
>                                         <feature>jdbc</feature>
>                                         <feature>jndi</feature>
>                                         <feature>transaction</feature>
>                                         <feature>war</feature>
> 
>                                         <feature>cxf</feature>
>                                         <feature>cxf-jaxrs</feature>
>                                        
>                 <feature>cxf-rs-description-swagger2</feature>
>                                        
> 
>                                         <feature>pax-jdbc</feature>
>                                         <feature>pax-jdbc-config</feature>
>                                         <feature>pax-jdbc-pool-hikaricp</feature>
>                                         <feature>pax-jdbc-pool-aries</feature>
>                                         <feature>pax-jdbc-postgresql</feature>
> 
>                                          <feature>cellar</feature>
>                                     </bootFeatures>
>                                     <libraries>
>                                        
>                 <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>                                        
>                 <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
>                                     </libraries>
>                                     <javase>1.8</javase>
>                                 </configuration>
>                             </plugin>
>                         </plugins>
>                         <pluginManagement>
>                             <plugins>
>                                 <!--This plugin's configuration is used to store
>                 Eclipse m2e settings
>                                     only. It has no influence on the Maven build
>                 itself. -->
>                                 <plugin>
>                                     <groupId>org.eclipse.m2e</groupId>
>                                     <artifactId>lifecycle-mapping</artifactId>
>                                     <version>1.0.0</version>
>                                     <configuration>
>                                         <lifecycleMappingMetadata>
>                                             <pluginExecutions>
>                                                 <pluginExecution>
>                                                     <pluginExecutionFilter>
>                                                         <groupId>
>                                                             org.apache.karaf.tooling
>                                                         </groupId>
>                                                         <artifactId>
>                                                             karaf-maven-plugin
>                                                         </artifactId>
>                                                         <versionRange>
>                                                             [4.1.0,)
>                                                         </versionRange>
>                                                         <goals>
>                                                             <goal>assembly</goal>
>                                                         </goals>
>                                                     </pluginExecutionFilter>
>                                                     <action>
>                                                         <ignore></ignore>
>                                                     </action>
>                                                 </pluginExecution>
>                                             </pluginExecutions>
>                                         </lifecycleMappingMetadata>
>                                     </configuration>
>                                 </plugin>
>                             </plugins>
>                         </pluginManagement>
>                     </build>
> 
> 
>                 Le 17/04/2018 à 10:30, nino martinez wael a écrit :
>>                 Yes, I want to include at least first level dependencies for
>>                 my kar / application.. But we need to be able todo an offline
>>                 installation. With released applications.
>>
>>                 On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon
>>                 <francois.papon@openobject.fr
>>                 <ma...@openobject.fr>> wrote:
>>
>>                     Hi,
>>
>>                     You want to include your repo into a kar ?
>>
>>                     François
>>
>>
>>                     Le 13/04/2018 à 16:50, nino martinez wael a écrit :
>>>                     I have this that does what I want.. BUT I think it's a
>>>                     hardcore hack. Is there no way to make a packaged kar
>>>                     containing a repo like below, using the resources
>>>                     parameter seems to be a hack?
>>>
>>>                     <plugin>
>>>                         <groupId>org.apache.karaf.tooling</groupId>
>>>                         <artifactId>karaf-maven-plugin</artifactId>
>>>                         <extensions>true</extensions>
>>>                         <version>${karaf.version}</version>
>>>                         <executions>
>>>                             <execution>
>>>                                 <id>features-add-to-repo</id>
>>>                                 <goals>
>>>                                     <goal>features-add-to-repository</goal>
>>>                                 </goals>
>>>                                 <configuration>
>>>                                     <descriptors>
>>>                                         <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>>>                                         <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>>>                                     </descriptors>
>>>                                     <features>
>>>                                         <feature>ccadmin</feature>
>>>                                     </features>
>>>                                     <repository>${project.build.directory}/classes/repository</repository>
>>>                                 </configuration>
>>>                             </execution>
>>>                             <execution>
>>>                                 <id>kar</id>
>>>                                 <goals>
>>>                                     <goal>kar</goal>
>>>                                 </goals>
>>>                             </execution>
>>>                         </executions>
>>>                     </plugin>
>>>
>>
>>
>>
>>
>>                 -- 
>>                 Best regards / Med venlig hilsen 
>>                 Nino Martinez
> 
> 
> 
> 
>             -- 
>             Best regards / Med venlig hilsen 
>             Nino Martinez
> 
> 
> 
> 
>         -- 
>         Best regards / Med venlig hilsen 
>         Nino Martinez
> 
> 
> 
> 
>     -- 
>     Best regards / Med venlig hilsen 
>     Nino Martinez
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
Any chance someone has an idea?

On Wed, 18 Apr 2018, 08:02 nino martinez wael, <ni...@gmail.com>
wrote:

> Actually if I read this part, it does seem that the kar goal should do
> what I want. But I am missing the part where the kar plugin add the bundles
> to the kar repo..
>
>
> https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
> Maven
>
> Apache Karaf provides a Maven plugin: karaf-maven-plugin.
>
> The Apache Karaf Maven plugin provides the kar goal.
>
> The kar goal does: . Reads all features specified in the features XML. .
> For each feature described in the features XML, the goal resolves the
> bundles described in the feature. . The goal finally packages the features
> XML, *and the resolved bundles in a zip file.*
>
> For instance, the following Maven POM create my-kar.kar
>
> For instance, you can use the following POM to create a kar:
>
>
> On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael <
> nino.martinez.wael@gmail.com> wrote:
>
>> if I check the documentation the spring kar "example" are pretty much
>> what we want todo..
>>
>> https://karaf.apache.org/manual/latest/kar
>>
>> On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael <
>> nino.martinez.wael@gmail.com> wrote:
>>
>>> Yes but, the problem arises when we want to mix our products but only
>>> want / just need one karaf instance.. Plus each release does actually
>>> require a significant amount of space on our artifact servers.. around
>>> 150mb per release / snapshot.. Using the kar approach and one common custom
>>> karaf for our products lightents this a lot.
>>>
>>> So today we are doing one karaf assembly per project but want to move
>>> away from it.
>>>
>>> -regards Nino
>>>
>>> On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon <
>>> francois.papon@openobject.fr> wrote:
>>>
>>>> Have you tried to create a custom distribution of Karaf ? It's great to
>>>> use in offline environment.
>>>>
>>>> Here an example of pom assembly :
>>>>
>>>> -- <?xml version="1.0" encoding="UTF-8"?>
>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>> <http://maven.apache.org/POM/4.0.0> xmlns:xsi=
>>>> "http://www.w3.org/2001/XMLSchema-instance"
>>>> <http://www.w3.org/2001/XMLSchema-instance>
>>>>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>> http://maven.apache.org/xsd/maven-4.0.0.xsd"
>>>> <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
>>>> >
>>>>
>>>>     <modelVersion>4.0.0</modelVersion>
>>>>
>>>>     <parent>
>>>>         <groupId>org.mycustom</groupId>
>>>>         <artifactId>distrib</artifactId>
>>>>         <version>1.0.0-SNAPSHOT</version>
>>>>         <relativePath>../pom.xml</relativePath>
>>>>     </parent>
>>>>
>>>>     <artifactId>org.mycustom.karaf.assembly</artifactId>
>>>>     <packaging>karaf-assembly</packaging>
>>>>
>>>>     <name>Mycustom :: Karaf Distribution :: Assembly</name>
>>>>     <description>Karaf Custom distribution assembly</description>
>>>>
>>>>     <dependencies>
>>>>         <dependency>
>>>>             <groupId>org.apache.karaf.features</groupId>
>>>>             <artifactId>framework</artifactId>
>>>>             <version>${karaf.version}</version>
>>>>             <type>kar</type>
>>>>         </dependency>
>>>>
>>>>         <dependency>
>>>>             <groupId>org.apache.karaf.features</groupId>
>>>>             <artifactId>enterprise</artifactId>
>>>>             <version>${karaf.version}</version>
>>>>             <classifier>features</classifier>
>>>>             <type>xml</type>
>>>>             <scope>runtime</scope>
>>>>         </dependency>
>>>>
>>>>         <dependency>
>>>>             <groupId>org.apache.cxf.karaf</groupId>
>>>>             <artifactId>apache-cxf</artifactId>
>>>>             <classifier>features</classifier>
>>>>             <version>${cxf-core.version}</version>
>>>>             <type>xml</type>
>>>>             <scope>runtime</scope>
>>>>         </dependency>
>>>>
>>>>         <dependency>
>>>>             <groupId>org.ops4j.pax.jdbc</groupId>
>>>>             <artifactId>pax-jdbc-features</artifactId>
>>>>             <classifier>features</classifier>
>>>>             <version>${pax-jdbc.version}</version>
>>>>             <type>xml</type>
>>>>             <scope>runtime</scope>
>>>>         </dependency>
>>>>
>>>>         <dependency>
>>>>             <groupId>org.apache.karaf.cellar</groupId>
>>>>             <artifactId>apache-karaf-cellar</artifactId>
>>>>             <classifier>features</classifier>
>>>>             <version>${karaf-cellar.version}</version>
>>>>             <type>xml</type>
>>>>             <scope>runtime</scope>
>>>>         </dependency>
>>>>
>>>>         <dependency>
>>>>             <groupId>io.oxsoftware.kastle</groupId>
>>>>             <artifactId>io.oxsoftware.kastle.features</artifactId>
>>>>             <classifier>features</classifier>
>>>>             <version>${project.parent.version}</version>
>>>>             <type>xml</type>
>>>>             <scope>runtime</scope>
>>>>         </dependency>
>>>>
>>>>     </dependencies>
>>>>
>>>>     <build>
>>>>         <!-- if you want to include resources in the distribution -->
>>>>         <resources>
>>>>             <resource>
>>>>                 <directory>src/main/resources</directory>
>>>>                 <filtering>false</filtering>
>>>>                 <includes>
>>>>                     <include>**/*</include>
>>>>                 </includes>
>>>>             </resource>
>>>>             <resource>
>>>>                 <directory>src/main/filtered-resources</directory>
>>>>                 <filtering>true</filtering>
>>>>                 <includes>
>>>>                     <include>**/*</include>
>>>>                 </includes>
>>>>             </resource>
>>>>         </resources>
>>>>
>>>>         <plugins>
>>>>             <!-- if you want to include resources in the distribution
>>>> -->
>>>>             <plugin>
>>>>                 <groupId>org.apache.maven.plugins</groupId>
>>>>                 <artifactId>maven-resources-plugin</artifactId>
>>>>                 <version>3.0.2</version>
>>>>                 <executions>
>>>>                     <execution>
>>>>                         <id>process-resources</id>
>>>>                         <goals>
>>>>                             <goal>resources</goal>
>>>>                         </goals>
>>>>                     </execution>
>>>>                 </executions>
>>>>             </plugin>
>>>>             <plugin>
>>>>                 <groupId>org.apache.karaf.tooling</groupId>
>>>>                 <artifactId>karaf-maven-plugin</artifactId>
>>>>                 <version>${karaf.version}</version>
>>>>                 <extensions>true</extensions>
>>>>                 <configuration>
>>>>                     <installedFeatures>
>>>>                         <feature>custom-distrib</feature>
>>>>                         <feature>custom-distrib-services</feature>
>>>>                         <feature>custom-distrib-rest</feature>
>>>>                     </installedFeatures>
>>>>                     <bootFeatures>
>>>>                         <feature>wrapper</feature>
>>>>                         <feature>wrap</feature>
>>>>                         <feature>aries-blueprint</feature>
>>>>                         <feature>shell</feature>
>>>>                         <feature>shell-compat</feature>
>>>>                         <feature>feature</feature>
>>>>                         <feature>jaas</feature>
>>>>                         <feature>ssh</feature>
>>>>                         <feature>management</feature>
>>>>                         <feature>bundle</feature>
>>>>                         <feature>config</feature>
>>>>                         <feature>deployer</feature>
>>>>                         <feature>diagnostic</feature>
>>>>                         <feature>instance</feature>
>>>>                         <feature>kar</feature>
>>>>                         <feature>log</feature>
>>>>                         <feature>package</feature>
>>>>                         <feature>service</feature>
>>>>                         <feature>system</feature>
>>>>                         <feature>eventadmin</feature>
>>>>                         <feature>scr</feature>
>>>>
>>>>                         <feature>jdbc</feature>
>>>>                         <feature>jndi</feature>
>>>>                         <feature>transaction</feature>
>>>>                         <feature>war</feature>
>>>>
>>>>                         <feature>cxf</feature>
>>>>                         <feature>cxf-jaxrs</feature>
>>>>                         <feature>cxf-rs-description-swagger2</feature>
>>>>
>>>>
>>>>                         <feature>pax-jdbc</feature>
>>>>                         <feature>pax-jdbc-config</feature>
>>>>                         <feature>pax-jdbc-pool-hikaricp</feature>
>>>>                         <feature>pax-jdbc-pool-aries</feature>
>>>>                         <feature>pax-jdbc-postgresql</feature>
>>>>
>>>>                          <feature>cellar</feature>
>>>>                     </bootFeatures>
>>>>                     <libraries>
>>>>
>>>> <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>>>>
>>>> <library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
>>>>                     </libraries>
>>>>                     <javase>1.8</javase>
>>>>                 </configuration>
>>>>             </plugin>
>>>>         </plugins>
>>>>         <pluginManagement>
>>>>             <plugins>
>>>>                 <!--This plugin's configuration is used to store
>>>> Eclipse m2e settings
>>>>                     only. It has no influence on the Maven build
>>>> itself. -->
>>>>                 <plugin>
>>>>                     <groupId>org.eclipse.m2e</groupId>
>>>>                     <artifactId>lifecycle-mapping</artifactId>
>>>>                     <version>1.0.0</version>
>>>>                     <configuration>
>>>>                         <lifecycleMappingMetadata>
>>>>                             <pluginExecutions>
>>>>                                 <pluginExecution>
>>>>                                     <pluginExecutionFilter>
>>>>                                         <groupId>
>>>>                                             org.apache.karaf.tooling
>>>>                                         </groupId>
>>>>                                         <artifactId>
>>>>                                             karaf-maven-plugin
>>>>                                         </artifactId>
>>>>                                         <versionRange>
>>>>                                             [4.1.0,)
>>>>                                         </versionRange>
>>>>                                         <goals>
>>>>                                             <goal>assembly</goal>
>>>>                                         </goals>
>>>>                                     </pluginExecutionFilter>
>>>>                                     <action>
>>>>                                         <ignore></ignore>
>>>>                                     </action>
>>>>                                 </pluginExecution>
>>>>                             </pluginExecutions>
>>>>                         </lifecycleMappingMetadata>
>>>>                     </configuration>
>>>>                 </plugin>
>>>>             </plugins>
>>>>         </pluginManagement>
>>>>     </build>
>>>>
>>>> Le 17/04/2018 à 10:30, nino martinez wael a écrit :
>>>>
>>>> Yes, I want to include at least first level dependencies for my kar /
>>>> application.. But we need to be able todo an offline installation. With
>>>> released applications.
>>>>
>>>> On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon <
>>>> francois.papon@openobject.fr> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> You want to include your repo into a kar ?
>>>>>
>>>>> François
>>>>>
>>>>> Le 13/04/2018 à 16:50, nino martinez wael a écrit :
>>>>>
>>>>> I have this that does what I want.. BUT I think it's a hardcore hack.
>>>>> Is there no way to make a packaged kar containing a repo like below, using
>>>>> the resources parameter seems to be a hack?
>>>>>
>>>>> <plugin>
>>>>>     <groupId>org.apache.karaf.tooling</groupId>
>>>>>     <artifactId>karaf-maven-plugin</artifactId>
>>>>>     <extensions>true</extensions>
>>>>>     <version>${karaf.version}</version>
>>>>>     <executions>
>>>>>         <execution>
>>>>>             <id>features-add-to-repo</id>
>>>>>             <goals>
>>>>>                 <goal>features-add-to-repository</goal>
>>>>>             </goals>
>>>>>             <configuration>
>>>>>                 <descriptors>
>>>>>                     <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>>>>>                     <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>>>>>                 </descriptors>
>>>>>                 <features>
>>>>>                     <feature>ccadmin</feature>
>>>>>                 </features>
>>>>>                 <repository>${project.build.directory}/classes/repository</repository>
>>>>>             </configuration>
>>>>>         </execution>
>>>>>         <execution>
>>>>>             <id>kar</id>
>>>>>             <goals>
>>>>>                 <goal>kar</goal>
>>>>>             </goals>
>>>>>         </execution>
>>>>>     </executions></plugin>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards / Med venlig hilsen
>>>> Nino Martinez
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
Actually if I read this part, it does seem that the kar goal should do what
I want. But I am missing the part where the kar plugin add the bundles to
the kar repo..

https://github.com/apache/karaf/blob/master/manual/src/main/asciidoc/user-guide/kar.adoc
Maven

Apache Karaf provides a Maven plugin: karaf-maven-plugin.

The Apache Karaf Maven plugin provides the kar goal.

The kar goal does: . Reads all features specified in the features XML. .
For each feature described in the features XML, the goal resolves the
bundles described in the feature. . The goal finally packages the features
XML, *and the resolved bundles in a zip file.*

For instance, the following Maven POM create my-kar.kar

For instance, you can use the following POM to create a kar:


On Wed, Apr 18, 2018 at 7:54 AM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> if I check the documentation the spring kar "example" are pretty much what
> we want todo..
>
> https://karaf.apache.org/manual/latest/kar
>
> On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael <
> nino.martinez.wael@gmail.com> wrote:
>
>> Yes but, the problem arises when we want to mix our products but only
>> want / just need one karaf instance.. Plus each release does actually
>> require a significant amount of space on our artifact servers.. around
>> 150mb per release / snapshot.. Using the kar approach and one common custom
>> karaf for our products lightents this a lot.
>>
>> So today we are doing one karaf assembly per project but want to move
>> away from it.
>>
>> -regards Nino
>>
>> On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon <
>> francois.papon@openobject.fr> wrote:
>>
>>> Have you tried to create a custom distribution of Karaf ? It's great to
>>> use in offline environment.
>>>
>>> Here an example of pom assembly :
>>>
>>> -- <?xml version="1.0" encoding="UTF-8"?>
>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>> <http://maven.apache.org/POM/4.0.0> xmlns:xsi="http://www.w3.org/2
>>> 001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance>
>>>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/xsd/maven-4.0.0.xsd"
>>> <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
>>> >
>>>
>>>     <modelVersion>4.0.0</modelVersion>
>>>
>>>     <parent>
>>>         <groupId>org.mycustom</groupId>
>>>         <artifactId>distrib</artifactId>
>>>         <version>1.0.0-SNAPSHOT</version>
>>>         <relativePath>../pom.xml</relativePath>
>>>     </parent>
>>>
>>>     <artifactId>org.mycustom.karaf.assembly</artifactId>
>>>     <packaging>karaf-assembly</packaging>
>>>
>>>     <name>Mycustom :: Karaf Distribution :: Assembly</name>
>>>     <description>Karaf Custom distribution assembly</description>
>>>
>>>     <dependencies>
>>>         <dependency>
>>>             <groupId>org.apache.karaf.features</groupId>
>>>             <artifactId>framework</artifactId>
>>>             <version>${karaf.version}</version>
>>>             <type>kar</type>
>>>         </dependency>
>>>
>>>         <dependency>
>>>             <groupId>org.apache.karaf.features</groupId>
>>>             <artifactId>enterprise</artifactId>
>>>             <version>${karaf.version}</version>
>>>             <classifier>features</classifier>
>>>             <type>xml</type>
>>>             <scope>runtime</scope>
>>>         </dependency>
>>>
>>>         <dependency>
>>>             <groupId>org.apache.cxf.karaf</groupId>
>>>             <artifactId>apache-cxf</artifactId>
>>>             <classifier>features</classifier>
>>>             <version>${cxf-core.version}</version>
>>>             <type>xml</type>
>>>             <scope>runtime</scope>
>>>         </dependency>
>>>
>>>         <dependency>
>>>             <groupId>org.ops4j.pax.jdbc</groupId>
>>>             <artifactId>pax-jdbc-features</artifactId>
>>>             <classifier>features</classifier>
>>>             <version>${pax-jdbc.version}</version>
>>>             <type>xml</type>
>>>             <scope>runtime</scope>
>>>         </dependency>
>>>
>>>         <dependency>
>>>             <groupId>org.apache.karaf.cellar</groupId>
>>>             <artifactId>apache-karaf-cellar</artifactId>
>>>             <classifier>features</classifier>
>>>             <version>${karaf-cellar.version}</version>
>>>             <type>xml</type>
>>>             <scope>runtime</scope>
>>>         </dependency>
>>>
>>>         <dependency>
>>>             <groupId>io.oxsoftware.kastle</groupId>
>>>             <artifactId>io.oxsoftware.kastle.features</artifactId>
>>>             <classifier>features</classifier>
>>>             <version>${project.parent.version}</version>
>>>             <type>xml</type>
>>>             <scope>runtime</scope>
>>>         </dependency>
>>>
>>>     </dependencies>
>>>
>>>     <build>
>>>         <!-- if you want to include resources in the distribution -->
>>>         <resources>
>>>             <resource>
>>>                 <directory>src/main/resources</directory>
>>>                 <filtering>false</filtering>
>>>                 <includes>
>>>                     <include>**/*</include>
>>>                 </includes>
>>>             </resource>
>>>             <resource>
>>>                 <directory>src/main/filtered-resources</directory>
>>>                 <filtering>true</filtering>
>>>                 <includes>
>>>                     <include>**/*</include>
>>>                 </includes>
>>>             </resource>
>>>         </resources>
>>>
>>>         <plugins>
>>>             <!-- if you want to include resources in the distribution -->
>>>             <plugin>
>>>                 <groupId>org.apache.maven.plugins</groupId>
>>>                 <artifactId>maven-resources-plugin</artifactId>
>>>                 <version>3.0.2</version>
>>>                 <executions>
>>>                     <execution>
>>>                         <id>process-resources</id>
>>>                         <goals>
>>>                             <goal>resources</goal>
>>>                         </goals>
>>>                     </execution>
>>>                 </executions>
>>>             </plugin>
>>>             <plugin>
>>>                 <groupId>org.apache.karaf.tooling</groupId>
>>>                 <artifactId>karaf-maven-plugin</artifactId>
>>>                 <version>${karaf.version}</version>
>>>                 <extensions>true</extensions>
>>>                 <configuration>
>>>                     <installedFeatures>
>>>                         <feature>custom-distrib</feature>
>>>                         <feature>custom-distrib-services</feature>
>>>                         <feature>custom-distrib-rest</feature>
>>>                     </installedFeatures>
>>>                     <bootFeatures>
>>>                         <feature>wrapper</feature>
>>>                         <feature>wrap</feature>
>>>                         <feature>aries-blueprint</feature>
>>>                         <feature>shell</feature>
>>>                         <feature>shell-compat</feature>
>>>                         <feature>feature</feature>
>>>                         <feature>jaas</feature>
>>>                         <feature>ssh</feature>
>>>                         <feature>management</feature>
>>>                         <feature>bundle</feature>
>>>                         <feature>config</feature>
>>>                         <feature>deployer</feature>
>>>                         <feature>diagnostic</feature>
>>>                         <feature>instance</feature>
>>>                         <feature>kar</feature>
>>>                         <feature>log</feature>
>>>                         <feature>package</feature>
>>>                         <feature>service</feature>
>>>                         <feature>system</feature>
>>>                         <feature>eventadmin</feature>
>>>                         <feature>scr</feature>
>>>
>>>                         <feature>jdbc</feature>
>>>                         <feature>jndi</feature>
>>>                         <feature>transaction</feature>
>>>                         <feature>war</feature>
>>>
>>>                         <feature>cxf</feature>
>>>                         <feature>cxf-jaxrs</feature>
>>>                         <feature>cxf-rs-description-swagger2</feature>
>>>
>>>
>>>                         <feature>pax-jdbc</feature>
>>>                         <feature>pax-jdbc-config</feature>
>>>                         <feature>pax-jdbc-pool-hikaricp</feature>
>>>                         <feature>pax-jdbc-pool-aries</feature>
>>>                         <feature>pax-jdbc-postgresql</feature>
>>>
>>>                          <feature>cellar</feature>
>>>                     </bootFeatures>
>>>                     <libraries>
>>>                         <library>mvn:org.apache.servic
>>> emix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servi
>>> cemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>>>                         <library>mvn:org.apache.servic
>>> emix.specs/org.apache.servicemix.specs.json-api-1.1/${servic
>>> emix.specs.json.version};type:=endorsed;export:=true</library>
>>>                     </libraries>
>>>                     <javase>1.8</javase>
>>>                 </configuration>
>>>             </plugin>
>>>         </plugins>
>>>         <pluginManagement>
>>>             <plugins>
>>>                 <!--This plugin's configuration is used to store Eclipse
>>> m2e settings
>>>                     only. It has no influence on the Maven build itself.
>>> -->
>>>                 <plugin>
>>>                     <groupId>org.eclipse.m2e</groupId>
>>>                     <artifactId>lifecycle-mapping</artifactId>
>>>                     <version>1.0.0</version>
>>>                     <configuration>
>>>                         <lifecycleMappingMetadata>
>>>                             <pluginExecutions>
>>>                                 <pluginExecution>
>>>                                     <pluginExecutionFilter>
>>>                                         <groupId>
>>>                                             org.apache.karaf.tooling
>>>                                         </groupId>
>>>                                         <artifactId>
>>>                                             karaf-maven-plugin
>>>                                         </artifactId>
>>>                                         <versionRange>
>>>                                             [4.1.0,)
>>>                                         </versionRange>
>>>                                         <goals>
>>>                                             <goal>assembly</goal>
>>>                                         </goals>
>>>                                     </pluginExecutionFilter>
>>>                                     <action>
>>>                                         <ignore></ignore>
>>>                                     </action>
>>>                                 </pluginExecution>
>>>                             </pluginExecutions>
>>>                         </lifecycleMappingMetadata>
>>>                     </configuration>
>>>                 </plugin>
>>>             </plugins>
>>>         </pluginManagement>
>>>     </build>
>>>
>>> Le 17/04/2018 à 10:30, nino martinez wael a écrit :
>>>
>>> Yes, I want to include at least first level dependencies for my kar /
>>> application.. But we need to be able todo an offline installation. With
>>> released applications.
>>>
>>> On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon <
>>> francois.papon@openobject.fr> wrote:
>>>
>>>> Hi,
>>>>
>>>> You want to include your repo into a kar ?
>>>>
>>>> François
>>>>
>>>> Le 13/04/2018 à 16:50, nino martinez wael a écrit :
>>>>
>>>> I have this that does what I want.. BUT I think it's a hardcore hack.
>>>> Is there no way to make a packaged kar containing a repo like below, using
>>>> the resources parameter seems to be a hack?
>>>>
>>>> <plugin>
>>>>     <groupId>org.apache.karaf.tooling</groupId>
>>>>     <artifactId>karaf-maven-plugin</artifactId>
>>>>     <extensions>true</extensions>
>>>>     <version>${karaf.version}</version>
>>>>     <executions>
>>>>         <execution>
>>>>             <id>features-add-to-repo</id>
>>>>             <goals>
>>>>                 <goal>features-add-to-repository</goal>
>>>>             </goals>
>>>>             <configuration>
>>>>                 <descriptors>
>>>>                     <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>>>>                     <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>>>>                 </descriptors>
>>>>                 <features>
>>>>                     <feature>ccadmin</feature>
>>>>                 </features>
>>>>                 <repository>${project.build.directory}/classes/repository</repository>
>>>>             </configuration>
>>>>         </execution>
>>>>         <execution>
>>>>             <id>kar</id>
>>>>             <goals>
>>>>                 <goal>kar</goal>
>>>>             </goals>
>>>>         </execution>
>>>>     </executions></plugin>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>>
>>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
if I check the documentation the spring kar "example" are pretty much what
we want todo..

https://karaf.apache.org/manual/latest/kar

On Wed, Apr 18, 2018 at 7:52 AM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> Yes but, the problem arises when we want to mix our products but only want
> / just need one karaf instance.. Plus each release does actually require a
> significant amount of space on our artifact servers.. around 150mb per
> release / snapshot.. Using the kar approach and one common custom karaf for
> our products lightents this a lot.
>
> So today we are doing one karaf assembly per project but want to move away
> from it.
>
> -regards Nino
>
> On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon <
> francois.papon@openobject.fr> wrote:
>
>> Have you tried to create a custom distribution of Karaf ? It's great to
>> use in offline environment.
>>
>> Here an example of pom assembly :
>>
>> -- <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> <http://maven.apache.org/POM/4.0.0> xmlns:xsi="http://www.w3.org/2
>> 001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance>
>>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd"
>> <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
>> >
>>
>>     <modelVersion>4.0.0</modelVersion>
>>
>>     <parent>
>>         <groupId>org.mycustom</groupId>
>>         <artifactId>distrib</artifactId>
>>         <version>1.0.0-SNAPSHOT</version>
>>         <relativePath>../pom.xml</relativePath>
>>     </parent>
>>
>>     <artifactId>org.mycustom.karaf.assembly</artifactId>
>>     <packaging>karaf-assembly</packaging>
>>
>>     <name>Mycustom :: Karaf Distribution :: Assembly</name>
>>     <description>Karaf Custom distribution assembly</description>
>>
>>     <dependencies>
>>         <dependency>
>>             <groupId>org.apache.karaf.features</groupId>
>>             <artifactId>framework</artifactId>
>>             <version>${karaf.version}</version>
>>             <type>kar</type>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.karaf.features</groupId>
>>             <artifactId>enterprise</artifactId>
>>             <version>${karaf.version}</version>
>>             <classifier>features</classifier>
>>             <type>xml</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.cxf.karaf</groupId>
>>             <artifactId>apache-cxf</artifactId>
>>             <classifier>features</classifier>
>>             <version>${cxf-core.version}</version>
>>             <type>xml</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.ops4j.pax.jdbc</groupId>
>>             <artifactId>pax-jdbc-features</artifactId>
>>             <classifier>features</classifier>
>>             <version>${pax-jdbc.version}</version>
>>             <type>xml</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.karaf.cellar</groupId>
>>             <artifactId>apache-karaf-cellar</artifactId>
>>             <classifier>features</classifier>
>>             <version>${karaf-cellar.version}</version>
>>             <type>xml</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>io.oxsoftware.kastle</groupId>
>>             <artifactId>io.oxsoftware.kastle.features</artifactId>
>>             <classifier>features</classifier>
>>             <version>${project.parent.version}</version>
>>             <type>xml</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>
>>     </dependencies>
>>
>>     <build>
>>         <!-- if you want to include resources in the distribution -->
>>         <resources>
>>             <resource>
>>                 <directory>src/main/resources</directory>
>>                 <filtering>false</filtering>
>>                 <includes>
>>                     <include>**/*</include>
>>                 </includes>
>>             </resource>
>>             <resource>
>>                 <directory>src/main/filtered-resources</directory>
>>                 <filtering>true</filtering>
>>                 <includes>
>>                     <include>**/*</include>
>>                 </includes>
>>             </resource>
>>         </resources>
>>
>>         <plugins>
>>             <!-- if you want to include resources in the distribution -->
>>             <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-resources-plugin</artifactId>
>>                 <version>3.0.2</version>
>>                 <executions>
>>                     <execution>
>>                         <id>process-resources</id>
>>                         <goals>
>>                             <goal>resources</goal>
>>                         </goals>
>>                     </execution>
>>                 </executions>
>>             </plugin>
>>             <plugin>
>>                 <groupId>org.apache.karaf.tooling</groupId>
>>                 <artifactId>karaf-maven-plugin</artifactId>
>>                 <version>${karaf.version}</version>
>>                 <extensions>true</extensions>
>>                 <configuration>
>>                     <installedFeatures>
>>                         <feature>custom-distrib</feature>
>>                         <feature>custom-distrib-services</feature>
>>                         <feature>custom-distrib-rest</feature>
>>                     </installedFeatures>
>>                     <bootFeatures>
>>                         <feature>wrapper</feature>
>>                         <feature>wrap</feature>
>>                         <feature>aries-blueprint</feature>
>>                         <feature>shell</feature>
>>                         <feature>shell-compat</feature>
>>                         <feature>feature</feature>
>>                         <feature>jaas</feature>
>>                         <feature>ssh</feature>
>>                         <feature>management</feature>
>>                         <feature>bundle</feature>
>>                         <feature>config</feature>
>>                         <feature>deployer</feature>
>>                         <feature>diagnostic</feature>
>>                         <feature>instance</feature>
>>                         <feature>kar</feature>
>>                         <feature>log</feature>
>>                         <feature>package</feature>
>>                         <feature>service</feature>
>>                         <feature>system</feature>
>>                         <feature>eventadmin</feature>
>>                         <feature>scr</feature>
>>
>>                         <feature>jdbc</feature>
>>                         <feature>jndi</feature>
>>                         <feature>transaction</feature>
>>                         <feature>war</feature>
>>
>>                         <feature>cxf</feature>
>>                         <feature>cxf-jaxrs</feature>
>>                         <feature>cxf-rs-description-swagger2</feature>
>>
>>
>>                         <feature>pax-jdbc</feature>
>>                         <feature>pax-jdbc-config</feature>
>>                         <feature>pax-jdbc-pool-hikaricp</feature>
>>                         <feature>pax-jdbc-pool-aries</feature>
>>                         <feature>pax-jdbc-postgresql</feature>
>>
>>                          <feature>cellar</feature>
>>                     </bootFeatures>
>>                     <libraries>
>>                         <library>mvn:org.apache.servic
>> emix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${
>> servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>>                         <library>mvn:org.apache.servic
>> emix.specs/org.apache.servicemix.specs.json-api-1.1/${
>> servicemix.specs.json.version};type:=endorsed;export:=true</library>
>>                     </libraries>
>>                     <javase>1.8</javase>
>>                 </configuration>
>>             </plugin>
>>         </plugins>
>>         <pluginManagement>
>>             <plugins>
>>                 <!--This plugin's configuration is used to store Eclipse
>> m2e settings
>>                     only. It has no influence on the Maven build itself.
>> -->
>>                 <plugin>
>>                     <groupId>org.eclipse.m2e</groupId>
>>                     <artifactId>lifecycle-mapping</artifactId>
>>                     <version>1.0.0</version>
>>                     <configuration>
>>                         <lifecycleMappingMetadata>
>>                             <pluginExecutions>
>>                                 <pluginExecution>
>>                                     <pluginExecutionFilter>
>>                                         <groupId>
>>                                             org.apache.karaf.tooling
>>                                         </groupId>
>>                                         <artifactId>
>>                                             karaf-maven-plugin
>>                                         </artifactId>
>>                                         <versionRange>
>>                                             [4.1.0,)
>>                                         </versionRange>
>>                                         <goals>
>>                                             <goal>assembly</goal>
>>                                         </goals>
>>                                     </pluginExecutionFilter>
>>                                     <action>
>>                                         <ignore></ignore>
>>                                     </action>
>>                                 </pluginExecution>
>>                             </pluginExecutions>
>>                         </lifecycleMappingMetadata>
>>                     </configuration>
>>                 </plugin>
>>             </plugins>
>>         </pluginManagement>
>>     </build>
>>
>> Le 17/04/2018 à 10:30, nino martinez wael a écrit :
>>
>> Yes, I want to include at least first level dependencies for my kar /
>> application.. But we need to be able todo an offline installation. With
>> released applications.
>>
>> On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon <
>> francois.papon@openobject.fr> wrote:
>>
>>> Hi,
>>>
>>> You want to include your repo into a kar ?
>>>
>>> François
>>>
>>> Le 13/04/2018 à 16:50, nino martinez wael a écrit :
>>>
>>> I have this that does what I want.. BUT I think it's a hardcore hack. Is
>>> there no way to make a packaged kar containing a repo like below, using the
>>> resources parameter seems to be a hack?
>>>
>>> <plugin>
>>>     <groupId>org.apache.karaf.tooling</groupId>
>>>     <artifactId>karaf-maven-plugin</artifactId>
>>>     <extensions>true</extensions>
>>>     <version>${karaf.version}</version>
>>>     <executions>
>>>         <execution>
>>>             <id>features-add-to-repo</id>
>>>             <goals>
>>>                 <goal>features-add-to-repository</goal>
>>>             </goals>
>>>             <configuration>
>>>                 <descriptors>
>>>                     <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>>>                     <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>>>                 </descriptors>
>>>                 <features>
>>>                     <feature>ccadmin</feature>
>>>                 </features>
>>>                 <repository>${project.build.directory}/classes/repository</repository>
>>>             </configuration>
>>>         </execution>
>>>         <execution>
>>>             <id>kar</id>
>>>             <goals>
>>>                 <goal>kar</goal>
>>>             </goals>
>>>         </execution>
>>>     </executions></plugin>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>>
>>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
Yes but, the problem arises when we want to mix our products but only want
/ just need one karaf instance.. Plus each release does actually require a
significant amount of space on our artifact servers.. around 150mb per
release / snapshot.. Using the kar approach and one common custom karaf for
our products lightents this a lot.

So today we are doing one karaf assembly per project but want to move away
from it.

-regards Nino

On Tue, Apr 17, 2018 at 11:30 AM, Francois Papon <
francois.papon@openobject.fr> wrote:

> Have you tried to create a custom distribution of Karaf ? It's great to
> use in offline environment.
>
> Here an example of pom assembly :
>
> -- <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> <http://maven.apache.org/POM/4.0.0> xmlns:xsi="http://www.w3.org/
> 2001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance>
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd"
> <http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd>
> >
>
>     <modelVersion>4.0.0</modelVersion>
>
>     <parent>
>         <groupId>org.mycustom</groupId>
>         <artifactId>distrib</artifactId>
>         <version>1.0.0-SNAPSHOT</version>
>         <relativePath>../pom.xml</relativePath>
>     </parent>
>
>     <artifactId>org.mycustom.karaf.assembly</artifactId>
>     <packaging>karaf-assembly</packaging>
>
>     <name>Mycustom :: Karaf Distribution :: Assembly</name>
>     <description>Karaf Custom distribution assembly</description>
>
>     <dependencies>
>         <dependency>
>             <groupId>org.apache.karaf.features</groupId>
>             <artifactId>framework</artifactId>
>             <version>${karaf.version}</version>
>             <type>kar</type>
>         </dependency>
>
>         <dependency>
>             <groupId>org.apache.karaf.features</groupId>
>             <artifactId>enterprise</artifactId>
>             <version>${karaf.version}</version>
>             <classifier>features</classifier>
>             <type>xml</type>
>             <scope>runtime</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>org.apache.cxf.karaf</groupId>
>             <artifactId>apache-cxf</artifactId>
>             <classifier>features</classifier>
>             <version>${cxf-core.version}</version>
>             <type>xml</type>
>             <scope>runtime</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>org.ops4j.pax.jdbc</groupId>
>             <artifactId>pax-jdbc-features</artifactId>
>             <classifier>features</classifier>
>             <version>${pax-jdbc.version}</version>
>             <type>xml</type>
>             <scope>runtime</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>org.apache.karaf.cellar</groupId>
>             <artifactId>apache-karaf-cellar</artifactId>
>             <classifier>features</classifier>
>             <version>${karaf-cellar.version}</version>
>             <type>xml</type>
>             <scope>runtime</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>io.oxsoftware.kastle</groupId>
>             <artifactId>io.oxsoftware.kastle.features</artifactId>
>             <classifier>features</classifier>
>             <version>${project.parent.version}</version>
>             <type>xml</type>
>             <scope>runtime</scope>
>         </dependency>
>
>     </dependencies>
>
>     <build>
>         <!-- if you want to include resources in the distribution -->
>         <resources>
>             <resource>
>                 <directory>src/main/resources</directory>
>                 <filtering>false</filtering>
>                 <includes>
>                     <include>**/*</include>
>                 </includes>
>             </resource>
>             <resource>
>                 <directory>src/main/filtered-resources</directory>
>                 <filtering>true</filtering>
>                 <includes>
>                     <include>**/*</include>
>                 </includes>
>             </resource>
>         </resources>
>
>         <plugins>
>             <!-- if you want to include resources in the distribution -->
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-resources-plugin</artifactId>
>                 <version>3.0.2</version>
>                 <executions>
>                     <execution>
>                         <id>process-resources</id>
>                         <goals>
>                             <goal>resources</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.karaf.tooling</groupId>
>                 <artifactId>karaf-maven-plugin</artifactId>
>                 <version>${karaf.version}</version>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <installedFeatures>
>                         <feature>custom-distrib</feature>
>                         <feature>custom-distrib-services</feature>
>                         <feature>custom-distrib-rest</feature>
>                     </installedFeatures>
>                     <bootFeatures>
>                         <feature>wrapper</feature>
>                         <feature>wrap</feature>
>                         <feature>aries-blueprint</feature>
>                         <feature>shell</feature>
>                         <feature>shell-compat</feature>
>                         <feature>feature</feature>
>                         <feature>jaas</feature>
>                         <feature>ssh</feature>
>                         <feature>management</feature>
>                         <feature>bundle</feature>
>                         <feature>config</feature>
>                         <feature>deployer</feature>
>                         <feature>diagnostic</feature>
>                         <feature>instance</feature>
>                         <feature>kar</feature>
>                         <feature>log</feature>
>                         <feature>package</feature>
>                         <feature>service</feature>
>                         <feature>system</feature>
>                         <feature>eventadmin</feature>
>                         <feature>scr</feature>
>
>                         <feature>jdbc</feature>
>                         <feature>jndi</feature>
>                         <feature>transaction</feature>
>                         <feature>war</feature>
>
>                         <feature>cxf</feature>
>                         <feature>cxf-jaxrs</feature>
>                         <feature>cxf-rs-description-swagger2</feature>
>
>
>                         <feature>pax-jdbc</feature>
>                         <feature>pax-jdbc-config</feature>
>                         <feature>pax-jdbc-pool-hikaricp</feature>
>                         <feature>pax-jdbc-pool-aries</feature>
>                         <feature>pax-jdbc-postgresql</feature>
>
>                          <feature>cellar</feature>
>                     </bootFeatures>
>                     <libraries>
>                         <library>mvn:org.apache.
> servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.
> 1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
>                         <library>mvn:org.apache.
> servicemix.specs/org.apache.servicemix.specs.json-api-1.1/
> ${servicemix.specs.json.version};type:=endorsed;export:=true</library>
>                     </libraries>
>                     <javase>1.8</javase>
>                 </configuration>
>             </plugin>
>         </plugins>
>         <pluginManagement>
>             <plugins>
>                 <!--This plugin's configuration is used to store Eclipse
> m2e settings
>                     only. It has no influence on the Maven build itself.
> -->
>                 <plugin>
>                     <groupId>org.eclipse.m2e</groupId>
>                     <artifactId>lifecycle-mapping</artifactId>
>                     <version>1.0.0</version>
>                     <configuration>
>                         <lifecycleMappingMetadata>
>                             <pluginExecutions>
>                                 <pluginExecution>
>                                     <pluginExecutionFilter>
>                                         <groupId>
>                                             org.apache.karaf.tooling
>                                         </groupId>
>                                         <artifactId>
>                                             karaf-maven-plugin
>                                         </artifactId>
>                                         <versionRange>
>                                             [4.1.0,)
>                                         </versionRange>
>                                         <goals>
>                                             <goal>assembly</goal>
>                                         </goals>
>                                     </pluginExecutionFilter>
>                                     <action>
>                                         <ignore></ignore>
>                                     </action>
>                                 </pluginExecution>
>                             </pluginExecutions>
>                         </lifecycleMappingMetadata>
>                     </configuration>
>                 </plugin>
>             </plugins>
>         </pluginManagement>
>     </build>
>
> Le 17/04/2018 à 10:30, nino martinez wael a écrit :
>
> Yes, I want to include at least first level dependencies for my kar /
> application.. But we need to be able todo an offline installation. With
> released applications.
>
> On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon <
> francois.papon@openobject.fr> wrote:
>
>> Hi,
>>
>> You want to include your repo into a kar ?
>>
>> François
>>
>> Le 13/04/2018 à 16:50, nino martinez wael a écrit :
>>
>> I have this that does what I want.. BUT I think it's a hardcore hack. Is
>> there no way to make a packaged kar containing a repo like below, using the
>> resources parameter seems to be a hack?
>>
>> <plugin>
>>     <groupId>org.apache.karaf.tooling</groupId>
>>     <artifactId>karaf-maven-plugin</artifactId>
>>     <extensions>true</extensions>
>>     <version>${karaf.version}</version>
>>     <executions>
>>         <execution>
>>             <id>features-add-to-repo</id>
>>             <goals>
>>                 <goal>features-add-to-repository</goal>
>>             </goals>
>>             <configuration>
>>                 <descriptors>
>>                     <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>>                     <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>>                 </descriptors>
>>                 <features>
>>                     <feature>ccadmin</feature>
>>                 </features>
>>                 <repository>${project.build.directory}/classes/repository</repository>
>>             </configuration>
>>         </execution>
>>         <execution>
>>             <id>kar</id>
>>             <goals>
>>                 <goal>kar</goal>
>>             </goals>
>>         </execution>
>>     </executions></plugin>
>>
>>
>>
>>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>
>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Francois Papon <fr...@openobject.fr>.
Have you tried to create a custom distribution of Karaf ? It's great to
use in offline environment.

Here an example of pom assembly :

-- <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.mycustom</groupId>
        <artifactId>distrib</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>org.mycustom.karaf.assembly</artifactId>
    <packaging>karaf-assembly</packaging>

    <name>Mycustom :: Karaf Distribution :: Assembly</name>
    <description>Karaf Custom distribution assembly</description>

    <dependencies>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <version>${karaf.version}</version>
            <type>kar</type>
        </dependency>

        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>enterprise</artifactId>
            <version>${karaf.version}</version>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.cxf.karaf</groupId>
            <artifactId>apache-cxf</artifactId>
            <classifier>features</classifier>
            <version>${cxf-core.version}</version>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>org.ops4j.pax.jdbc</groupId>
            <artifactId>pax-jdbc-features</artifactId>
            <classifier>features</classifier>
            <version>${pax-jdbc.version}</version>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.karaf.cellar</groupId>
            <artifactId>apache-karaf-cellar</artifactId>
            <classifier>features</classifier>
            <version>${karaf-cellar.version}</version>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>io.oxsoftware.kastle</groupId>
            <artifactId>io.oxsoftware.kastle.features</artifactId>
            <classifier>features</classifier>
            <version>${project.parent.version}</version>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

    </dependencies>

    <build>
        <!-- if you want to include resources in the distribution -->
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
                <includes>
                    <include>**/*</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/filtered-resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/*</include>
                </includes>
            </resource>
        </resources>

        <plugins>
            <!-- if you want to include resources in the distribution -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>3.0.2</version>
                <executions>
                    <execution>
                        <id>process-resources</id>
                        <goals>
                            <goal>resources</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-maven-plugin</artifactId>
                <version>${karaf.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <installedFeatures>
                        <feature>custom-distrib</feature>
                        <feature>custom-distrib-services</feature>
                        <feature>custom-distrib-rest</feature>
                    </installedFeatures>
                    <bootFeatures>
                        <feature>wrapper</feature>
                        <feature>wrap</feature>
                        <feature>aries-blueprint</feature>
                        <feature>shell</feature>
                        <feature>shell-compat</feature>
                        <feature>feature</feature>
                        <feature>jaas</feature>
                        <feature>ssh</feature>
                        <feature>management</feature>
                        <feature>bundle</feature>
                        <feature>config</feature>
                        <feature>deployer</feature>
                        <feature>diagnostic</feature>
                        <feature>instance</feature>
                        <feature>kar</feature>
                        <feature>log</feature>
                        <feature>package</feature>
                        <feature>service</feature>
                        <feature>system</feature>
                        <feature>eventadmin</feature>
                        <feature>scr</feature>

                        <feature>jdbc</feature>
                        <feature>jndi</feature>
                        <feature>transaction</feature>
                        <feature>war</feature>

                        <feature>cxf</feature>
                        <feature>cxf-jaxrs</feature>
                        <feature>cxf-rs-description-swagger2</feature>
                       

                        <feature>pax-jdbc</feature>
                        <feature>pax-jdbc-config</feature>
                        <feature>pax-jdbc-pool-hikaricp</feature>
                        <feature>pax-jdbc-pool-aries</feature>
                        <feature>pax-jdbc-postgresql</feature>

                         <feature>cellar</feature>
                    </bootFeatures>
                    <libraries>
                       
<library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxrs-api-2.1/${servicemix.specs.jaxrs.version};type:=endorsed;export:=true</library>
                       
<library>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.json-api-1.1/${servicemix.specs.json.version};type:=endorsed;export:=true</library>
                    </libraries>
                    <javase>1.8</javase>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <!--This plugin's configuration is used to store Eclipse
m2e settings
                    only. It has no influence on the Maven build itself. -->
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>
                                            org.apache.karaf.tooling
                                        </groupId>
                                        <artifactId>
                                            karaf-maven-plugin
                                        </artifactId>
                                        <versionRange>
                                            [4.1.0,)
                                        </versionRange>
                                        <goals>
                                            <goal>assembly</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore></ignore>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>


Le 17/04/2018 à 10:30, nino martinez wael a écrit :
> Yes, I want to include at least first level dependencies for my kar /
> application.. But we need to be able todo an offline installation.
> With released applications.
>
> On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon
> <francois.papon@openobject.fr <ma...@openobject.fr>>
> wrote:
>
>     Hi,
>
>     You want to include your repo into a kar ?
>
>     François
>
>
>     Le 13/04/2018 à 16:50, nino martinez wael a écrit :
>>     I have this that does what I want.. BUT I think it's a hardcore
>>     hack. Is there no way to make a packaged kar containing a repo
>>     like below, using the resources parameter seems to be a hack?
>>
>>     <plugin>
>>         <groupId>org.apache.karaf.tooling</groupId>
>>         <artifactId>karaf-maven-plugin</artifactId>
>>         <extensions>true</extensions>
>>         <version>${karaf.version}</version>
>>         <executions>
>>             <execution>
>>                 <id>features-add-to-repo</id>
>>                 <goals>
>>                     <goal>features-add-to-repository</goal>
>>                 </goals>
>>                 <configuration>
>>                     <descriptors>
>>                         <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>>                         <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>>                     </descriptors>
>>                     <features>
>>                         <feature>ccadmin</feature>
>>                     </features>
>>                     <repository>${project.build.directory}/classes/repository</repository>
>>                 </configuration>
>>             </execution>
>>             <execution>
>>                 <id>kar</id>
>>                 <goals>
>>                     <goal>kar</goal>
>>                 </goals>
>>             </execution>
>>         </executions>
>>     </plugin>
>>
>
>
>
>
> -- 
> Best regards / Med venlig hilsen 
> Nino Martinez


Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
Yes, I want to include at least first level dependencies for my kar /
application.. But we need to be able todo an offline installation. With
released applications.

On Sat, Apr 14, 2018 at 6:41 PM, Francois Papon <
francois.papon@openobject.fr> wrote:

> Hi,
>
> You want to include your repo into a kar ?
>
> François
>
> Le 13/04/2018 à 16:50, nino martinez wael a écrit :
>
> I have this that does what I want.. BUT I think it's a hardcore hack. Is
> there no way to make a packaged kar containing a repo like below, using the
> resources parameter seems to be a hack?
>
> <plugin>
>     <groupId>org.apache.karaf.tooling</groupId>
>     <artifactId>karaf-maven-plugin</artifactId>
>     <extensions>true</extensions>
>     <version>${karaf.version}</version>
>     <executions>
>         <execution>
>             <id>features-add-to-repo</id>
>             <goals>
>                 <goal>features-add-to-repository</goal>
>             </goals>
>             <configuration>
>                 <descriptors>
>                     <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>                     <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>                 </descriptors>
>                 <features>
>                     <feature>ccadmin</feature>
>                 </features>
>                 <repository>${project.build.directory}/classes/repository</repository>
>             </configuration>
>         </execution>
>         <execution>
>             <id>kar</id>
>             <goals>
>                 <goal>kar</goal>
>             </goals>
>         </execution>
>     </executions></plugin>
>
>
>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Francois Papon <fr...@openobject.fr>.
Hi,

You want to include your repo into a kar ?

François


Le 13/04/2018 à 16:50, nino martinez wael a écrit :
> I have this that does what I want.. BUT I think it's a hardcore hack.
> Is there no way to make a packaged kar containing a repo like below,
> using the resources parameter seems to be a hack?
>
> <plugin>
>     <groupId>org.apache.karaf.tooling</groupId>
>     <artifactId>karaf-maven-plugin</artifactId>
>     <extensions>true</extensions>
>     <version>${karaf.version}</version>
>     <executions>
>         <execution>
>             <id>features-add-to-repo</id>
>             <goals>
>                 <goal>features-add-to-repository</goal>
>             </goals>
>             <configuration>
>                 <descriptors>
>                     <descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>
>                     <descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
>                 </descriptors>
>                 <features>
>                     <feature>ccadmin</feature>
>                 </features>
>                 <repository>${project.build.directory}/classes/repository</repository>
>             </configuration>
>         </execution>
>         <execution>
>             <id>kar</id>
>             <goals>
>                 <goal>kar</goal>
>             </goals>
>         </execution>
>     </executions>
> </plugin>
>


Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
I have this that does what I want.. BUT I think it's a hardcore hack. Is
there no way to make a packaged kar containing a repo like below, using the
resources parameter seems to be a hack?

<plugin>
    <groupId>org.apache.karaf.tooling</groupId>
    <artifactId>karaf-maven-plugin</artifactId>
    <extensions>true</extensions>
    <version>${karaf.version}</version>
    <executions>
        <execution>
            <id>features-add-to-repo</id>
            <goals>
                <goal>features-add-to-repository</goal>
            </goals>
            <configuration>
                <descriptors>

<descriptor>mvn:org.apache.karaf.features/standard/4.2.0/xml/features</descriptor>

<descriptor>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/3.0.0-SNAPSHOT/xml/features</descriptor>
                </descriptors>
                <features>
                    <feature>ccadmin</feature>
                </features>

<repository>${project.build.directory}/classes/repository</repository>
            </configuration>
        </execution>
        <execution>
            <id>kar</id>
            <goals>
                <goal>kar</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
Okay, I could'nt break it. So thats great..

 But I cannot get it to aggregate features into the kar..?

I've tried adding, but it does nothing.
   <configuration>

        <aggregateFeatures>true</aggregateFeatures>
   </configuration>



<plugin>
    <groupId>org.apache.karaf.tooling</groupId>
    <artifactId>karaf-maven-plugin</artifactId>
    <extensions>true</extensions>
    <version>${karaf.version}</version>
    <executions>
        <execution>
            <id>kar</id>
            <goals>
                <goal>kar</goal>
            </goals>
            <configuration>

<featuresFile>${basedir}/src/features/features-repo.xml</featuresFile>
            </configuration>

        </execution>
        <execution>
            <id>generate-features-file</id>
            <phase>generate-resources</phase>
            <goals>
                <goal>features-generate-descriptor</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <aggregateFeatures>true</aggregateFeatures>
        <enableGeneration>true</enableGeneration>
   </configuration>
</plugin>



On Fri, Apr 13, 2018 at 11:02 AM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> I just checked https://github.com/jbonofre/karaf.git and devguide branch
> out..  In the branch it does work.. Ill fiddle a little
> karaf-maven-example-kar to see if I can figure out what breaks it..
>
> On Wed, Apr 11, 2018 at 2:29 PM, nino martinez wael <
> nino.martinez.wael@gmail.com> wrote:
>
>> hmm saw that I forgot group placeholder in mvn coordinates, however after
>> correcting the problem remains the same, I wi.. Will the plugin shout if
>> theres anything wrong in feature.xml?
>>
>> Output from karaf plugin are this:
>> [INFO] Features verified: 0, failures: 0, ignored: 0
>>
>>
>> I've reverted to this:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <features name="ccadmin-repo-kar" xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.5.0 http://karaf.apache.org/xmlns/features/v1.5.0">
>>
>>     <!--<repository>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/features/3.0.0-SNAPSHOT/xml/features</repository>-->
>>
>>     <feature name="kar-build" version="1.0-SNAPSHOT">
>>         <!--<feature>ccadmin</feature>-->
>>         <bundle>mvn:javax.validation/validation-api/2.0.1.Final</bundle>
>>     </feature>
>>
>> </features>
>>
>>
>> BUT it does still not bundle my jars.
>>
>> pom are this:
>>
>> </plugin>
>>     <plugin>
>>         <groupId>org.apache.karaf.tooling</groupId>
>>         <artifactId>karaf-maven-plugin</artifactId>
>>         <extensions>true</extensions>
>>         <version>${karaf.version}</version>
>>         <executions>
>>             <execution>
>>                 <id>kar</id>
>>                 <goals>
>>                     <goal>kar</goal>
>>                 </goals>
>>                 <configuration>
>>                     <featuresFile>${basedir}/src/features/features-repo.xml</featuresFile>
>>                 </configuration>
>>
>>             </execution>
>>
>>         </executions>
>>
>>     </plugin>
>>
>>
>> I am just running mvn clean install.. I also tried mvn karaf:kar
>>
>>
>>
>> On Wed, Apr 11, 2018 at 2:00 PM, nino martinez wael <
>> nino.martinez.wael@gmail.com> wrote:
>>
>>> stop, I see a problem.. Let me test and get back.
>>>
>>> On Wed, Apr 11, 2018 at 1:56 PM, nino martinez wael <
>>> nino.martinez.wael@gmail.com> wrote:
>>>
>>>> I mean shouldnt the plugin aggregate the features? and place all
>>>> referenced jars in the repo?
>>>>
>>>> On Wed, Apr 11, 2018 at 10:24 AM, nino martinez wael <
>>>> nino.martinez.wael@gmail.com> wrote:
>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <features name="ccadmin-repo-kar" xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.5.0 http://karaf.apache.org/xmlns/features/v1.5.0">
>>>>>
>>>>>     <repository>mvn:ccadmin-karaf-feature/features/3.0.0-SNAPSHOT/xml/features</repository>
>>>>>
>>>>>     <feature name="kar-build" version="1.0-SNAPSHOT">
>>>>>         <feature>ccadmin</feature>
>>>>>     </feature>
>>>>>
>>>>> </features>
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Apr 11, 2018 at 9:51 AM, Jean-Baptiste Onofré <jb@nanthrax.net
>>>>> > wrote:
>>>>>
>>>>>> What does your features.xml look like ?
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>> Le 11 avr. 2018, à 07:03, nino martinez wael <
>>>>>> nino.martinez.wael@gmail.com> a écrit:
>>>>>>
>>>>>>> I just get an kar containing the feature.xml file, no jars
>>>>>>> included..
>>>>>>>
>>>>>>> It also complains:
>>>>>>>
>>>>>>> [WARNING] Your project should use the "kar" packaging or configure a
>>>>>>> "classifier" for kar attachment
>>>>>>>
>>>>>>>
>>>>>>> Changing packaging to kar makes no difference.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Apr 10, 2018 at 9:20 PM, Jean-Baptiste Onofré <
>>>>>>> jb@nanthrax.net> wrote:
>>>>>>>
>>>>>>>> Yes,
>>>>>>>>
>>>>>>>> https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/ka
>>>>>>>> raf-maven-example/karaf-maven-example-kar
>>>>>>>>
>>>>>>>> I'm polishing it but you have the rough idea.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> JB
>>>>>>>>
>>>>>>>> On 10/04/2018 20:01, nino martinez wael wrote:
>>>>>>>>
>>>>>>>>> hmm, packaging are
>>>>>>>>>
>>>>>>>>>     <packaging>kar</packaging>
>>>>>>>>>
>>>>>>>>> Are there some examples of the kar packaging?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré <
>>>>>>>>> jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>>>>>>
>>>>>>>>>     Hi,
>>>>>>>>>
>>>>>>>>>     you shared a assembly usage of the Maven plugin.
>>>>>>>>>
>>>>>>>>>     For the kar, you can specify a kar packaging and kar goal.
>>>>>>>>> Then it
>>>>>>>>>     will package all repositories/features for your features
>>>>>>>>> repository.
>>>>>>>>>
>>>>>>>>>     Regards
>>>>>>>>>     JB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>     On 10/04/2018 13:39, nino martinez wael wrote:
>>>>>>>>>
>>>>>>>>>         Hi
>>>>>>>>>
>>>>>>>>>         I cannot get the karaf maven plugin to pull in all jars
>>>>>>>>> needed
>>>>>>>>>         for my app, it only generates an empty feature.xml..
>>>>>>>>>
>>>>>>>>>         Normally we are building a full custom Karaf assembly per
>>>>>>>>>         project, but we are changing it.
>>>>>>>>>
>>>>>>>>>         The idea are just to make a kar instead providing all the
>>>>>>>>> jars,
>>>>>>>>>         often the environment we are installing to do no have any
>>>>>>>>>         internet connection.
>>>>>>>>>
>>>>>>>>>         Here are my pom (I get a fully working karaf assembly if I
>>>>>>>>>         change packaging to karaf-assembly)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>         <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>>>         <project xmlns="http://maven.apache.org/POM/4.0.0
>>>>>>>>>         <http://maven.apache.org/POM/4.0.0>"
>>>>>>>>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>>>>>>>>         <http://www.w3.org/2001/XMLSchema-instance>"
>>>>>>>>>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>>>>>>         < http://maven.apache.org/POM/4.0.0>
>>>>>>>>>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>>>>>>>>>
>>>>>>>>>         < http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>>>>>>>>>               <modelVersion>4.0.0</modelVer sion>
>>>>>>>>>               <parent>
>>>>>>>>>                   <groupId>com.netdesign.ccadmi n</groupId>
>>>>>>>>>                   <artifactId>ccadmin</artifact Id>
>>>>>>>>>                   <version>3.0.0-SNAPSHOT</vers ion>
>>>>>>>>>               </parent>
>>>>>>>>>
>>>>>>>>>               <groupId>com.netdesign.ccadmi n</groupId>
>>>>>>>>>               <artifactId>ccadmin-karaf-ass embly</artifactId>
>>>>>>>>>               <packaging>kar</packaging>
>>>>>>>>>
>>>>>>>>>               <name>ccadmin-karaf-assembly< /name>
>>>>>>>>>
>>>>>>>>>               <properties>
>>>>>>>>>                           <project.build.sourceEncodin
>>>>>>>>> g>UTF-8</project.build. sourceEncoding>
>>>>>>>>>                   <karaf.version>4.2.0</karaf.v ersion>
>>>>>>>>>                   <cxf.version>3.2.4</cxf.versi on>
>>>>>>>>>               </properties>
>>>>>>>>>               <dependencies>
>>>>>>>>>                   <dependency>
>>>>>>>>>                       <groupId>org.apache.karaf.fea
>>>>>>>>> tures</groupId>
>>>>>>>>>                       <artifactId>framework</artifa ctId>
>>>>>>>>>                       <type>kar</type>
>>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>>
>>>>>>>>>                   </dependency>
>>>>>>>>>                   <dependency>
>>>>>>>>>                       <groupId>org.apache.karaf.fea
>>>>>>>>> tures</groupId>
>>>>>>>>>                       <artifactId>framework</artifa ctId>
>>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>>                       <type>xml</type>
>>>>>>>>>                       <scope>runtime</scope>
>>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>>                   </dependency>
>>>>>>>>>                   <dependency>
>>>>>>>>>                       <groupId>org.apache.karaf.fea
>>>>>>>>> tures</groupId>
>>>>>>>>>                       <artifactId>standard</artifac tId>
>>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>>                       <type>xml</type>
>>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>>                   </dependency>
>>>>>>>>>
>>>>>>>>>                   <dependency>
>>>>>>>>>                       <groupId>org.apache.karaf.fea
>>>>>>>>> tures</groupId>
>>>>>>>>>                       <artifactId>spring-legacy</ar tifactId>
>>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>>                       <type>xml</type>
>>>>>>>>>                       <scope>runtime</scope>
>>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>>                   </dependency>
>>>>>>>>>
>>>>>>>>>                   <!--<dependency>-->
>>>>>>>>>         <!--<groupId>org.apache.karaf. features</groupId>-->
>>>>>>>>>         <!--<artifactId>spring</artifa ctId>-->
>>>>>>>>>         <!--<classifier>features</clas sifier>-->
>>>>>>>>>         <!--<type>xml</type>-->
>>>>>>>>>         <!--<scope>runtime</scope>-->
>>>>>>>>>         <!--<version>${karaf.version}< /version>-->
>>>>>>>>>         <!--</dependency>-->
>>>>>>>>>         <dependency>
>>>>>>>>>                       <groupId>org.apache.karaf.fea
>>>>>>>>> tures</groupId>
>>>>>>>>>                       <artifactId>enterprise</artif actId>
>>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>>                       <type>xml</type>
>>>>>>>>>                       <scope>runtime</scope>
>>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>>                   </dependency>
>>>>>>>>>                   <dependency>
>>>>>>>>>                       <groupId>org.apache.cxf.karaf </groupId>
>>>>>>>>>                       <artifactId>apache-cxf</artif actId>
>>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>>                       <type>xml</type>
>>>>>>>>>                       <scope>runtime</scope>
>>>>>>>>>                       <version>${cxf.version}</vers ion>
>>>>>>>>>                   </dependency>
>>>>>>>>>
>>>>>>>>>               </dependencies>
>>>>>>>>>               <profiles>
>>>>>>>>>                   <profile>
>>>>>>>>>                       <id>release</id>
>>>>>>>>>                       <activation>
>>>>>>>>>                           <property>
>>>>>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>>>>>                               <value>true</value>
>>>>>>>>>                           </property>
>>>>>>>>>                       </activation>
>>>>>>>>>                       <dependencies>
>>>>>>>>>                           <dependency>
>>>>>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>>>>>> ture</artifactId>
>>>>>>>>>                               <groupId>com.netdesign.ccadmi
>>>>>>>>> n</groupId>
>>>>>>>>>                               <classifier>features</classif ier>
>>>>>>>>>                               <type>xml</type>
>>>>>>>>>                               <version>${build.parent.versi
>>>>>>>>> on}</version>
>>>>>>>>>                               <scope>runtime</scope>
>>>>>>>>>                           </dependency>
>>>>>>>>>                       </dependencies>
>>>>>>>>>                   </profile>
>>>>>>>>>                   <profile>
>>>>>>>>>                       <id>snapshot</id>
>>>>>>>>>                       <activation>
>>>>>>>>>                           <property>
>>>>>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>>>>>                               <value>!true</value>
>>>>>>>>>                           </property>
>>>>>>>>>                       </activation>
>>>>>>>>>                       <dependencies>
>>>>>>>>>                           <dependency>
>>>>>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>>>>>> ture</artifactId>
>>>>>>>>>                               <groupId>com.netdesign.ccadmi
>>>>>>>>> n</groupId>
>>>>>>>>>                               <classifier>features</classif ier>
>>>>>>>>>                               <type>xml</type>
>>>>>>>>>                               <version>${project.version}</
>>>>>>>>> version>
>>>>>>>>>                               <scope>runtime</scope>
>>>>>>>>>                           </dependency>
>>>>>>>>>                       </dependencies>
>>>>>>>>>                   </profile>
>>>>>>>>>
>>>>>>>>>               </profiles>
>>>>>>>>>               <build>
>>>>>>>>>                   <plugins>
>>>>>>>>>                       <plugin>
>>>>>>>>>                           <groupId>org.apache.maven.plu
>>>>>>>>> gins</groupId>
>>>>>>>>>                           <artifactId>maven-dependency-
>>>>>>>>> plugin</artifactId>
>>>>>>>>>                           <version>3.0.2</version>
>>>>>>>>>                       </plugin>
>>>>>>>>>                           <plugin>
>>>>>>>>>                               <groupId>org.apache.karaf.too
>>>>>>>>> ling</groupId>
>>>>>>>>>                               <artifactId>karaf-maven-plugi
>>>>>>>>> n</artifactId>
>>>>>>>>>                               <extensions>true</extensions>
>>>>>>>>>                               <version>${karaf.version}</ve rsion>
>>>>>>>>>                               <configuration>
>>>>>>>>>                                   <installedFeatures>
>>>>>>>>>                                       <feature>wrapper</feature>
>>>>>>>>>                                       <feature>cxf</feature>
>>>>>>>>>
>>>>>>>>>  <feature>cxf-commands</featur e>
>>>>>>>>>                                       <feature>ccadmin</feature>
>>>>>>>>>                                   </installedFeatures>
>>>>>>>>>                                   <bootFeatures>
>>>>>>>>>                                       <feature>standard</feature>
>>>>>>>>>
>>>>>>>>>  <feature>webconsole</feature>
>>>>>>>>>                                   </bootFeatures>
>>>>>>>>>                                   <javase>1.8</javase>
>>>>>>>>>                               </configuration>
>>>>>>>>>                           </plugin>
>>>>>>>>>                       </plugins>
>>>>>>>>>               </build>
>>>>>>>>>         </project>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>         --         Best regards / Med venlig hilsen
>>>>>>>>>         Nino Martinez
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best regards / Med venlig hilsen
>>>>>>>>> Nino Martinez
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best regards / Med venlig hilsen
>>>>>>> Nino Martinez
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards / Med venlig hilsen
>>>>> Nino Martinez
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards / Med venlig hilsen
>>>> Nino Martinez
>>>>
>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
I just checked https://github.com/jbonofre/karaf.git and devguide branch
out..  In the branch it does work.. Ill fiddle a little
karaf-maven-example-kar to see if I can figure out what breaks it..

On Wed, Apr 11, 2018 at 2:29 PM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> hmm saw that I forgot group placeholder in mvn coordinates, however after
> correcting the problem remains the same, I wi.. Will the plugin shout if
> theres anything wrong in feature.xml?
>
> Output from karaf plugin are this:
> [INFO] Features verified: 0, failures: 0, ignored: 0
>
>
> I've reverted to this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <features name="ccadmin-repo-kar" xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.5.0 http://karaf.apache.org/xmlns/features/v1.5.0">
>
>     <!--<repository>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/features/3.0.0-SNAPSHOT/xml/features</repository>-->
>
>     <feature name="kar-build" version="1.0-SNAPSHOT">
>         <!--<feature>ccadmin</feature>-->
>         <bundle>mvn:javax.validation/validation-api/2.0.1.Final</bundle>
>     </feature>
>
> </features>
>
>
> BUT it does still not bundle my jars.
>
> pom are this:
>
> </plugin>
>     <plugin>
>         <groupId>org.apache.karaf.tooling</groupId>
>         <artifactId>karaf-maven-plugin</artifactId>
>         <extensions>true</extensions>
>         <version>${karaf.version}</version>
>         <executions>
>             <execution>
>                 <id>kar</id>
>                 <goals>
>                     <goal>kar</goal>
>                 </goals>
>                 <configuration>
>                     <featuresFile>${basedir}/src/features/features-repo.xml</featuresFile>
>                 </configuration>
>
>             </execution>
>
>         </executions>
>
>     </plugin>
>
>
> I am just running mvn clean install.. I also tried mvn karaf:kar
>
>
>
> On Wed, Apr 11, 2018 at 2:00 PM, nino martinez wael <
> nino.martinez.wael@gmail.com> wrote:
>
>> stop, I see a problem.. Let me test and get back.
>>
>> On Wed, Apr 11, 2018 at 1:56 PM, nino martinez wael <
>> nino.martinez.wael@gmail.com> wrote:
>>
>>> I mean shouldnt the plugin aggregate the features? and place all
>>> referenced jars in the repo?
>>>
>>> On Wed, Apr 11, 2018 at 10:24 AM, nino martinez wael <
>>> nino.martinez.wael@gmail.com> wrote:
>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <features name="ccadmin-repo-kar" xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.5.0 http://karaf.apache.org/xmlns/features/v1.5.0">
>>>>
>>>>     <repository>mvn:ccadmin-karaf-feature/features/3.0.0-SNAPSHOT/xml/features</repository>
>>>>
>>>>     <feature name="kar-build" version="1.0-SNAPSHOT">
>>>>         <feature>ccadmin</feature>
>>>>     </feature>
>>>>
>>>> </features>
>>>>
>>>>
>>>>
>>>> On Wed, Apr 11, 2018 at 9:51 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
>>>> wrote:
>>>>
>>>>> What does your features.xml look like ?
>>>>>
>>>>> Regards
>>>>> JB
>>>>> Le 11 avr. 2018, à 07:03, nino martinez wael <
>>>>> nino.martinez.wael@gmail.com> a écrit:
>>>>>
>>>>>> I just get an kar containing the feature.xml file, no jars included..
>>>>>>
>>>>>> It also complains:
>>>>>>
>>>>>> [WARNING] Your project should use the "kar" packaging or configure a
>>>>>> "classifier" for kar attachment
>>>>>>
>>>>>>
>>>>>> Changing packaging to kar makes no difference.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Apr 10, 2018 at 9:20 PM, Jean-Baptiste Onofré <
>>>>>> jb@nanthrax.net> wrote:
>>>>>>
>>>>>>> Yes,
>>>>>>>
>>>>>>> https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/ka
>>>>>>> raf-maven-example/karaf-maven-example-kar
>>>>>>>
>>>>>>> I'm polishing it but you have the rough idea.
>>>>>>>
>>>>>>> Regards
>>>>>>> JB
>>>>>>>
>>>>>>> On 10/04/2018 20:01, nino martinez wael wrote:
>>>>>>>
>>>>>>>> hmm, packaging are
>>>>>>>>
>>>>>>>>     <packaging>kar</packaging>
>>>>>>>>
>>>>>>>> Are there some examples of the kar packaging?
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré <
>>>>>>>> jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>>>>>
>>>>>>>>     Hi,
>>>>>>>>
>>>>>>>>     you shared a assembly usage of the Maven plugin.
>>>>>>>>
>>>>>>>>     For the kar, you can specify a kar packaging and kar goal. Then
>>>>>>>> it
>>>>>>>>     will package all repositories/features for your features
>>>>>>>> repository.
>>>>>>>>
>>>>>>>>     Regards
>>>>>>>>     JB
>>>>>>>>
>>>>>>>>
>>>>>>>>     On 10/04/2018 13:39, nino martinez wael wrote:
>>>>>>>>
>>>>>>>>         Hi
>>>>>>>>
>>>>>>>>         I cannot get the karaf maven plugin to pull in all jars
>>>>>>>> needed
>>>>>>>>         for my app, it only generates an empty feature.xml..
>>>>>>>>
>>>>>>>>         Normally we are building a full custom Karaf assembly per
>>>>>>>>         project, but we are changing it.
>>>>>>>>
>>>>>>>>         The idea are just to make a kar instead providing all the
>>>>>>>> jars,
>>>>>>>>         often the environment we are installing to do no have any
>>>>>>>>         internet connection.
>>>>>>>>
>>>>>>>>         Here are my pom (I get a fully working karaf assembly if I
>>>>>>>>         change packaging to karaf-assembly)
>>>>>>>>
>>>>>>>>
>>>>>>>>         <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>>         <project xmlns="http://maven.apache.org/POM/4.0.0
>>>>>>>>         <http://maven.apache.org/POM/4.0.0>"
>>>>>>>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>>>>>>>         <http://www.w3.org/2001/XMLSchema-instance>"
>>>>>>>>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>>>>>         < http://maven.apache.org/POM/4.0.0>
>>>>>>>>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>>>>>>>>
>>>>>>>>         < http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>>>>>>>>               <modelVersion>4.0.0</modelVer sion>
>>>>>>>>               <parent>
>>>>>>>>                   <groupId>com.netdesign.ccadmi n</groupId>
>>>>>>>>                   <artifactId>ccadmin</artifact Id>
>>>>>>>>                   <version>3.0.0-SNAPSHOT</vers ion>
>>>>>>>>               </parent>
>>>>>>>>
>>>>>>>>               <groupId>com.netdesign.ccadmi n</groupId>
>>>>>>>>               <artifactId>ccadmin-karaf-ass embly</artifactId>
>>>>>>>>               <packaging>kar</packaging>
>>>>>>>>
>>>>>>>>               <name>ccadmin-karaf-assembly< /name>
>>>>>>>>
>>>>>>>>               <properties>
>>>>>>>>                           <project.build.sourceEncodin
>>>>>>>> g>UTF-8</project.build. sourceEncoding>
>>>>>>>>                   <karaf.version>4.2.0</karaf.v ersion>
>>>>>>>>                   <cxf.version>3.2.4</cxf.versi on>
>>>>>>>>               </properties>
>>>>>>>>               <dependencies>
>>>>>>>>                   <dependency>
>>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>>                       <artifactId>framework</artifa ctId>
>>>>>>>>                       <type>kar</type>
>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>
>>>>>>>>                   </dependency>
>>>>>>>>                   <dependency>
>>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>>                       <artifactId>framework</artifa ctId>
>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>                       <type>xml</type>
>>>>>>>>                       <scope>runtime</scope>
>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>                   </dependency>
>>>>>>>>                   <dependency>
>>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>>                       <artifactId>standard</artifac tId>
>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>                       <type>xml</type>
>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>                   </dependency>
>>>>>>>>
>>>>>>>>                   <dependency>
>>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>>                       <artifactId>spring-legacy</ar tifactId>
>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>                       <type>xml</type>
>>>>>>>>                       <scope>runtime</scope>
>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>                   </dependency>
>>>>>>>>
>>>>>>>>                   <!--<dependency>-->
>>>>>>>>         <!--<groupId>org.apache.karaf. features</groupId>-->
>>>>>>>>         <!--<artifactId>spring</artifa ctId>-->
>>>>>>>>         <!--<classifier>features</clas sifier>-->
>>>>>>>>         <!--<type>xml</type>-->
>>>>>>>>         <!--<scope>runtime</scope>-->
>>>>>>>>         <!--<version>${karaf.version}< /version>-->
>>>>>>>>         <!--</dependency>-->
>>>>>>>>         <dependency>
>>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>>                       <artifactId>enterprise</artif actId>
>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>                       <type>xml</type>
>>>>>>>>                       <scope>runtime</scope>
>>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>>                   </dependency>
>>>>>>>>                   <dependency>
>>>>>>>>                       <groupId>org.apache.cxf.karaf </groupId>
>>>>>>>>                       <artifactId>apache-cxf</artif actId>
>>>>>>>>                       <classifier>features</classif ier>
>>>>>>>>                       <type>xml</type>
>>>>>>>>                       <scope>runtime</scope>
>>>>>>>>                       <version>${cxf.version}</vers ion>
>>>>>>>>                   </dependency>
>>>>>>>>
>>>>>>>>               </dependencies>
>>>>>>>>               <profiles>
>>>>>>>>                   <profile>
>>>>>>>>                       <id>release</id>
>>>>>>>>                       <activation>
>>>>>>>>                           <property>
>>>>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>>>>                               <value>true</value>
>>>>>>>>                           </property>
>>>>>>>>                       </activation>
>>>>>>>>                       <dependencies>
>>>>>>>>                           <dependency>
>>>>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>>>>> ture</artifactId>
>>>>>>>>                               <groupId>com.netdesign.ccadmi
>>>>>>>> n</groupId>
>>>>>>>>                               <classifier>features</classif ier>
>>>>>>>>                               <type>xml</type>
>>>>>>>>                               <version>${build.parent.versi
>>>>>>>> on}</version>
>>>>>>>>                               <scope>runtime</scope>
>>>>>>>>                           </dependency>
>>>>>>>>                       </dependencies>
>>>>>>>>                   </profile>
>>>>>>>>                   <profile>
>>>>>>>>                       <id>snapshot</id>
>>>>>>>>                       <activation>
>>>>>>>>                           <property>
>>>>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>>>>                               <value>!true</value>
>>>>>>>>                           </property>
>>>>>>>>                       </activation>
>>>>>>>>                       <dependencies>
>>>>>>>>                           <dependency>
>>>>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>>>>> ture</artifactId>
>>>>>>>>                               <groupId>com.netdesign.ccadmi
>>>>>>>> n</groupId>
>>>>>>>>                               <classifier>features</classif ier>
>>>>>>>>                               <type>xml</type>
>>>>>>>>                               <version>${project.version}</
>>>>>>>> version>
>>>>>>>>                               <scope>runtime</scope>
>>>>>>>>                           </dependency>
>>>>>>>>                       </dependencies>
>>>>>>>>                   </profile>
>>>>>>>>
>>>>>>>>               </profiles>
>>>>>>>>               <build>
>>>>>>>>                   <plugins>
>>>>>>>>                       <plugin>
>>>>>>>>                           <groupId>org.apache.maven.plu
>>>>>>>> gins</groupId>
>>>>>>>>                           <artifactId>maven-dependency-
>>>>>>>> plugin</artifactId>
>>>>>>>>                           <version>3.0.2</version>
>>>>>>>>                       </plugin>
>>>>>>>>                           <plugin>
>>>>>>>>                               <groupId>org.apache.karaf.too
>>>>>>>> ling</groupId>
>>>>>>>>                               <artifactId>karaf-maven-plugi
>>>>>>>> n</artifactId>
>>>>>>>>                               <extensions>true</extensions>
>>>>>>>>                               <version>${karaf.version}</ve rsion>
>>>>>>>>                               <configuration>
>>>>>>>>                                   <installedFeatures>
>>>>>>>>                                       <feature>wrapper</feature>
>>>>>>>>                                       <feature>cxf</feature>
>>>>>>>>                                       <feature>cxf-commands</featur
>>>>>>>> e>
>>>>>>>>                                       <feature>ccadmin</feature>
>>>>>>>>                                   </installedFeatures>
>>>>>>>>                                   <bootFeatures>
>>>>>>>>                                       <feature>standard</feature>
>>>>>>>>                                       <feature>webconsole</feature>
>>>>>>>>                                   </bootFeatures>
>>>>>>>>                                   <javase>1.8</javase>
>>>>>>>>                               </configuration>
>>>>>>>>                           </plugin>
>>>>>>>>                       </plugins>
>>>>>>>>               </build>
>>>>>>>>         </project>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>         --         Best regards / Med venlig hilsen
>>>>>>>>         Nino Martinez
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best regards / Med venlig hilsen
>>>>>>>> Nino Martinez
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards / Med venlig hilsen
>>>>>> Nino Martinez
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards / Med venlig hilsen
>>>> Nino Martinez
>>>>
>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
hmm saw that I forgot group placeholder in mvn coordinates, however after
correcting the problem remains the same, I wi.. Will the plugin shout if
theres anything wrong in feature.xml?

Output from karaf plugin are this:
[INFO] Features verified: 0, failures: 0, ignored: 0


I've reverted to this:

<?xml version="1.0" encoding="UTF-8"?>
<features name="ccadmin-repo-kar"
xmlns="http://karaf.apache.org/xmlns/features/v1.5.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.5.0
http://karaf.apache.org/xmlns/features/v1.5.0">

    <!--<repository>mvn:com.netdesign.ccadmin/ccadmin-karaf-feature/features/3.0.0-SNAPSHOT/xml/features</repository>-->

    <feature name="kar-build" version="1.0-SNAPSHOT">
        <!--<feature>ccadmin</feature>-->
        <bundle>mvn:javax.validation/validation-api/2.0.1.Final</bundle>
    </feature>

</features>


BUT it does still not bundle my jars.

pom are this:

</plugin>
    <plugin>
        <groupId>org.apache.karaf.tooling</groupId>
        <artifactId>karaf-maven-plugin</artifactId>
        <extensions>true</extensions>
        <version>${karaf.version}</version>
        <executions>
            <execution>
                <id>kar</id>
                <goals>
                    <goal>kar</goal>
                </goals>
                <configuration>

<featuresFile>${basedir}/src/features/features-repo.xml</featuresFile>
                </configuration>

            </execution>

        </executions>

    </plugin>


I am just running mvn clean install.. I also tried mvn karaf:kar



On Wed, Apr 11, 2018 at 2:00 PM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> stop, I see a problem.. Let me test and get back.
>
> On Wed, Apr 11, 2018 at 1:56 PM, nino martinez wael <
> nino.martinez.wael@gmail.com> wrote:
>
>> I mean shouldnt the plugin aggregate the features? and place all
>> referenced jars in the repo?
>>
>> On Wed, Apr 11, 2018 at 10:24 AM, nino martinez wael <
>> nino.martinez.wael@gmail.com> wrote:
>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <features name="ccadmin-repo-kar" xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.5.0 http://karaf.apache.org/xmlns/features/v1.5.0">
>>>
>>>     <repository>mvn:ccadmin-karaf-feature/features/3.0.0-SNAPSHOT/xml/features</repository>
>>>
>>>     <feature name="kar-build" version="1.0-SNAPSHOT">
>>>         <feature>ccadmin</feature>
>>>     </feature>
>>>
>>> </features>
>>>
>>>
>>>
>>> On Wed, Apr 11, 2018 at 9:51 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
>>> wrote:
>>>
>>>> What does your features.xml look like ?
>>>>
>>>> Regards
>>>> JB
>>>> Le 11 avr. 2018, à 07:03, nino martinez wael <
>>>> nino.martinez.wael@gmail.com> a écrit:
>>>>
>>>>> I just get an kar containing the feature.xml file, no jars included..
>>>>>
>>>>> It also complains:
>>>>>
>>>>> [WARNING] Your project should use the "kar" packaging or configure a
>>>>> "classifier" for kar attachment
>>>>>
>>>>>
>>>>> Changing packaging to kar makes no difference.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Apr 10, 2018 at 9:20 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>>>>> > wrote:
>>>>>
>>>>>> Yes,
>>>>>>
>>>>>> https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/ka
>>>>>> raf-maven-example/karaf-maven-example-kar
>>>>>>
>>>>>> I'm polishing it but you have the rough idea.
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 10/04/2018 20:01, nino martinez wael wrote:
>>>>>>
>>>>>>> hmm, packaging are
>>>>>>>
>>>>>>>     <packaging>kar</packaging>
>>>>>>>
>>>>>>> Are there some examples of the kar packaging?
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré <
>>>>>>> jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>>>>
>>>>>>>     Hi,
>>>>>>>
>>>>>>>     you shared a assembly usage of the Maven plugin.
>>>>>>>
>>>>>>>     For the kar, you can specify a kar packaging and kar goal. Then
>>>>>>> it
>>>>>>>     will package all repositories/features for your features
>>>>>>> repository.
>>>>>>>
>>>>>>>     Regards
>>>>>>>     JB
>>>>>>>
>>>>>>>
>>>>>>>     On 10/04/2018 13:39, nino martinez wael wrote:
>>>>>>>
>>>>>>>         Hi
>>>>>>>
>>>>>>>         I cannot get the karaf maven plugin to pull in all jars
>>>>>>> needed
>>>>>>>         for my app, it only generates an empty feature.xml..
>>>>>>>
>>>>>>>         Normally we are building a full custom Karaf assembly per
>>>>>>>         project, but we are changing it.
>>>>>>>
>>>>>>>         The idea are just to make a kar instead providing all the
>>>>>>> jars,
>>>>>>>         often the environment we are installing to do no have any
>>>>>>>         internet connection.
>>>>>>>
>>>>>>>         Here are my pom (I get a fully working karaf assembly if I
>>>>>>>         change packaging to karaf-assembly)
>>>>>>>
>>>>>>>
>>>>>>>         <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>         <project xmlns="http://maven.apache.org/POM/4.0.0
>>>>>>>         <http://maven.apache.org/POM/4.0.0>"
>>>>>>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>>>>>>         <http://www.w3.org/2001/XMLSchema-instance>"
>>>>>>>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>>>>         < http://maven.apache.org/POM/4.0.0>
>>>>>>>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>>>>>>>
>>>>>>>         < http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>>>>>>>               <modelVersion>4.0.0</modelVer sion>
>>>>>>>               <parent>
>>>>>>>                   <groupId>com.netdesign.ccadmi n</groupId>
>>>>>>>                   <artifactId>ccadmin</artifact Id>
>>>>>>>                   <version>3.0.0-SNAPSHOT</vers ion>
>>>>>>>               </parent>
>>>>>>>
>>>>>>>               <groupId>com.netdesign.ccadmi n</groupId>
>>>>>>>               <artifactId>ccadmin-karaf-ass embly</artifactId>
>>>>>>>               <packaging>kar</packaging>
>>>>>>>
>>>>>>>               <name>ccadmin-karaf-assembly< /name>
>>>>>>>
>>>>>>>               <properties>
>>>>>>>                           <project.build.sourceEncodin
>>>>>>> g>UTF-8</project.build. sourceEncoding>
>>>>>>>                   <karaf.version>4.2.0</karaf.v ersion>
>>>>>>>                   <cxf.version>3.2.4</cxf.versi on>
>>>>>>>               </properties>
>>>>>>>               <dependencies>
>>>>>>>                   <dependency>
>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>                       <artifactId>framework</artifa ctId>
>>>>>>>                       <type>kar</type>
>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>
>>>>>>>                   </dependency>
>>>>>>>                   <dependency>
>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>                       <artifactId>framework</artifa ctId>
>>>>>>>                       <classifier>features</classif ier>
>>>>>>>                       <type>xml</type>
>>>>>>>                       <scope>runtime</scope>
>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>                   </dependency>
>>>>>>>                   <dependency>
>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>                       <artifactId>standard</artifac tId>
>>>>>>>                       <classifier>features</classif ier>
>>>>>>>                       <type>xml</type>
>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>                   </dependency>
>>>>>>>
>>>>>>>                   <dependency>
>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>                       <artifactId>spring-legacy</ar tifactId>
>>>>>>>                       <classifier>features</classif ier>
>>>>>>>                       <type>xml</type>
>>>>>>>                       <scope>runtime</scope>
>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>                   </dependency>
>>>>>>>
>>>>>>>                   <!--<dependency>-->
>>>>>>>         <!--<groupId>org.apache.karaf. features</groupId>-->
>>>>>>>         <!--<artifactId>spring</artifa ctId>-->
>>>>>>>         <!--<classifier>features</clas sifier>-->
>>>>>>>         <!--<type>xml</type>-->
>>>>>>>         <!--<scope>runtime</scope>-->
>>>>>>>         <!--<version>${karaf.version}< /version>-->
>>>>>>>         <!--</dependency>-->
>>>>>>>         <dependency>
>>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>>                       <artifactId>enterprise</artif actId>
>>>>>>>                       <classifier>features</classif ier>
>>>>>>>                       <type>xml</type>
>>>>>>>                       <scope>runtime</scope>
>>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>>                   </dependency>
>>>>>>>                   <dependency>
>>>>>>>                       <groupId>org.apache.cxf.karaf </groupId>
>>>>>>>                       <artifactId>apache-cxf</artif actId>
>>>>>>>                       <classifier>features</classif ier>
>>>>>>>                       <type>xml</type>
>>>>>>>                       <scope>runtime</scope>
>>>>>>>                       <version>${cxf.version}</vers ion>
>>>>>>>                   </dependency>
>>>>>>>
>>>>>>>               </dependencies>
>>>>>>>               <profiles>
>>>>>>>                   <profile>
>>>>>>>                       <id>release</id>
>>>>>>>                       <activation>
>>>>>>>                           <property>
>>>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>>>                               <value>true</value>
>>>>>>>                           </property>
>>>>>>>                       </activation>
>>>>>>>                       <dependencies>
>>>>>>>                           <dependency>
>>>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>>>> ture</artifactId>
>>>>>>>                               <groupId>com.netdesign.ccadmi
>>>>>>> n</groupId>
>>>>>>>                               <classifier>features</classif ier>
>>>>>>>                               <type>xml</type>
>>>>>>>                               <version>${build.parent.versi
>>>>>>> on}</version>
>>>>>>>                               <scope>runtime</scope>
>>>>>>>                           </dependency>
>>>>>>>                       </dependencies>
>>>>>>>                   </profile>
>>>>>>>                   <profile>
>>>>>>>                       <id>snapshot</id>
>>>>>>>                       <activation>
>>>>>>>                           <property>
>>>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>>>                               <value>!true</value>
>>>>>>>                           </property>
>>>>>>>                       </activation>
>>>>>>>                       <dependencies>
>>>>>>>                           <dependency>
>>>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>>>> ture</artifactId>
>>>>>>>                               <groupId>com.netdesign.ccadmi
>>>>>>> n</groupId>
>>>>>>>                               <classifier>features</classif ier>
>>>>>>>                               <type>xml</type>
>>>>>>>                               <version>${project.version}</ version>
>>>>>>>                               <scope>runtime</scope>
>>>>>>>                           </dependency>
>>>>>>>                       </dependencies>
>>>>>>>                   </profile>
>>>>>>>
>>>>>>>               </profiles>
>>>>>>>               <build>
>>>>>>>                   <plugins>
>>>>>>>                       <plugin>
>>>>>>>                           <groupId>org.apache.maven.plu
>>>>>>> gins</groupId>
>>>>>>>                           <artifactId>maven-dependency-
>>>>>>> plugin</artifactId>
>>>>>>>                           <version>3.0.2</version>
>>>>>>>                       </plugin>
>>>>>>>                           <plugin>
>>>>>>>                               <groupId>org.apache.karaf.too
>>>>>>> ling</groupId>
>>>>>>>                               <artifactId>karaf-maven-plugi
>>>>>>> n</artifactId>
>>>>>>>                               <extensions>true</extensions>
>>>>>>>                               <version>${karaf.version}</ve rsion>
>>>>>>>                               <configuration>
>>>>>>>                                   <installedFeatures>
>>>>>>>                                       <feature>wrapper</feature>
>>>>>>>                                       <feature>cxf</feature>
>>>>>>>                                       <feature>cxf-commands</featur
>>>>>>> e>
>>>>>>>                                       <feature>ccadmin</feature>
>>>>>>>                                   </installedFeatures>
>>>>>>>                                   <bootFeatures>
>>>>>>>                                       <feature>standard</feature>
>>>>>>>                                       <feature>webconsole</feature>
>>>>>>>                                   </bootFeatures>
>>>>>>>                                   <javase>1.8</javase>
>>>>>>>                               </configuration>
>>>>>>>                           </plugin>
>>>>>>>                       </plugins>
>>>>>>>               </build>
>>>>>>>         </project>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>         --         Best regards / Med venlig hilsen
>>>>>>>         Nino Martinez
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best regards / Med venlig hilsen
>>>>>>> Nino Martinez
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards / Med venlig hilsen
>>>>> Nino Martinez
>>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
stop, I see a problem.. Let me test and get back.

On Wed, Apr 11, 2018 at 1:56 PM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> I mean shouldnt the plugin aggregate the features? and place all
> referenced jars in the repo?
>
> On Wed, Apr 11, 2018 at 10:24 AM, nino martinez wael <
> nino.martinez.wael@gmail.com> wrote:
>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <features name="ccadmin-repo-kar" xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.5.0 http://karaf.apache.org/xmlns/features/v1.5.0">
>>
>>     <repository>mvn:ccadmin-karaf-feature/features/3.0.0-SNAPSHOT/xml/features</repository>
>>
>>     <feature name="kar-build" version="1.0-SNAPSHOT">
>>         <feature>ccadmin</feature>
>>     </feature>
>>
>> </features>
>>
>>
>>
>> On Wed, Apr 11, 2018 at 9:51 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
>> wrote:
>>
>>> What does your features.xml look like ?
>>>
>>> Regards
>>> JB
>>> Le 11 avr. 2018, à 07:03, nino martinez wael <
>>> nino.martinez.wael@gmail.com> a écrit:
>>>
>>>> I just get an kar containing the feature.xml file, no jars included..
>>>>
>>>> It also complains:
>>>>
>>>> [WARNING] Your project should use the "kar" packaging or configure a
>>>> "classifier" for kar attachment
>>>>
>>>>
>>>> Changing packaging to kar makes no difference.
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Apr 10, 2018 at 9:20 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
>>>> wrote:
>>>>
>>>>> Yes,
>>>>>
>>>>> https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/ka
>>>>> raf-maven-example/karaf-maven-example-kar
>>>>>
>>>>> I'm polishing it but you have the rough idea.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 10/04/2018 20:01, nino martinez wael wrote:
>>>>>
>>>>>> hmm, packaging are
>>>>>>
>>>>>>     <packaging>kar</packaging>
>>>>>>
>>>>>> Are there some examples of the kar packaging?
>>>>>>
>>>>>>
>>>>>> On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré <
>>>>>> jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>>>
>>>>>>     Hi,
>>>>>>
>>>>>>     you shared a assembly usage of the Maven plugin.
>>>>>>
>>>>>>     For the kar, you can specify a kar packaging and kar goal. Then it
>>>>>>     will package all repositories/features for your features
>>>>>> repository.
>>>>>>
>>>>>>     Regards
>>>>>>     JB
>>>>>>
>>>>>>
>>>>>>     On 10/04/2018 13:39, nino martinez wael wrote:
>>>>>>
>>>>>>         Hi
>>>>>>
>>>>>>         I cannot get the karaf maven plugin to pull in all jars needed
>>>>>>         for my app, it only generates an empty feature.xml..
>>>>>>
>>>>>>         Normally we are building a full custom Karaf assembly per
>>>>>>         project, but we are changing it.
>>>>>>
>>>>>>         The idea are just to make a kar instead providing all the
>>>>>> jars,
>>>>>>         often the environment we are installing to do no have any
>>>>>>         internet connection.
>>>>>>
>>>>>>         Here are my pom (I get a fully working karaf assembly if I
>>>>>>         change packaging to karaf-assembly)
>>>>>>
>>>>>>
>>>>>>         <?xml version="1.0" encoding="UTF-8"?>
>>>>>>         <project xmlns="http://maven.apache.org/POM/4.0.0
>>>>>>         <http://maven.apache.org/POM/4.0.0>"
>>>>>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>>>>>         <http://www.w3.org/2001/XMLSchema-instance>"
>>>>>>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>>>         < http://maven.apache.org/POM/4.0.0>
>>>>>>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>>>>>>
>>>>>>         < http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>>>>>>               <modelVersion>4.0.0</modelVer sion>
>>>>>>               <parent>
>>>>>>                   <groupId>com.netdesign.ccadmi n</groupId>
>>>>>>                   <artifactId>ccadmin</artifact Id>
>>>>>>                   <version>3.0.0-SNAPSHOT</vers ion>
>>>>>>               </parent>
>>>>>>
>>>>>>               <groupId>com.netdesign.ccadmi n</groupId>
>>>>>>               <artifactId>ccadmin-karaf-ass embly</artifactId>
>>>>>>               <packaging>kar</packaging>
>>>>>>
>>>>>>               <name>ccadmin-karaf-assembly< /name>
>>>>>>
>>>>>>               <properties>
>>>>>>                           <project.build.sourceEncodin
>>>>>> g>UTF-8</project.build. sourceEncoding>
>>>>>>                   <karaf.version>4.2.0</karaf.v ersion>
>>>>>>                   <cxf.version>3.2.4</cxf.versi on>
>>>>>>               </properties>
>>>>>>               <dependencies>
>>>>>>                   <dependency>
>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>                       <artifactId>framework</artifa ctId>
>>>>>>                       <type>kar</type>
>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>
>>>>>>                   </dependency>
>>>>>>                   <dependency>
>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>                       <artifactId>framework</artifa ctId>
>>>>>>                       <classifier>features</classif ier>
>>>>>>                       <type>xml</type>
>>>>>>                       <scope>runtime</scope>
>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>                   </dependency>
>>>>>>                   <dependency>
>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>                       <artifactId>standard</artifac tId>
>>>>>>                       <classifier>features</classif ier>
>>>>>>                       <type>xml</type>
>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>                   </dependency>
>>>>>>
>>>>>>                   <dependency>
>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>                       <artifactId>spring-legacy</ar tifactId>
>>>>>>                       <classifier>features</classif ier>
>>>>>>                       <type>xml</type>
>>>>>>                       <scope>runtime</scope>
>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>                   </dependency>
>>>>>>
>>>>>>                   <!--<dependency>-->
>>>>>>         <!--<groupId>org.apache.karaf. features</groupId>-->
>>>>>>         <!--<artifactId>spring</artifa ctId>-->
>>>>>>         <!--<classifier>features</clas sifier>-->
>>>>>>         <!--<type>xml</type>-->
>>>>>>         <!--<scope>runtime</scope>-->
>>>>>>         <!--<version>${karaf.version}< /version>-->
>>>>>>         <!--</dependency>-->
>>>>>>         <dependency>
>>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>>                       <artifactId>enterprise</artif actId>
>>>>>>                       <classifier>features</classif ier>
>>>>>>                       <type>xml</type>
>>>>>>                       <scope>runtime</scope>
>>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>>                   </dependency>
>>>>>>                   <dependency>
>>>>>>                       <groupId>org.apache.cxf.karaf </groupId>
>>>>>>                       <artifactId>apache-cxf</artif actId>
>>>>>>                       <classifier>features</classif ier>
>>>>>>                       <type>xml</type>
>>>>>>                       <scope>runtime</scope>
>>>>>>                       <version>${cxf.version}</vers ion>
>>>>>>                   </dependency>
>>>>>>
>>>>>>               </dependencies>
>>>>>>               <profiles>
>>>>>>                   <profile>
>>>>>>                       <id>release</id>
>>>>>>                       <activation>
>>>>>>                           <property>
>>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>>                               <value>true</value>
>>>>>>                           </property>
>>>>>>                       </activation>
>>>>>>                       <dependencies>
>>>>>>                           <dependency>
>>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>>> ture</artifactId>
>>>>>>                               <groupId>com.netdesign.ccadmi
>>>>>> n</groupId>
>>>>>>                               <classifier>features</classif ier>
>>>>>>                               <type>xml</type>
>>>>>>                               <version>${build.parent.versi
>>>>>> on}</version>
>>>>>>                               <scope>runtime</scope>
>>>>>>                           </dependency>
>>>>>>                       </dependencies>
>>>>>>                   </profile>
>>>>>>                   <profile>
>>>>>>                       <id>snapshot</id>
>>>>>>                       <activation>
>>>>>>                           <property>
>>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>>                               <value>!true</value>
>>>>>>                           </property>
>>>>>>                       </activation>
>>>>>>                       <dependencies>
>>>>>>                           <dependency>
>>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>>> ture</artifactId>
>>>>>>                               <groupId>com.netdesign.ccadmi
>>>>>> n</groupId>
>>>>>>                               <classifier>features</classif ier>
>>>>>>                               <type>xml</type>
>>>>>>                               <version>${project.version}</ version>
>>>>>>                               <scope>runtime</scope>
>>>>>>                           </dependency>
>>>>>>                       </dependencies>
>>>>>>                   </profile>
>>>>>>
>>>>>>               </profiles>
>>>>>>               <build>
>>>>>>                   <plugins>
>>>>>>                       <plugin>
>>>>>>                           <groupId>org.apache.maven.plu
>>>>>> gins</groupId>
>>>>>>                           <artifactId>maven-dependency-
>>>>>> plugin</artifactId>
>>>>>>                           <version>3.0.2</version>
>>>>>>                       </plugin>
>>>>>>                           <plugin>
>>>>>>                               <groupId>org.apache.karaf.too
>>>>>> ling</groupId>
>>>>>>                               <artifactId>karaf-maven-plugi
>>>>>> n</artifactId>
>>>>>>                               <extensions>true</extensions>
>>>>>>                               <version>${karaf.version}</ve rsion>
>>>>>>                               <configuration>
>>>>>>                                   <installedFeatures>
>>>>>>                                       <feature>wrapper</feature>
>>>>>>                                       <feature>cxf</feature>
>>>>>>                                       <feature>cxf-commands</featur
>>>>>> e>
>>>>>>                                       <feature>ccadmin</feature>
>>>>>>                                   </installedFeatures>
>>>>>>                                   <bootFeatures>
>>>>>>                                       <feature>standard</feature>
>>>>>>                                       <feature>webconsole</feature>
>>>>>>                                   </bootFeatures>
>>>>>>                                   <javase>1.8</javase>
>>>>>>                               </configuration>
>>>>>>                           </plugin>
>>>>>>                       </plugins>
>>>>>>               </build>
>>>>>>         </project>
>>>>>>
>>>>>>
>>>>>>
>>>>>>         --         Best regards / Med venlig hilsen
>>>>>>         Nino Martinez
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards / Med venlig hilsen
>>>>>> Nino Martinez
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best regards / Med venlig hilsen
>>>> Nino Martinez
>>>>
>>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
I mean shouldnt the plugin aggregate the features? and place all referenced
jars in the repo?

On Wed, Apr 11, 2018 at 10:24 AM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> <?xml version="1.0" encoding="UTF-8"?>
> <features name="ccadmin-repo-kar" xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.5.0 http://karaf.apache.org/xmlns/features/v1.5.0">
>
>     <repository>mvn:ccadmin-karaf-feature/features/3.0.0-SNAPSHOT/xml/features</repository>
>
>     <feature name="kar-build" version="1.0-SNAPSHOT">
>         <feature>ccadmin</feature>
>     </feature>
>
> </features>
>
>
>
> On Wed, Apr 11, 2018 at 9:51 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
>
>> What does your features.xml look like ?
>>
>> Regards
>> JB
>> Le 11 avr. 2018, à 07:03, nino martinez wael <
>> nino.martinez.wael@gmail.com> a écrit:
>>
>>> I just get an kar containing the feature.xml file, no jars included..
>>>
>>> It also complains:
>>>
>>> [WARNING] Your project should use the "kar" packaging or configure a
>>> "classifier" for kar attachment
>>>
>>>
>>> Changing packaging to kar makes no difference.
>>>
>>>
>>>
>>>
>>> On Tue, Apr 10, 2018 at 9:20 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
>>> wrote:
>>>
>>>> Yes,
>>>>
>>>> https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/ka
>>>> raf-maven-example/karaf-maven-example-kar
>>>>
>>>> I'm polishing it but you have the rough idea.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 10/04/2018 20:01, nino martinez wael wrote:
>>>>
>>>>> hmm, packaging are
>>>>>
>>>>>     <packaging>kar</packaging>
>>>>>
>>>>> Are there some examples of the kar packaging?
>>>>>
>>>>>
>>>>> On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>>>>> <ma...@nanthrax.net>> wrote:
>>>>>
>>>>>     Hi,
>>>>>
>>>>>     you shared a assembly usage of the Maven plugin.
>>>>>
>>>>>     For the kar, you can specify a kar packaging and kar goal. Then it
>>>>>     will package all repositories/features for your features
>>>>> repository.
>>>>>
>>>>>     Regards
>>>>>     JB
>>>>>
>>>>>
>>>>>     On 10/04/2018 13:39, nino martinez wael wrote:
>>>>>
>>>>>         Hi
>>>>>
>>>>>         I cannot get the karaf maven plugin to pull in all jars needed
>>>>>         for my app, it only generates an empty feature.xml..
>>>>>
>>>>>         Normally we are building a full custom Karaf assembly per
>>>>>         project, but we are changing it.
>>>>>
>>>>>         The idea are just to make a kar instead providing all the jars,
>>>>>         often the environment we are installing to do no have any
>>>>>         internet connection.
>>>>>
>>>>>         Here are my pom (I get a fully working karaf assembly if I
>>>>>         change packaging to karaf-assembly)
>>>>>
>>>>>
>>>>>         <?xml version="1.0" encoding="UTF-8"?>
>>>>>         <project xmlns="http://maven.apache.org/POM/4.0.0
>>>>>         <http://maven.apache.org/POM/4.0.0>"
>>>>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>>>>         <http://www.w3.org/2001/XMLSchema-instance>"
>>>>>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>>         < http://maven.apache.org/POM/4.0.0>
>>>>>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>>>>>
>>>>>         < http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>>>>>               <modelVersion>4.0.0</modelVer sion>
>>>>>               <parent>
>>>>>                   <groupId>com.netdesign.ccadmi n</groupId>
>>>>>                   <artifactId>ccadmin</artifact Id>
>>>>>                   <version>3.0.0-SNAPSHOT</vers ion>
>>>>>               </parent>
>>>>>
>>>>>               <groupId>com.netdesign.ccadmi n</groupId>
>>>>>               <artifactId>ccadmin-karaf-ass embly</artifactId>
>>>>>               <packaging>kar</packaging>
>>>>>
>>>>>               <name>ccadmin-karaf-assembly< /name>
>>>>>
>>>>>               <properties>
>>>>>                           <project.build.sourceEncodin
>>>>> g>UTF-8</project.build. sourceEncoding>
>>>>>                   <karaf.version>4.2.0</karaf.v ersion>
>>>>>                   <cxf.version>3.2.4</cxf.versi on>
>>>>>               </properties>
>>>>>               <dependencies>
>>>>>                   <dependency>
>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>                       <artifactId>framework</artifa ctId>
>>>>>                       <type>kar</type>
>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>
>>>>>                   </dependency>
>>>>>                   <dependency>
>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>                       <artifactId>framework</artifa ctId>
>>>>>                       <classifier>features</classif ier>
>>>>>                       <type>xml</type>
>>>>>                       <scope>runtime</scope>
>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>                   </dependency>
>>>>>                   <dependency>
>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>                       <artifactId>standard</artifac tId>
>>>>>                       <classifier>features</classif ier>
>>>>>                       <type>xml</type>
>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>                   </dependency>
>>>>>
>>>>>                   <dependency>
>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>                       <artifactId>spring-legacy</ar tifactId>
>>>>>                       <classifier>features</classif ier>
>>>>>                       <type>xml</type>
>>>>>                       <scope>runtime</scope>
>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>                   </dependency>
>>>>>
>>>>>                   <!--<dependency>-->
>>>>>         <!--<groupId>org.apache.karaf. features</groupId>-->
>>>>>         <!--<artifactId>spring</artifa ctId>-->
>>>>>         <!--<classifier>features</clas sifier>-->
>>>>>         <!--<type>xml</type>-->
>>>>>         <!--<scope>runtime</scope>-->
>>>>>         <!--<version>${karaf.version}< /version>-->
>>>>>         <!--</dependency>-->
>>>>>         <dependency>
>>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>>                       <artifactId>enterprise</artif actId>
>>>>>                       <classifier>features</classif ier>
>>>>>                       <type>xml</type>
>>>>>                       <scope>runtime</scope>
>>>>>                       <version>${karaf.version}</ve rsion>
>>>>>                   </dependency>
>>>>>                   <dependency>
>>>>>                       <groupId>org.apache.cxf.karaf </groupId>
>>>>>                       <artifactId>apache-cxf</artif actId>
>>>>>                       <classifier>features</classif ier>
>>>>>                       <type>xml</type>
>>>>>                       <scope>runtime</scope>
>>>>>                       <version>${cxf.version}</vers ion>
>>>>>                   </dependency>
>>>>>
>>>>>               </dependencies>
>>>>>               <profiles>
>>>>>                   <profile>
>>>>>                       <id>release</id>
>>>>>                       <activation>
>>>>>                           <property>
>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>                               <value>true</value>
>>>>>                           </property>
>>>>>                       </activation>
>>>>>                       <dependencies>
>>>>>                           <dependency>
>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>> ture</artifactId>
>>>>>                               <groupId>com.netdesign.ccadmi
>>>>> n</groupId>
>>>>>                               <classifier>features</classif ier>
>>>>>                               <type>xml</type>
>>>>>                               <version>${build.parent.versi
>>>>> on}</version>
>>>>>                               <scope>runtime</scope>
>>>>>                           </dependency>
>>>>>                       </dependencies>
>>>>>                   </profile>
>>>>>                   <profile>
>>>>>                       <id>snapshot</id>
>>>>>                       <activation>
>>>>>                           <property>
>>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>>                               <value>!true</value>
>>>>>                           </property>
>>>>>                       </activation>
>>>>>                       <dependencies>
>>>>>                           <dependency>
>>>>>                               <artifactId>ccadmin-karaf-fea
>>>>> ture</artifactId>
>>>>>                               <groupId>com.netdesign.ccadmi
>>>>> n</groupId>
>>>>>                               <classifier>features</classif ier>
>>>>>                               <type>xml</type>
>>>>>                               <version>${project.version}</ version>
>>>>>                               <scope>runtime</scope>
>>>>>                           </dependency>
>>>>>                       </dependencies>
>>>>>                   </profile>
>>>>>
>>>>>               </profiles>
>>>>>               <build>
>>>>>                   <plugins>
>>>>>                       <plugin>
>>>>>                           <groupId>org.apache.maven.plu gins</groupId>
>>>>>                           <artifactId>maven-dependency-
>>>>> plugin</artifactId>
>>>>>                           <version>3.0.2</version>
>>>>>                       </plugin>
>>>>>                           <plugin>
>>>>>                               <groupId>org.apache.karaf.too
>>>>> ling</groupId>
>>>>>                               <artifactId>karaf-maven-plugi
>>>>> n</artifactId>
>>>>>                               <extensions>true</extensions>
>>>>>                               <version>${karaf.version}</ve rsion>
>>>>>                               <configuration>
>>>>>                                   <installedFeatures>
>>>>>                                       <feature>wrapper</feature>
>>>>>                                       <feature>cxf</feature>
>>>>>                                       <feature>cxf-commands</featur e>
>>>>>                                       <feature>ccadmin</feature>
>>>>>                                   </installedFeatures>
>>>>>                                   <bootFeatures>
>>>>>                                       <feature>standard</feature>
>>>>>                                       <feature>webconsole</feature>
>>>>>                                   </bootFeatures>
>>>>>                                   <javase>1.8</javase>
>>>>>                               </configuration>
>>>>>                           </plugin>
>>>>>                       </plugins>
>>>>>               </build>
>>>>>         </project>
>>>>>
>>>>>
>>>>>
>>>>>         --         Best regards / Med venlig hilsen
>>>>>         Nino Martinez
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards / Med venlig hilsen
>>>>> Nino Martinez
>>>>>
>>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
<?xml version="1.0" encoding="UTF-8"?>
<features name="ccadmin-repo-kar"
xmlns="http://karaf.apache.org/xmlns/features/v1.5.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.5.0
http://karaf.apache.org/xmlns/features/v1.5.0">

    <repository>mvn:ccadmin-karaf-feature/features/3.0.0-SNAPSHOT/xml/features</repository>

    <feature name="kar-build" version="1.0-SNAPSHOT">
        <feature>ccadmin</feature>
    </feature>

</features>



On Wed, Apr 11, 2018 at 9:51 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> What does your features.xml look like ?
>
> Regards
> JB
> Le 11 avr. 2018, à 07:03, nino martinez wael <ni...@gmail.com>
> a écrit:
>
>> I just get an kar containing the feature.xml file, no jars included..
>>
>> It also complains:
>>
>> [WARNING] Your project should use the "kar" packaging or configure a
>> "classifier" for kar attachment
>>
>>
>> Changing packaging to kar makes no difference.
>>
>>
>>
>>
>> On Tue, Apr 10, 2018 at 9:20 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
>> wrote:
>>
>>> Yes,
>>>
>>> https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/ka
>>> raf-maven-example/karaf-maven-example-kar
>>>
>>> I'm polishing it but you have the rough idea.
>>>
>>> Regards
>>> JB
>>>
>>> On 10/04/2018 20:01, nino martinez wael wrote:
>>>
>>>> hmm, packaging are
>>>>
>>>>     <packaging>kar</packaging>
>>>>
>>>> Are there some examples of the kar packaging?
>>>>
>>>>
>>>> On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>>>> <ma...@nanthrax.net>> wrote:
>>>>
>>>>     Hi,
>>>>
>>>>     you shared a assembly usage of the Maven plugin.
>>>>
>>>>     For the kar, you can specify a kar packaging and kar goal. Then it
>>>>     will package all repositories/features for your features repository.
>>>>
>>>>     Regards
>>>>     JB
>>>>
>>>>
>>>>     On 10/04/2018 13:39, nino martinez wael wrote:
>>>>
>>>>         Hi
>>>>
>>>>         I cannot get the karaf maven plugin to pull in all jars needed
>>>>         for my app, it only generates an empty feature.xml..
>>>>
>>>>         Normally we are building a full custom Karaf assembly per
>>>>         project, but we are changing it.
>>>>
>>>>         The idea are just to make a kar instead providing all the jars,
>>>>         often the environment we are installing to do no have any
>>>>         internet connection.
>>>>
>>>>         Here are my pom (I get a fully working karaf assembly if I
>>>>         change packaging to karaf-assembly)
>>>>
>>>>
>>>>         <?xml version="1.0" encoding="UTF-8"?>
>>>>         <project xmlns="http://maven.apache.org/POM/4.0.0
>>>>         <http://maven.apache.org/POM/4.0.0>"
>>>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>>>         <http://www.w3.org/2001/XMLSchema-instance>"
>>>>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>         < http://maven.apache.org/POM/4.0.0>
>>>>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>>>>
>>>>         < http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>>>>               <modelVersion>4.0.0</modelVer sion>
>>>>               <parent>
>>>>                   <groupId>com.netdesign.ccadmi n</groupId>
>>>>                   <artifactId>ccadmin</artifact Id>
>>>>                   <version>3.0.0-SNAPSHOT</vers ion>
>>>>               </parent>
>>>>
>>>>               <groupId>com.netdesign.ccadmi n</groupId>
>>>>               <artifactId>ccadmin-karaf-ass embly</artifactId>
>>>>               <packaging>kar</packaging>
>>>>
>>>>               <name>ccadmin-karaf-assembly< /name>
>>>>
>>>>               <properties>
>>>>                           <project.build.sourceEncodin
>>>> g>UTF-8</project.build. sourceEncoding>
>>>>                   <karaf.version>4.2.0</karaf.v ersion>
>>>>                   <cxf.version>3.2.4</cxf.versi on>
>>>>               </properties>
>>>>               <dependencies>
>>>>                   <dependency>
>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>                       <artifactId>framework</artifa ctId>
>>>>                       <type>kar</type>
>>>>                       <version>${karaf.version}</ve rsion>
>>>>
>>>>                   </dependency>
>>>>                   <dependency>
>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>                       <artifactId>framework</artifa ctId>
>>>>                       <classifier>features</classif ier>
>>>>                       <type>xml</type>
>>>>                       <scope>runtime</scope>
>>>>                       <version>${karaf.version}</ve rsion>
>>>>                   </dependency>
>>>>                   <dependency>
>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>                       <artifactId>standard</artifac tId>
>>>>                       <classifier>features</classif ier>
>>>>                       <type>xml</type>
>>>>                       <version>${karaf.version}</ve rsion>
>>>>                   </dependency>
>>>>
>>>>                   <dependency>
>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>                       <artifactId>spring-legacy</ar tifactId>
>>>>                       <classifier>features</classif ier>
>>>>                       <type>xml</type>
>>>>                       <scope>runtime</scope>
>>>>                       <version>${karaf.version}</ve rsion>
>>>>                   </dependency>
>>>>
>>>>                   <!--<dependency>-->
>>>>         <!--<groupId>org.apache.karaf. features</groupId>-->
>>>>         <!--<artifactId>spring</artifa ctId>-->
>>>>         <!--<classifier>features</clas sifier>-->
>>>>         <!--<type>xml</type>-->
>>>>         <!--<scope>runtime</scope>-->
>>>>         <!--<version>${karaf.version}< /version>-->
>>>>         <!--</dependency>-->
>>>>         <dependency>
>>>>                       <groupId>org.apache.karaf.fea tures</groupId>
>>>>                       <artifactId>enterprise</artif actId>
>>>>                       <classifier>features</classif ier>
>>>>                       <type>xml</type>
>>>>                       <scope>runtime</scope>
>>>>                       <version>${karaf.version}</ve rsion>
>>>>                   </dependency>
>>>>                   <dependency>
>>>>                       <groupId>org.apache.cxf.karaf </groupId>
>>>>                       <artifactId>apache-cxf</artif actId>
>>>>                       <classifier>features</classif ier>
>>>>                       <type>xml</type>
>>>>                       <scope>runtime</scope>
>>>>                       <version>${cxf.version}</vers ion>
>>>>                   </dependency>
>>>>
>>>>               </dependencies>
>>>>               <profiles>
>>>>                   <profile>
>>>>                       <id>release</id>
>>>>                       <activation>
>>>>                           <property>
>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>                               <value>true</value>
>>>>                           </property>
>>>>                       </activation>
>>>>                       <dependencies>
>>>>                           <dependency>
>>>>                               <artifactId>ccadmin-karaf-fea
>>>> ture</artifactId>
>>>>                               <groupId>com.netdesign.ccadmi n</groupId>
>>>>                               <classifier>features</classif ier>
>>>>                               <type>xml</type>
>>>>                               <version>${build.parent.versi
>>>> on}</version>
>>>>                               <scope>runtime</scope>
>>>>                           </dependency>
>>>>                       </dependencies>
>>>>                   </profile>
>>>>                   <profile>
>>>>                       <id>snapshot</id>
>>>>                       <activation>
>>>>                           <property>
>>>>                               <name>IS_M2RELEASEBUILD</name >
>>>>                               <value>!true</value>
>>>>                           </property>
>>>>                       </activation>
>>>>                       <dependencies>
>>>>                           <dependency>
>>>>                               <artifactId>ccadmin-karaf-fea
>>>> ture</artifactId>
>>>>                               <groupId>com.netdesign.ccadmi n</groupId>
>>>>                               <classifier>features</classif ier>
>>>>                               <type>xml</type>
>>>>                               <version>${project.version}</ version>
>>>>                               <scope>runtime</scope>
>>>>                           </dependency>
>>>>                       </dependencies>
>>>>                   </profile>
>>>>
>>>>               </profiles>
>>>>               <build>
>>>>                   <plugins>
>>>>                       <plugin>
>>>>                           <groupId>org.apache.maven.plu gins</groupId>
>>>>                           <artifactId>maven-dependency-
>>>> plugin</artifactId>
>>>>                           <version>3.0.2</version>
>>>>                       </plugin>
>>>>                           <plugin>
>>>>                               <groupId>org.apache.karaf.too
>>>> ling</groupId>
>>>>                               <artifactId>karaf-maven-plugi
>>>> n</artifactId>
>>>>                               <extensions>true</extensions>
>>>>                               <version>${karaf.version}</ve rsion>
>>>>                               <configuration>
>>>>                                   <installedFeatures>
>>>>                                       <feature>wrapper</feature>
>>>>                                       <feature>cxf</feature>
>>>>                                       <feature>cxf-commands</featur e>
>>>>                                       <feature>ccadmin</feature>
>>>>                                   </installedFeatures>
>>>>                                   <bootFeatures>
>>>>                                       <feature>standard</feature>
>>>>                                       <feature>webconsole</feature>
>>>>                                   </bootFeatures>
>>>>                                   <javase>1.8</javase>
>>>>                               </configuration>
>>>>                           </plugin>
>>>>                       </plugins>
>>>>               </build>
>>>>         </project>
>>>>
>>>>
>>>>
>>>>         --         Best regards / Med venlig hilsen
>>>>         Nino Martinez
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards / Med venlig hilsen
>>>> Nino Martinez
>>>>
>>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
What does your features.xml look like ?

Regards
JB

Le 11 avr. 2018 à 07:03, à 07:03, nino martinez wael <ni...@gmail.com> a écrit:
>I just get an kar containing the feature.xml file, no jars included..
>
>It also complains:
>
>[WARNING] Your project should use the "kar" packaging or configure a
>"classifier" for kar attachment
>
>
>Changing packaging to kar makes no difference.
>
>
>
>
>On Tue, Apr 10, 2018 at 9:20 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
>wrote:
>
>> Yes,
>>
>> https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/ka
>> raf-maven-example/karaf-maven-example-kar
>>
>> I'm polishing it but you have the rough idea.
>>
>> Regards
>> JB
>>
>> On 10/04/2018 20:01, nino martinez wael wrote:
>>
>>> hmm, packaging are
>>>
>>>     <packaging>kar</packaging>
>>>
>>> Are there some examples of the kar packaging?
>>>
>>>
>>> On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré
><jb@nanthrax.net
>>> <ma...@nanthrax.net>> wrote:
>>>
>>>     Hi,
>>>
>>>     you shared a assembly usage of the Maven plugin.
>>>
>>>     For the kar, you can specify a kar packaging and kar goal. Then
>it
>>>     will package all repositories/features for your features
>repository.
>>>
>>>     Regards
>>>     JB
>>>
>>>
>>>     On 10/04/2018 13:39, nino martinez wael wrote:
>>>
>>>         Hi
>>>
>>>         I cannot get the karaf maven plugin to pull in all jars
>needed
>>>         for my app, it only generates an empty feature.xml..
>>>
>>>         Normally we are building a full custom Karaf assembly per
>>>         project, but we are changing it.
>>>
>>>         The idea are just to make a kar instead providing all the
>jars,
>>>         often the environment we are installing to do no have any
>>>         internet connection.
>>>
>>>         Here are my pom (I get a fully working karaf assembly if I
>>>         change packaging to karaf-assembly)
>>>
>>>
>>>         <?xml version="1.0" encoding="UTF-8"?>
>>>         <project xmlns="http://maven.apache.org/POM/4.0.0
>>>         <http://maven.apache.org/POM/4.0.0>"
>>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>>         <http://www.w3.org/2001/XMLSchema-instance>"
>>>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>         <http://maven.apache.org/POM/4.0.0>
>>>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>>>
>>>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>>>               <modelVersion>4.0.0</modelVersion>
>>>               <parent>
>>>                   <groupId>com.netdesign.ccadmin</groupId>
>>>                   <artifactId>ccadmin</artifactId>
>>>                   <version>3.0.0-SNAPSHOT</version>
>>>               </parent>
>>>
>>>               <groupId>com.netdesign.ccadmin</groupId>
>>>               <artifactId>ccadmin-karaf-assembly</artifactId>
>>>               <packaging>kar</packaging>
>>>
>>>               <name>ccadmin-karaf-assembly</name>
>>>
>>>               <properties>
>>>                           <project.build.sourceEncodin
>>> g>UTF-8</project.build.sourceEncoding>
>>>                   <karaf.version>4.2.0</karaf.version>
>>>                   <cxf.version>3.2.4</cxf.version>
>>>               </properties>
>>>               <dependencies>
>>>                   <dependency>
>>>                       <groupId>org.apache.karaf.features</groupId>
>>>                       <artifactId>framework</artifactId>
>>>                       <type>kar</type>
>>>                       <version>${karaf.version}</version>
>>>
>>>                   </dependency>
>>>                   <dependency>
>>>                       <groupId>org.apache.karaf.features</groupId>
>>>                       <artifactId>framework</artifactId>
>>>                       <classifier>features</classifier>
>>>                       <type>xml</type>
>>>                       <scope>runtime</scope>
>>>                       <version>${karaf.version}</version>
>>>                   </dependency>
>>>                   <dependency>
>>>                       <groupId>org.apache.karaf.features</groupId>
>>>                       <artifactId>standard</artifactId>
>>>                       <classifier>features</classifier>
>>>                       <type>xml</type>
>>>                       <version>${karaf.version}</version>
>>>                   </dependency>
>>>
>>>                   <dependency>
>>>                       <groupId>org.apache.karaf.features</groupId>
>>>                       <artifactId>spring-legacy</artifactId>
>>>                       <classifier>features</classifier>
>>>                       <type>xml</type>
>>>                       <scope>runtime</scope>
>>>                       <version>${karaf.version}</version>
>>>                   </dependency>
>>>
>>>                   <!--<dependency>-->
>>>         <!--<groupId>org.apache.karaf.features</groupId>-->
>>>         <!--<artifactId>spring</artifactId>-->
>>>         <!--<classifier>features</classifier>-->
>>>         <!--<type>xml</type>-->
>>>         <!--<scope>runtime</scope>-->
>>>         <!--<version>${karaf.version}</version>-->
>>>         <!--</dependency>-->
>>>         <dependency>
>>>                       <groupId>org.apache.karaf.features</groupId>
>>>                       <artifactId>enterprise</artifactId>
>>>                       <classifier>features</classifier>
>>>                       <type>xml</type>
>>>                       <scope>runtime</scope>
>>>                       <version>${karaf.version}</version>
>>>                   </dependency>
>>>                   <dependency>
>>>                       <groupId>org.apache.cxf.karaf</groupId>
>>>                       <artifactId>apache-cxf</artifactId>
>>>                       <classifier>features</classifier>
>>>                       <type>xml</type>
>>>                       <scope>runtime</scope>
>>>                       <version>${cxf.version}</version>
>>>                   </dependency>
>>>
>>>               </dependencies>
>>>               <profiles>
>>>                   <profile>
>>>                       <id>release</id>
>>>                       <activation>
>>>                           <property>
>>>                               <name>IS_M2RELEASEBUILD</name>
>>>                               <value>true</value>
>>>                           </property>
>>>                       </activation>
>>>                       <dependencies>
>>>                           <dependency>
>>>                               <artifactId>ccadmin-karaf-fea
>>> ture</artifactId>
>>>                              
><groupId>com.netdesign.ccadmin</groupId>
>>>                               <classifier>features</classifier>
>>>                               <type>xml</type>
>>>                              
><version>${build.parent.version}</version>
>>>                               <scope>runtime</scope>
>>>                           </dependency>
>>>                       </dependencies>
>>>                   </profile>
>>>                   <profile>
>>>                       <id>snapshot</id>
>>>                       <activation>
>>>                           <property>
>>>                               <name>IS_M2RELEASEBUILD</name>
>>>                               <value>!true</value>
>>>                           </property>
>>>                       </activation>
>>>                       <dependencies>
>>>                           <dependency>
>>>                               <artifactId>ccadmin-karaf-fea
>>> ture</artifactId>
>>>                              
><groupId>com.netdesign.ccadmin</groupId>
>>>                               <classifier>features</classifier>
>>>                               <type>xml</type>
>>>                               <version>${project.version}</version>
>>>                               <scope>runtime</scope>
>>>                           </dependency>
>>>                       </dependencies>
>>>                   </profile>
>>>
>>>               </profiles>
>>>               <build>
>>>                   <plugins>
>>>                       <plugin>
>>>                          
><groupId>org.apache.maven.plugins</groupId>
>>>                           <artifactId>maven-dependency-
>>> plugin</artifactId>
>>>                           <version>3.0.2</version>
>>>                       </plugin>
>>>                           <plugin>
>>>                              
><groupId>org.apache.karaf.tooling</groupId>
>>>                              
><artifactId>karaf-maven-plugin</artifactId>
>>>                               <extensions>true</extensions>
>>>                               <version>${karaf.version}</version>
>>>                               <configuration>
>>>                                   <installedFeatures>
>>>                                       <feature>wrapper</feature>
>>>                                       <feature>cxf</feature>
>>>                                      
><feature>cxf-commands</feature>
>>>                                       <feature>ccadmin</feature>
>>>                                   </installedFeatures>
>>>                                   <bootFeatures>
>>>                                       <feature>standard</feature>
>>>                                       <feature>webconsole</feature>
>>>                                   </bootFeatures>
>>>                                   <javase>1.8</javase>
>>>                               </configuration>
>>>                           </plugin>
>>>                       </plugins>
>>>               </build>
>>>         </project>
>>>
>>>
>>>
>>>         --         Best regards / Med venlig hilsen
>>>         Nino Martinez
>>>
>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>
>
>
>-- 
>Best regards / Med venlig hilsen
>Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
I just get an kar containing the feature.xml file, no jars included..

It also complains:

[WARNING] Your project should use the "kar" packaging or configure a
"classifier" for kar attachment


Changing packaging to kar makes no difference.




On Tue, Apr 10, 2018 at 9:20 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Yes,
>
> https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/ka
> raf-maven-example/karaf-maven-example-kar
>
> I'm polishing it but you have the rough idea.
>
> Regards
> JB
>
> On 10/04/2018 20:01, nino martinez wael wrote:
>
>> hmm, packaging are
>>
>>     <packaging>kar</packaging>
>>
>> Are there some examples of the kar packaging?
>>
>>
>> On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>>     Hi,
>>
>>     you shared a assembly usage of the Maven plugin.
>>
>>     For the kar, you can specify a kar packaging and kar goal. Then it
>>     will package all repositories/features for your features repository.
>>
>>     Regards
>>     JB
>>
>>
>>     On 10/04/2018 13:39, nino martinez wael wrote:
>>
>>         Hi
>>
>>         I cannot get the karaf maven plugin to pull in all jars needed
>>         for my app, it only generates an empty feature.xml..
>>
>>         Normally we are building a full custom Karaf assembly per
>>         project, but we are changing it.
>>
>>         The idea are just to make a kar instead providing all the jars,
>>         often the environment we are installing to do no have any
>>         internet connection.
>>
>>         Here are my pom (I get a fully working karaf assembly if I
>>         change packaging to karaf-assembly)
>>
>>
>>         <?xml version="1.0" encoding="UTF-8"?>
>>         <project xmlns="http://maven.apache.org/POM/4.0.0
>>         <http://maven.apache.org/POM/4.0.0>"
>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>         <http://www.w3.org/2001/XMLSchema-instance>"
>>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>         <http://maven.apache.org/POM/4.0.0>
>>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>>
>>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>>               <modelVersion>4.0.0</modelVersion>
>>               <parent>
>>                   <groupId>com.netdesign.ccadmin</groupId>
>>                   <artifactId>ccadmin</artifactId>
>>                   <version>3.0.0-SNAPSHOT</version>
>>               </parent>
>>
>>               <groupId>com.netdesign.ccadmin</groupId>
>>               <artifactId>ccadmin-karaf-assembly</artifactId>
>>               <packaging>kar</packaging>
>>
>>               <name>ccadmin-karaf-assembly</name>
>>
>>               <properties>
>>                           <project.build.sourceEncodin
>> g>UTF-8</project.build.sourceEncoding>
>>                   <karaf.version>4.2.0</karaf.version>
>>                   <cxf.version>3.2.4</cxf.version>
>>               </properties>
>>               <dependencies>
>>                   <dependency>
>>                       <groupId>org.apache.karaf.features</groupId>
>>                       <artifactId>framework</artifactId>
>>                       <type>kar</type>
>>                       <version>${karaf.version}</version>
>>
>>                   </dependency>
>>                   <dependency>
>>                       <groupId>org.apache.karaf.features</groupId>
>>                       <artifactId>framework</artifactId>
>>                       <classifier>features</classifier>
>>                       <type>xml</type>
>>                       <scope>runtime</scope>
>>                       <version>${karaf.version}</version>
>>                   </dependency>
>>                   <dependency>
>>                       <groupId>org.apache.karaf.features</groupId>
>>                       <artifactId>standard</artifactId>
>>                       <classifier>features</classifier>
>>                       <type>xml</type>
>>                       <version>${karaf.version}</version>
>>                   </dependency>
>>
>>                   <dependency>
>>                       <groupId>org.apache.karaf.features</groupId>
>>                       <artifactId>spring-legacy</artifactId>
>>                       <classifier>features</classifier>
>>                       <type>xml</type>
>>                       <scope>runtime</scope>
>>                       <version>${karaf.version}</version>
>>                   </dependency>
>>
>>                   <!--<dependency>-->
>>         <!--<groupId>org.apache.karaf.features</groupId>-->
>>         <!--<artifactId>spring</artifactId>-->
>>         <!--<classifier>features</classifier>-->
>>         <!--<type>xml</type>-->
>>         <!--<scope>runtime</scope>-->
>>         <!--<version>${karaf.version}</version>-->
>>         <!--</dependency>-->
>>         <dependency>
>>                       <groupId>org.apache.karaf.features</groupId>
>>                       <artifactId>enterprise</artifactId>
>>                       <classifier>features</classifier>
>>                       <type>xml</type>
>>                       <scope>runtime</scope>
>>                       <version>${karaf.version}</version>
>>                   </dependency>
>>                   <dependency>
>>                       <groupId>org.apache.cxf.karaf</groupId>
>>                       <artifactId>apache-cxf</artifactId>
>>                       <classifier>features</classifier>
>>                       <type>xml</type>
>>                       <scope>runtime</scope>
>>                       <version>${cxf.version}</version>
>>                   </dependency>
>>
>>               </dependencies>
>>               <profiles>
>>                   <profile>
>>                       <id>release</id>
>>                       <activation>
>>                           <property>
>>                               <name>IS_M2RELEASEBUILD</name>
>>                               <value>true</value>
>>                           </property>
>>                       </activation>
>>                       <dependencies>
>>                           <dependency>
>>                               <artifactId>ccadmin-karaf-fea
>> ture</artifactId>
>>                               <groupId>com.netdesign.ccadmin</groupId>
>>                               <classifier>features</classifier>
>>                               <type>xml</type>
>>                               <version>${build.parent.version}</version>
>>                               <scope>runtime</scope>
>>                           </dependency>
>>                       </dependencies>
>>                   </profile>
>>                   <profile>
>>                       <id>snapshot</id>
>>                       <activation>
>>                           <property>
>>                               <name>IS_M2RELEASEBUILD</name>
>>                               <value>!true</value>
>>                           </property>
>>                       </activation>
>>                       <dependencies>
>>                           <dependency>
>>                               <artifactId>ccadmin-karaf-fea
>> ture</artifactId>
>>                               <groupId>com.netdesign.ccadmin</groupId>
>>                               <classifier>features</classifier>
>>                               <type>xml</type>
>>                               <version>${project.version}</version>
>>                               <scope>runtime</scope>
>>                           </dependency>
>>                       </dependencies>
>>                   </profile>
>>
>>               </profiles>
>>               <build>
>>                   <plugins>
>>                       <plugin>
>>                           <groupId>org.apache.maven.plugins</groupId>
>>                           <artifactId>maven-dependency-
>> plugin</artifactId>
>>                           <version>3.0.2</version>
>>                       </plugin>
>>                           <plugin>
>>                               <groupId>org.apache.karaf.tooling</groupId>
>>                               <artifactId>karaf-maven-plugin</artifactId>
>>                               <extensions>true</extensions>
>>                               <version>${karaf.version}</version>
>>                               <configuration>
>>                                   <installedFeatures>
>>                                       <feature>wrapper</feature>
>>                                       <feature>cxf</feature>
>>                                       <feature>cxf-commands</feature>
>>                                       <feature>ccadmin</feature>
>>                                   </installedFeatures>
>>                                   <bootFeatures>
>>                                       <feature>standard</feature>
>>                                       <feature>webconsole</feature>
>>                                   </bootFeatures>
>>                                   <javase>1.8</javase>
>>                               </configuration>
>>                           </plugin>
>>                       </plugins>
>>               </build>
>>         </project>
>>
>>
>>
>>         --         Best regards / Med venlig hilsen
>>         Nino Martinez
>>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes,

https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/karaf-maven-example/karaf-maven-example-kar

I'm polishing it but you have the rough idea.

Regards
JB

On 10/04/2018 20:01, nino martinez wael wrote:
> hmm, packaging are
> 
>     <packaging>kar</packaging>
> 
> Are there some examples of the kar packaging?
> 
> 
> On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré <jb@nanthrax.net 
> <ma...@nanthrax.net>> wrote:
> 
>     Hi,
> 
>     you shared a assembly usage of the Maven plugin.
> 
>     For the kar, you can specify a kar packaging and kar goal. Then it
>     will package all repositories/features for your features repository.
> 
>     Regards
>     JB
> 
> 
>     On 10/04/2018 13:39, nino martinez wael wrote:
> 
>         Hi
> 
>         I cannot get the karaf maven plugin to pull in all jars needed
>         for my app, it only generates an empty feature.xml..
> 
>         Normally we are building a full custom Karaf assembly per
>         project, but we are changing it.
> 
>         The idea are just to make a kar instead providing all the jars,
>         often the environment we are installing to do no have any
>         internet connection.
> 
>         Here are my pom (I get a fully working karaf assembly if I
>         change packaging to karaf-assembly)
> 
> 
>         <?xml version="1.0" encoding="UTF-8"?>
>         <project xmlns="http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>"
>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>         <http://maven.apache.org/POM/4.0.0>
>         http://maven.apache.org/xsd/maven-4.0.0.xsd
>         <http://maven.apache.org/xsd/maven-4.0.0.xsd>">
>               <modelVersion>4.0.0</modelVersion>
>               <parent>
>                   <groupId>com.netdesign.ccadmin</groupId>
>                   <artifactId>ccadmin</artifactId>
>                   <version>3.0.0-SNAPSHOT</version>
>               </parent>
> 
>               <groupId>com.netdesign.ccadmin</groupId>
>               <artifactId>ccadmin-karaf-assembly</artifactId>
>               <packaging>kar</packaging>
> 
>               <name>ccadmin-karaf-assembly</name>
> 
>               <properties>
>                 
>           <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>                   <karaf.version>4.2.0</karaf.version>
>                   <cxf.version>3.2.4</cxf.version>
>               </properties>
>               <dependencies>
>                   <dependency>
>                       <groupId>org.apache.karaf.features</groupId>
>                       <artifactId>framework</artifactId>
>                       <type>kar</type>
>                       <version>${karaf.version}</version>
> 
>                   </dependency>
>                   <dependency>
>                       <groupId>org.apache.karaf.features</groupId>
>                       <artifactId>framework</artifactId>
>                       <classifier>features</classifier>
>                       <type>xml</type>
>                       <scope>runtime</scope>
>                       <version>${karaf.version}</version>
>                   </dependency>
>                   <dependency>
>                       <groupId>org.apache.karaf.features</groupId>
>                       <artifactId>standard</artifactId>
>                       <classifier>features</classifier>
>                       <type>xml</type>
>                       <version>${karaf.version}</version>
>                   </dependency>
> 
>                   <dependency>
>                       <groupId>org.apache.karaf.features</groupId>
>                       <artifactId>spring-legacy</artifactId>
>                       <classifier>features</classifier>
>                       <type>xml</type>
>                       <scope>runtime</scope>
>                       <version>${karaf.version}</version>
>                   </dependency>
> 
>                   <!--<dependency>-->
>         <!--<groupId>org.apache.karaf.features</groupId>-->
>         <!--<artifactId>spring</artifactId>-->
>         <!--<classifier>features</classifier>-->
>         <!--<type>xml</type>-->
>         <!--<scope>runtime</scope>-->
>         <!--<version>${karaf.version}</version>-->
>         <!--</dependency>-->
>         <dependency>
>                       <groupId>org.apache.karaf.features</groupId>
>                       <artifactId>enterprise</artifactId>
>                       <classifier>features</classifier>
>                       <type>xml</type>
>                       <scope>runtime</scope>
>                       <version>${karaf.version}</version>
>                   </dependency>
>                   <dependency>
>                       <groupId>org.apache.cxf.karaf</groupId>
>                       <artifactId>apache-cxf</artifactId>
>                       <classifier>features</classifier>
>                       <type>xml</type>
>                       <scope>runtime</scope>
>                       <version>${cxf.version}</version>
>                   </dependency>
> 
>               </dependencies>
>               <profiles>
>                   <profile>
>                       <id>release</id>
>                       <activation>
>                           <property>
>                               <name>IS_M2RELEASEBUILD</name>
>                               <value>true</value>
>                           </property>
>                       </activation>
>                       <dependencies>
>                           <dependency>
>                               <artifactId>ccadmin-karaf-feature</artifactId>
>                               <groupId>com.netdesign.ccadmin</groupId>
>                               <classifier>features</classifier>
>                               <type>xml</type>
>                               <version>${build.parent.version}</version>
>                               <scope>runtime</scope>
>                           </dependency>
>                       </dependencies>
>                   </profile>
>                   <profile>
>                       <id>snapshot</id>
>                       <activation>
>                           <property>
>                               <name>IS_M2RELEASEBUILD</name>
>                               <value>!true</value>
>                           </property>
>                       </activation>
>                       <dependencies>
>                           <dependency>
>                               <artifactId>ccadmin-karaf-feature</artifactId>
>                               <groupId>com.netdesign.ccadmin</groupId>
>                               <classifier>features</classifier>
>                               <type>xml</type>
>                               <version>${project.version}</version>
>                               <scope>runtime</scope>
>                           </dependency>
>                       </dependencies>
>                   </profile>
> 
>               </profiles>
>               <build>
>                   <plugins>
>                       <plugin>
>                           <groupId>org.apache.maven.plugins</groupId>
>                           <artifactId>maven-dependency-plugin</artifactId>
>                           <version>3.0.2</version>
>                       </plugin>
>                           <plugin>
>                               <groupId>org.apache.karaf.tooling</groupId>
>                               <artifactId>karaf-maven-plugin</artifactId>
>                               <extensions>true</extensions>
>                               <version>${karaf.version}</version>
>                               <configuration>
>                                   <installedFeatures>
>                                       <feature>wrapper</feature>
>                                       <feature>cxf</feature>
>                                       <feature>cxf-commands</feature>
>                                       <feature>ccadmin</feature>
>                                   </installedFeatures>
>                                   <bootFeatures>
>                                       <feature>standard</feature>
>                                       <feature>webconsole</feature>
>                                   </bootFeatures>
>                                   <javase>1.8</javase>
>                               </configuration>
>                           </plugin>
>                       </plugins>
>               </build>
>         </project>
> 
> 
> 
>         -- 
>         Best regards / Med venlig hilsen
>         Nino Martinez
> 
> 
> 
> 
> -- 
> Best regards / Med venlig hilsen
> Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by nino martinez wael <ni...@gmail.com>.
hmm, packaging are

   <packaging>kar</packaging>

Are there some examples of the kar packaging?


On Tue, Apr 10, 2018 at 2:14 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Hi,
>
> you shared a assembly usage of the Maven plugin.
>
> For the kar, you can specify a kar packaging and kar goal. Then it will
> package all repositories/features for your features repository.
>
> Regards
> JB
>
>
> On 10/04/2018 13:39, nino martinez wael wrote:
>
>> Hi
>>
>> I cannot get the karaf maven plugin to pull in all jars needed for my
>> app, it only generates an empty feature.xml..
>>
>> Normally we are building a full custom Karaf assembly per project, but we
>> are changing it.
>>
>> The idea are just to make a kar instead providing all the jars, often the
>> environment we are installing to do no have any internet connection.
>>
>> Here are my pom (I get a fully working karaf assembly if I change
>> packaging to karaf-assembly)
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>>      <modelVersion>4.0.0</modelVersion>
>>      <parent>
>>          <groupId>com.netdesign.ccadmin</groupId>
>>          <artifactId>ccadmin</artifactId>
>>          <version>3.0.0-SNAPSHOT</version>
>>      </parent>
>>
>>      <groupId>com.netdesign.ccadmin</groupId>
>>      <artifactId>ccadmin-karaf-assembly</artifactId>
>>      <packaging>kar</packaging>
>>
>>      <name>ccadmin-karaf-assembly</name>
>>
>>      <properties>
>>          <project.build.sourceEncoding>UTF-8</project.
>> build.sourceEncoding>
>>          <karaf.version>4.2.0</karaf.version>
>>          <cxf.version>3.2.4</cxf.version>
>>      </properties>
>>      <dependencies>
>>          <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>framework</artifactId>
>>              <type>kar</type>
>>              <version>${karaf.version}</version>
>>
>>          </dependency>
>>          <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>framework</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <scope>runtime</scope>
>>              <version>${karaf.version}</version>
>>          </dependency>
>>          <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>standard</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <version>${karaf.version}</version>
>>          </dependency>
>>
>>          <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>spring-legacy</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <scope>runtime</scope>
>>              <version>${karaf.version}</version>
>>          </dependency>
>>
>>          <!--<dependency>-->
>> <!--<groupId>org.apache.karaf.features</groupId>-->
>> <!--<artifactId>spring</artifactId>-->
>> <!--<classifier>features</classifier>-->
>> <!--<type>xml</type>-->
>> <!--<scope>runtime</scope>-->
>> <!--<version>${karaf.version}</version>-->
>> <!--</dependency>-->
>> <dependency>
>>              <groupId>org.apache.karaf.features</groupId>
>>              <artifactId>enterprise</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <scope>runtime</scope>
>>              <version>${karaf.version}</version>
>>          </dependency>
>>          <dependency>
>>              <groupId>org.apache.cxf.karaf</groupId>
>>              <artifactId>apache-cxf</artifactId>
>>              <classifier>features</classifier>
>>              <type>xml</type>
>>              <scope>runtime</scope>
>>              <version>${cxf.version}</version>
>>          </dependency>
>>
>>      </dependencies>
>>      <profiles>
>>          <profile>
>>              <id>release</id>
>>              <activation>
>>                  <property>
>>                      <name>IS_M2RELEASEBUILD</name>
>>                      <value>true</value>
>>                  </property>
>>              </activation>
>>              <dependencies>
>>                  <dependency>
>>                      <artifactId>ccadmin-karaf-feature</artifactId>
>>                      <groupId>com.netdesign.ccadmin</groupId>
>>                      <classifier>features</classifier>
>>                      <type>xml</type>
>>                      <version>${build.parent.version}</version>
>>                      <scope>runtime</scope>
>>                  </dependency>
>>              </dependencies>
>>          </profile>
>>          <profile>
>>              <id>snapshot</id>
>>              <activation>
>>                  <property>
>>                      <name>IS_M2RELEASEBUILD</name>
>>                      <value>!true</value>
>>                  </property>
>>              </activation>
>>              <dependencies>
>>                  <dependency>
>>                      <artifactId>ccadmin-karaf-feature</artifactId>
>>                      <groupId>com.netdesign.ccadmin</groupId>
>>                      <classifier>features</classifier>
>>                      <type>xml</type>
>>                      <version>${project.version}</version>
>>                      <scope>runtime</scope>
>>                  </dependency>
>>              </dependencies>
>>          </profile>
>>
>>      </profiles>
>>      <build>
>>          <plugins>
>>              <plugin>
>>                  <groupId>org.apache.maven.plugins</groupId>
>>                  <artifactId>maven-dependency-plugin</artifactId>
>>                  <version>3.0.2</version>
>>              </plugin>
>>                  <plugin>
>>                      <groupId>org.apache.karaf.tooling</groupId>
>>                      <artifactId>karaf-maven-plugin</artifactId>
>>                      <extensions>true</extensions>
>>                      <version>${karaf.version}</version>
>>                      <configuration>
>>                          <installedFeatures>
>>                              <feature>wrapper</feature>
>>                              <feature>cxf</feature>
>>                              <feature>cxf-commands</feature>
>>                              <feature>ccadmin</feature>
>>                          </installedFeatures>
>>                          <bootFeatures>
>>                              <feature>standard</feature>
>>                              <feature>webconsole</feature>
>>                          </bootFeatures>
>>                          <javase>1.8</javase>
>>                      </configuration>
>>                  </plugin>
>>              </plugins>
>>      </build>
>> </project>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: karaf-maven-plugin 4.2.0 "FAT" kar?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

you shared a assembly usage of the Maven plugin.

For the kar, you can specify a kar packaging and kar goal. Then it will 
package all repositories/features for your features repository.

Regards
JB

On 10/04/2018 13:39, nino martinez wael wrote:
> Hi
> 
> I cannot get the karaf maven plugin to pull in all jars needed for my 
> app, it only generates an empty feature.xml..
> 
> Normally we are building a full custom Karaf assembly per project, but 
> we are changing it.
> 
> The idea are just to make a kar instead providing all the jars, often 
> the environment we are installing to do no have any internet connection.
> 
> Here are my pom (I get a fully working karaf assembly if I change 
> packaging to karaf-assembly)
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>      <modelVersion>4.0.0</modelVersion>
>      <parent>
>          <groupId>com.netdesign.ccadmin</groupId>
>          <artifactId>ccadmin</artifactId>
>          <version>3.0.0-SNAPSHOT</version>
>      </parent>
> 
>      <groupId>com.netdesign.ccadmin</groupId>
>      <artifactId>ccadmin-karaf-assembly</artifactId>
>      <packaging>kar</packaging>
> 
>      <name>ccadmin-karaf-assembly</name>
> 
>      <properties>
>          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>          <karaf.version>4.2.0</karaf.version>
>          <cxf.version>3.2.4</cxf.version>
>      </properties>
>      <dependencies>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>framework</artifactId>
>              <type>kar</type>
>              <version>${karaf.version}</version>
> 
>          </dependency>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>framework</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <scope>runtime</scope>
>              <version>${karaf.version}</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>standard</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <version>${karaf.version}</version>
>          </dependency>
> 
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>spring-legacy</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <scope>runtime</scope>
>              <version>${karaf.version}</version>
>          </dependency>
> 
>          <!--<dependency>-->
> <!--<groupId>org.apache.karaf.features</groupId>-->
> <!--<artifactId>spring</artifactId>-->
> <!--<classifier>features</classifier>-->
> <!--<type>xml</type>-->
> <!--<scope>runtime</scope>-->
> <!--<version>${karaf.version}</version>-->
> <!--</dependency>-->
> <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>enterprise</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <scope>runtime</scope>
>              <version>${karaf.version}</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.cxf.karaf</groupId>
>              <artifactId>apache-cxf</artifactId>
>              <classifier>features</classifier>
>              <type>xml</type>
>              <scope>runtime</scope>
>              <version>${cxf.version}</version>
>          </dependency>
> 
>      </dependencies>
>      <profiles>
>          <profile>
>              <id>release</id>
>              <activation>
>                  <property>
>                      <name>IS_M2RELEASEBUILD</name>
>                      <value>true</value>
>                  </property>
>              </activation>
>              <dependencies>
>                  <dependency>
>                      <artifactId>ccadmin-karaf-feature</artifactId>
>                      <groupId>com.netdesign.ccadmin</groupId>
>                      <classifier>features</classifier>
>                      <type>xml</type>
>                      <version>${build.parent.version}</version>
>                      <scope>runtime</scope>
>                  </dependency>
>              </dependencies>
>          </profile>
>          <profile>
>              <id>snapshot</id>
>              <activation>
>                  <property>
>                      <name>IS_M2RELEASEBUILD</name>
>                      <value>!true</value>
>                  </property>
>              </activation>
>              <dependencies>
>                  <dependency>
>                      <artifactId>ccadmin-karaf-feature</artifactId>
>                      <groupId>com.netdesign.ccadmin</groupId>
>                      <classifier>features</classifier>
>                      <type>xml</type>
>                      <version>${project.version}</version>
>                      <scope>runtime</scope>
>                  </dependency>
>              </dependencies>
>          </profile>
> 
>      </profiles>
>      <build>
>          <plugins>
>              <plugin>
>                  <groupId>org.apache.maven.plugins</groupId>
>                  <artifactId>maven-dependency-plugin</artifactId>
>                  <version>3.0.2</version>
>              </plugin>
>                  <plugin>
>                      <groupId>org.apache.karaf.tooling</groupId>
>                      <artifactId>karaf-maven-plugin</artifactId>
>                      <extensions>true</extensions>
>                      <version>${karaf.version}</version>
>                      <configuration>
>                          <installedFeatures>
>                              <feature>wrapper</feature>
>                              <feature>cxf</feature>
>                              <feature>cxf-commands</feature>
>                              <feature>ccadmin</feature>
>                          </installedFeatures>
>                          <bootFeatures>
>                              <feature>standard</feature>
>                              <feature>webconsole</feature>
>                          </bootFeatures>
>                          <javase>1.8</javase>
>                      </configuration>
>                  </plugin>
>              </plugins>
>      </build>
> </project>
> 
> 
> 
> -- 
> Best regards / Med venlig hilsen
> Nino Martinez