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>11.0.2-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>
41 <!-- We typically do not have code in feature artifacts, which throws off maven-dependency-plugin -->
42 <odlparent.dependency.skip>true</odlparent.dependency.skip>
46 <!-- Test the generated features.xml -->
48 <groupId>org.opendaylight.odlparent</groupId>
49 <artifactId>features-test</artifactId>
50 <version>11.0.2-SNAPSHOT</version>
54 <groupId>org.opendaylight.odlparent</groupId>
55 <artifactId>bundles-test-lib</artifactId>
59 <groupId>org.apache.karaf.bundle</groupId>
60 <artifactId>org.apache.karaf.bundle.core</artifactId>
61 <version>${karaf.version}</version>
64 <!-- Force SLF4J to test scope -->
66 <groupId>org.slf4j</groupId>
67 <artifactId>slf4j-api</artifactId>
75 <!-- This generates the META-INF/maven/dependencies.properties file
76 which is required by the versionAsInProject() used in SingleFeatureTest -->
77 <groupId>org.apache.servicemix.tooling</groupId>
78 <artifactId>depends-maven-plugin</artifactId>
81 <artifactId>maven-surefire-plugin</artifactId>
83 <skip>${skip.karaf.featureTest}</skip>
85 <dependency>org.opendaylight.odlparent:features-test</dependency>
87 <additionalClasspathElements>
88 <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
89 </additionalClasspathElements>
101 <groupId>org.apache.karaf.tooling</groupId>
102 <artifactId>karaf-maven-plugin</artifactId>
103 <extensions>true</extensions>
105 <enableGeneration>true</enableGeneration>
111 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
113 <groupId>org.eclipse.m2e</groupId>
114 <artifactId>lifecycle-mapping</artifactId>
115 <version>1.0.0</version>
117 <lifecycleMappingMetadata>
120 <pluginExecutionFilter>
121 <groupId>org.apache.karaf.tooling</groupId>
122 <artifactId>karaf-maven-plugin</artifactId>
123 <versionRange>[4.1.5,)</versionRange>
127 </pluginExecutionFilter>
133 </lifecycleMappingMetadata>