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 Internal parent for testing single Karaf features. This parent should not be used by downstreams,
16 who should use single-feature-parent.
20 <groupId>org.opendaylight.odlparent</groupId>
21 <artifactId>odlparent</artifactId>
22 <version>12.0.6-SNAPSHOT</version>
23 <relativePath>../odlparent</relativePath>
26 <artifactId>abstract-feature-parent</artifactId>
27 <packaging>pom</packaging>
28 <name>ODL :: odlparent :: ${project.artifactId}</name>
31 <checkDependencyChange>false</checkDependencyChange>
32 <failOnDependencyChange>false</failOnDependencyChange>
34 <jacoco.skip>true</jacoco.skip>
35 <skip.karaf.featureTest>false</skip.karaf.featureTest>
37 <!-- We typically do not have code in feature artifacts, which throws off maven-dependency-plugin -->
38 <odlparent.dependency.skip>true</odlparent.dependency.skip>
42 <!-- Test the generated features.xml -->
44 <groupId>org.opendaylight.odlparent</groupId>
45 <artifactId>features-test</artifactId>
46 <version>12.0.6-SNAPSHOT</version>
50 <groupId>org.opendaylight.odlparent</groupId>
51 <artifactId>bundles-test-lib</artifactId>
55 <groupId>org.apache.karaf.bundle</groupId>
56 <artifactId>org.apache.karaf.bundle.core</artifactId>
57 <version>${karaf.version}</version>
60 <!-- Force SLF4J to test scope -->
62 <groupId>org.slf4j</groupId>
63 <artifactId>slf4j-api</artifactId>
66 <!-- required due to https://jira.opendaylight.org/browse/ODLPARENT-136 -->
68 <groupId>org.osgi</groupId>
69 <artifactId>osgi.cmpn</artifactId>
77 <!-- This generates the META-INF/maven/dependencies.properties file
78 which is required by the versionAsInProject() used in SingleFeatureTest -->
79 <groupId>org.apache.servicemix.tooling</groupId>
80 <artifactId>depends-maven-plugin</artifactId>
83 <artifactId>maven-surefire-plugin</artifactId>
85 <!-- Overridden to fix corruption with SFT, where the process would hang after test -->
86 <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
88 <dependency>org.opendaylight.odlparent:features-test</dependency>
90 <additionalClasspathElements>
91 <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
92 </additionalClasspathElements>
93 <skip>${skip.karaf.featureTest}</skip>
94 <systemPropertyVariables>
95 <!-- Use the same repository for Pax Exam as is used for Maven -->
96 <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
97 </systemPropertyVariables>
99 <!-- Disable argLine if present, but pass it to SFT -->
100 <argLine>-DsftArgLine='@{argLine}'</argLine>
118 <!-- Karaf does not have jre.properties for JDK19+ just yet -->
123 <skip.karaf.featureTest>true</skip.karaf.featureTest>
129 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
130 <artifactId>echo-maven-plugin</artifactId>
133 <id>UNTESTED-JDK</id>
139 <message>Running on JDK newer than 18, which is not supported. Skipping feature tests.</message>