Excellent catch. Thanks a bunch.

Erwin

> On Mar 25, 2015, at 08:33, Charlie Mordant <cmorda...@gmail.com> wrote:
> 
> Hi,
> 
> You forgot the <extension>true</> declaration in your karaf-maven-plugin.
> 
> Regards
> 
> 2015-03-25 11:56 GMT+01:00 Erwin Hogeweg <erwin.hoge...@me.com 
> <mailto:erwin.hoge...@me.com>>:
> Hi JB,
> 
> Please find pom below.
> 
> 
> <?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.myproject.blah</groupId>
>         <artifactId>com.myproject.blah.server.parent</artifactId>
>         <version>3.1.0-SNAPSHOT</version>
>         
> <relativePath>../com.myproject.blah.server.parent/pom.xml</relativePath>
>     </parent>
> 
> 
>     <groupId>com.myproject.blah</groupId>
>     <artifactId>my-project</artifactId>
>     <version>1.0.0-SNAPSHOT</version>
>     <packaging>feature</packaging>
>     <packaging>kar</packaging>
>     <!--packaging>kar</packaging-->
> 
>     <name> My Feature</name>
> <!--
>     <scm>
>     </scm>
> -->
>     <properties>
>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>     </properties>
> 
>     <dependencies>
>         <!-- Our Bundles -->
>         <dependency>
>             <groupId>com.myproject.blah</groupId>
>             <artifactId>artifact-1</artifactId>
>             <version>${artifacts-1.version}</version>
>         </dependency>
> 
>         <dependency>
> <more dependencies>
>     </dependencies>
> 
>     <build>
>         <resources>
>             <resource>
>                 <directory>src/main/feature</directory>
>                 <filtering>true</filtering>
>             </resource>
>         </resources>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <version>3.1</version>
>                 <configuration>
>                     <source>1.7</source>
>                     <target>1.7</target>
>                 </configuration>
>             </plugin>
>             <!--
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-bundle-plugin</artifactId>
>                 <version>2.5.0</version>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <instructions>
>                         
> <Bundle-Activator>org.apache.aries.jpa.eclipselink.adapter.Activator</Bundle-Activator>
>                         <Export-Package />
>                         
> <Private-Package>org.apache.aries.jpa.eclipselink.adapter.*</Private-Package>
>                     </instructions>
>                 </configuration>
>             </plugin>
>         -->
>             <plugin>
>                 <groupId>org.apache.karaf.tooling</groupId>
>                 <artifactId>karaf-maven-plugin</artifactId>
>                 <version>${karaf.version}</version>
>                 <executions>
>                     <execution>
>                         <id>features</id>
>                         <phase>compile</phase>
>                         <goals>
>                             <goal>features-generate-descriptor</goal>
>                         </goals>
>                         <configuration>
>                             <startLevel>30</startLevel>
>                             <inputFile>src/feature.xml</inputFile>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
>         </plugins>
>     </build>
> </project>
> 
> > On Mar 25, 2015, at 02:29, Jean-Baptiste Onofré <j...@nanthrax.net 
> > <mailto:j...@nanthrax.net>> wrote:
> >
> > Hi Erwin,
> >
> > can you share your pom ? What's the goal that you use ?
> >
> > Regards
> > JB
> >
> > On 03/25/2015 05:10 AM, Erwin Hogeweg wrote:
> >> Hi,
> >>
> >> I am utterly confused re. the use of the karaf-maven-plugin. This
> >> website shows 3 possible packagings: kar, feature and karaf-assembly:
> >>
> >> http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html
> >>  
> >> <http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html>
> >>
> >> Ea. of them generates an 'Unknown packaging’ error though.
> >>
> >> Am I not looking at the correct documentation?
> >>
> >> Please advise.
> >>
> >> Thanks,
> >>
> >> Erwin
> >
> > --
> > Jean-Baptiste Onofré
> > jbono...@apache.org <mailto:jbono...@apache.org>
> > http://blog.nanthrax.net <http://blog.nanthrax.net/>
> > Talend - http://www.talend.com <http://www.talend.com/>
> 
> 
> 
> 
> -- 
> Charlie Mordant
> 
> Full OSGI/EE stack made with Karaf: 
> https://github.com/OsgiliathEnterprise/net.osgiliath.parent 
> <https://github.com/OsgiliathEnterprise/net.osgiliath.parent>

Reply via email to