1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright © 2016, 2017 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 and packaging single Karaf features.
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 By default, such single features aren't tested for loadability; they're supposed to be aggregated
20 in a feature repository (see feature-repo-parent), which is tested using SingleFeatureTest. The
21 sft profile can be used to enforce SingleFeatureTest on single features too.
23 Single features which aren't part of a repository can not be considered part of a project's API.
24 In any case, refer to each project's declared features to determine their API and future
27 Users should do the following:
29 - specify this as their parent
30 - make sure the packaging is set to feature
31 - setup projects <dependencies/> as needed for their features
35 <groupId>org.opendaylight.odlparent</groupId>
36 <artifactId>untested-single-feature-parent</artifactId>
37 <version>4.0.7-SNAPSHOT</version>
38 <relativePath>../untested-single-feature-parent</relativePath>
41 <artifactId>single-feature-parent</artifactId>
42 <packaging>pom</packaging>
43 <name>ODL :: odlparent :: ${project.artifactId}</name>
46 <jacoco.skip>true</jacoco.skip>
47 <skip.karaf.featureTest>false</skip.karaf.featureTest>
51 <!-- We now end up needing our Karaf branding somehow -->
53 <groupId>org.opendaylight.odlparent</groupId>
54 <artifactId>karaf.branding</artifactId>
57 <!-- Test the generated features.xml -->
59 <groupId>org.opendaylight.odlparent</groupId>
60 <artifactId>features-test</artifactId>
61 <version>4.0.7-SNAPSHOT</version>
65 <groupId>org.opendaylight.odlparent</groupId>
66 <artifactId>bundles-test-lib</artifactId>
67 <version>4.0.7-SNAPSHOT</version>
71 <groupId>org.apache.karaf.bundle</groupId>
72 <artifactId>org.apache.karaf.bundle.core</artifactId>
73 <version>${karaf.version}</version>
76 <!-- Force SLF4J to test scope -->
78 <groupId>org.slf4j</groupId>
79 <artifactId>slf4j-api</artifactId>
83 <groupId>org.osgi</groupId>
84 <!-- required due to https://jira.opendaylight.org/browse/ODLPARENT-136 -->
85 <artifactId>org.osgi.compendium</artifactId>
93 <artifactId>maven-surefire-plugin</artifactId>
96 <dependency>org.opendaylight.odlparent:features-test</dependency>
98 <additionalClasspathElements>
99 <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
100 </additionalClasspathElements>
101 <skip>${skip.karaf.featureTest}</skip>
102 <systemPropertyVariables>
103 <!-- Use the same repository for Pax Exam as is used for Maven -->
104 <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
105 </systemPropertyVariables>