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.w...@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.w...@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.w...@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.w...@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.w...@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é <j...@nanthrax.net >>>>> > wrote: >>>>> >>>>>> What does your features.xml look like ? >>>>>> >>>>>> Regards >>>>>> JB >>>>>> Le 11 avr. 2018, à 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</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