karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nino martinez wael <nino.martinez.w...@gmail.com>
Subject Re: karaf-maven-plugin 4.2.0 "FAT" kar?
Date Wed, 11 Apr 2018 12:00:16 GMT
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 <mailto: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
>>>>>>         <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

Mime
View raw message