1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright © 2016 Red Hat, Inc. and others. All rights reserved.
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
9 <project xmlns="http://maven.apache.org/POM/4.0.0"
10 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12 <modelVersion>4.0.0</modelVersion>
15 Base parent POM for building, packaging and testing Karaf feature repositories.
16 Karaf features are generated based on the POM dependencies; they can be supplemented by a base
17 feature.xml file in src/main/feature.
19 Users should do the following:
21 - specify this as their parent
22 - make sure the packaging is set to feature
23 - specify features to be provided in the repository by depending on them in the project <dependencies/>
27 <groupId>org.opendaylight.odlparent</groupId>
28 <artifactId>odlparent</artifactId>
29 <version>7.0.3-SNAPSHOT</version>
30 <relativePath>../odlparent</relativePath>
33 <artifactId>feature-repo-parent</artifactId>
34 <packaging>pom</packaging>
35 <name>ODL :: odlparent :: ${project.artifactId}</name>
38 <skip.karaf.featureTest>true</skip.karaf.featureTest>
39 <jacoco.skip>true</jacoco.skip>
43 <!-- Test the generated features.xml -->
45 <groupId>org.opendaylight.odlparent</groupId>
46 <artifactId>features-test</artifactId>
47 <version>7.0.3-SNAPSHOT</version>
51 <groupId>org.opendaylight.odlparent</groupId>
52 <artifactId>bundles-test-lib</artifactId>
56 <groupId>org.apache.karaf.bundle</groupId>
57 <artifactId>org.apache.karaf.bundle.core</artifactId>
58 <version>${karaf.version}</version>
61 <!-- Force SLF4J to test scope -->
63 <groupId>org.slf4j</groupId>
64 <artifactId>slf4j-api</artifactId>
72 <!-- This generates the META-INF/maven/dependencies.properties file
73 which is required by the versionAsInProject() used in SingleFeatureTest -->
74 <groupId>org.apache.servicemix.tooling</groupId>
75 <artifactId>depends-maven-plugin</artifactId>
78 <artifactId>maven-surefire-plugin</artifactId>
80 <skip>${skip.karaf.featureTest}</skip>
82 <dependency>org.opendaylight.odlparent:features-test</dependency>
84 <additionalClasspathElements>
85 <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
86 </additionalClasspathElements>
98 <groupId>org.apache.karaf.tooling</groupId>
99 <artifactId>karaf-maven-plugin</artifactId>
100 <extensions>true</extensions>
102 <enableGeneration>true</enableGeneration>
108 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
110 <groupId>org.eclipse.m2e</groupId>
111 <artifactId>lifecycle-mapping</artifactId>
112 <version>1.0.0</version>
114 <lifecycleMappingMetadata>
117 <pluginExecutionFilter>
118 <groupId>org.apache.karaf.tooling</groupId>
119 <artifactId>karaf-maven-plugin</artifactId>
120 <versionRange>[4.1.5,)</versionRange>
124 </pluginExecutionFilter>
130 </lifecycleMappingMetadata>