Set compiler-maven-plugin proc
[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>14.0.0-SNAPSHOT</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
39         <!-- Do not attach sources -->
40         <maven.source.skip>true</maven.source.skip>
41     </properties>
42
43     <build>
44         <pluginManagement>
45             <plugins>
46                 <plugin>
47                     <groupId>org.opendaylight.odlparent</groupId>
48                     <artifactId>features-test-plugin</artifactId>
49                     <version>14.0.0-SNAPSHOT</version>
50                 </plugin>
51             </plugins>
52         </pluginManagement>
53         <plugins>
54             <!-- execute SFT -->
55             <plugin>
56                 <groupId>org.opendaylight.odlparent</groupId>
57                 <artifactId>features-test-plugin</artifactId>
58                 <extensions>false</extensions>
59                 <configuration>
60                     <concurrent>false</concurrent>
61                 </configuration>
62                 <executions>
63                     <execution>
64                         <phase>test</phase>
65                         <goals>
66                             <goal>test</goal>
67                         </goals>
68                     </execution>
69                 </executions>
70             </plugin>
71         </plugins>
72     </build>
73
74     <profiles>
75         <profile>
76             <id>disable-sft</id>
77             <activation>
78                 <!-- Karaf does not have jre.properties for JDK22+ just yet -->
79                 <jdk>[22,)</jdk>
80             </activation>
81
82             <properties>
83                 <sft.skip>true</sft.skip>
84             </properties>
85
86             <build>
87                 <plugins>
88                     <plugin>
89                         <groupId>com.github.ekryd.echo-maven-plugin</groupId>
90                         <artifactId>echo-maven-plugin</artifactId>
91                         <executions>
92                             <execution>
93                                 <id>UNTESTED-JDK</id>
94                                 <goals>
95                                     <goal>echo</goal>
96                                 </goals>
97                                 <phase>test</phase>
98                                 <configuration>
99                                     <message>Running on JDK newer than 21, which is not supported. Skipping feature tests.</message>
100                                 </configuration>
101                             </execution>
102                         </executions>
103                     </plugin>
104                 </plugins>
105             </build>
106         </profile>
107     </profiles>
108 </project>