karaf-features
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.opennms.integration.api</groupId>
<artifactId>karaf-features</artifactId>
<version>2.0.0</version>
</dependency><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">
<parent>
<groupId>org.opennms.integration.api</groupId>
<artifactId>api-project</artifactId>
<version>2.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>karaf-features</artifactId>
<name>OpenNMS Integration API :: Karaf Features</name>
<packaging>pom</packaging>
<properties>
<!-- override to latest stable for newest validation code -->
<karaf.version>4.4.6</karaf.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.outputDirectory}/features.xml</file>
<type>xml</type>
</artifact>
<artifact>
<file>${project.build.outputDirectory}/sample.xml</file>
<classifier>sample</classifier>
<type>xml</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>${karaf.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<id>verify</id>
<phase>process-resources</phase>
<goals>
<goal>verify</goal>
</goals>
<configuration>
<javase>${java.version}</javase>
<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>file:${project.build.directory}/classes/features.xml</descriptor>
<descriptor>file:${project.build.directory}/classes/sample.xml</descriptor>
</descriptors>
<distribution>org.apache.karaf.features:framework</distribution>
<framework>
<feature>framework</feature>
</framework>
<features>
<feature>opennms-integration-api</feature>
<feature>opennms-plugin-sample</feature>
<feature>minion-plugin-sample</feature>
<feature>sentinel-plugin-sample</feature>
</features>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.opennms.integration.api</groupId>
<artifactId>api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.opennms.integration.api</groupId>
<artifactId>config</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.opennms.integration.api.sample</groupId>
<artifactId>sample-project</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.istack</groupId>
<artifactId>istack-commons-runtime</artifactId>
<version>4.2.0</version>
<scope>provided</scope>
</dependency>
<!-- Framework distribution -->
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>${karaf.version}</version>
<type>kar</type>
<scope>provided</scope>
</dependency>
</dependencies>
</project>