What does your features.xml look like ?

Regards
JB

Le 11 avr. 2018 à 07:03, à 07:03, nino martinez wael 
<nino.martinez.w...@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é <j...@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é
><j...@nanthrax.net
>>> <mailto:j...@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

Reply via email to