This is how my pom looked like in the end: <?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>
<groupId>karaf.standalone.build</groupId>
<artifactId>karaf</artifactId>
<packaging>karaf-assembly</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/assembly</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<executions>
<execution>
<id>features-add-to-repo</id>
<phase>prepare-package</phase>
<goals>
<goal>features-add-to-repository</goal>
</goals>
<configuration>
<aggregateFeatures>true</aggregateFeatures>
<descriptors>
<descriptor>mvn:org.apache.karaf.features/framework/${karaf.version}/xml/features</descriptor>
<descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
<descriptor>mvn:org.apache.karaf.features/enterprise/${karaf.version}/xml/features</descriptor>
</descriptors>
<features>
<feature>framework</feature>
<feature>standard</feature>
<feature>wrapper</feature>
<feature>config</feature>
<feature>region</feature>
<feature>package</feature>
<feature>http</feature>
<feature>ssh</feature>
<feature>management</feature>
<feature>kar</feature>
<feature>jdbc</feature>
</features>
<repository>${basedir}/target/assembly/system</repository>
</configuration>
</execution>
</executions>
<configuration>
<bootFeatures>
<feature>standard</feature>
<feature>wrapper</feature>
<feature>config</feature>
<feature>region</feature>
<feature>package</feature>
<feature>ssh</feature>
<feature>management</feature>
<feature>kar</feature>
<feature>http</feature>
<feature>jdbc</feature>
</bootFeatures>
<installedFeatures>
<feature>wrapper</feature>
</installedFeatures>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<scope>compile</scope>
<version>${karaf.version}</version>
<type>kar</type>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<classifier>features</classifier>
<scope>runtime</scope>
<version>${karaf.version}</version>
<type>xml</type>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>enterprise</artifactId>
<classifier>features</classifier>
<scope>runtime</scope>
<version>${karaf.version}</version>
<type>xml</type>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>spring</artifactId>
<classifier>features</classifier>
<scope>runtime</scope>
<version>${karaf.version}</version>
<type>xml</type>
<optional>true</optional>
</dependency>
</dependencies>
</project>
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-3-Standalone-Distribution-tp4034233p4034359.html
Sent from the Karaf - User mailing list archive at Nabble.com.
