9b0e5b9b56cc9a84c18e68c50bbf54792beeb97e
[odlparent.git] / abstract-feature-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright © 2016, 2017 Red Hat, Inc. and others.  All rights reserved.
4
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
8  -->
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>
13
14     <!--
15         Internal parent for testing single Karaf features. This parent should not be used by downstreams,
16         who should use single-feature-parent.
17     -->
18
19     <parent>
20         <groupId>org.opendaylight.odlparent</groupId>
21         <artifactId>odlparent</artifactId>
22         <version>13.1.1</version>
23         <relativePath>../odlparent</relativePath>
24     </parent>
25
26     <artifactId>abstract-feature-parent</artifactId>
27     <packaging>pom</packaging>
28     <name>ODL :: odlparent :: ${project.artifactId}</name>
29
30     <properties>
31         <checkDependencyChange>false</checkDependencyChange>
32         <failOnDependencyChange>false</failOnDependencyChange>
33
34         <jacoco.skip>true</jacoco.skip>
35
36         <!-- We typically do not have code in feature artifacts, which throws off maven-dependency-plugin -->
37         <odlparent.dependency.skip>true</odlparent.dependency.skip>
38     </properties>
39
40     <build>
41         <pluginManagement>
42             <plugins>
43                 <plugin>
44                     <groupId>org.opendaylight.odlparent</groupId>
45                     <artifactId>features-test-plugin</artifactId>
46                     <version>13.1.1</version>
47                 </plugin>
48             </plugins>
49         </pluginManagement>
50         <plugins>
51             <!-- execute SFT -->
52             <plugin>
53                 <groupId>org.opendaylight.odlparent</groupId>
54                 <artifactId>features-test-plugin</artifactId>
55                 <extensions>false</extensions>
56                 <configuration>
57                     <concurrent>false</concurrent>
58                 </configuration>
59                 <executions>
60                     <execution>
61                         <phase>test</phase>
62                         <goals>
63                             <goal>test</goal>
64                         </goals>
65                     </execution>
66                 </executions>
67             </plugin>
68         </plugins>
69     </build>
70
71     <profiles>
72         <profile>
73             <id>disable-sft</id>
74             <activation>
75                 <!-- Karaf does not have jre.properties for JDK22+ just yet -->
76                 <jdk>[22,)</jdk>
77             </activation>
78
79             <properties>
80                 <sft.skip>true</sft.skip>
81             </properties>
82
83             <build>
84                 <plugins>
85                     <plugin>
86                         <groupId>com.github.ekryd.echo-maven-plugin</groupId>
87                         <artifactId>echo-maven-plugin</artifactId>
88                         <executions>
89                             <execution>
90                                 <id>UNTESTED-JDK</id>
91                                 <goals>
92                                     <goal>echo</goal>
93                                 </goals>
94                                 <phase>test</phase>
95                                 <configuration>
96                                     <message>Running on JDK newer than 21, which is not supported. Skipping feature tests.</message>
97                                 </configuration>
98                             </execution>
99                         </executions>
100                     </plugin>
101                 </plugins>
102             </build>
103         </profile>
104     </profiles>
105 </project>