18d23237144f3f3abb9e759f5179cbe589986c82
[odlparent.git] / features-test-plugin / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright © 2023 PANTHEON.tech, s.r.o. 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
10     <modelVersion>4.0.0</modelVersion>
11     <parent>
12         <groupId>org.opendaylight.odlparent</groupId>
13         <artifactId>odlparent</artifactId>
14         <version>13.1.1</version>
15         <relativePath>../odlparent</relativePath>
16     </parent>
17
18     <artifactId>features-test-plugin</artifactId>
19     <packaging>maven-plugin</packaging>
20     <name>ODL :: odlparent :: ${project.artifactId}</name>
21
22     <prerequisites>
23         <maven>3.8.3</maven>
24     </prerequisites>
25
26     <properties>
27         <!-- Do not delete: pax.exam.version property is used in copy resources -->
28         <!-- NB 4.13.3 is last known ok version allowing concurrent karaf containers -->
29         <!-- pax exam issue https://github.com/ops4j/org.ops4j.pax.exam2/issues/1020 -->
30         <pax.exam.version>4.13.3</pax.exam.version>
31         <pax.url.version>2.6.2</pax.url.version>
32     </properties>
33
34     <dependencies>
35         <!-- Maven plugin API -->
36         <dependency>
37             <groupId>org.apache.maven</groupId>
38             <artifactId>maven-artifact</artifactId>
39             <version>3.8.3</version>
40             <scope>provided</scope>
41         </dependency>
42         <dependency>
43             <groupId>org.apache.maven</groupId>
44             <artifactId>maven-core</artifactId>
45             <version>3.8.3</version>
46             <scope>provided</scope>
47         </dependency>
48         <dependency>
49             <groupId>org.apache.maven</groupId>
50             <artifactId>maven-model</artifactId>
51             <version>3.8.3</version>
52             <scope>provided</scope>
53         </dependency>
54         <dependency>
55             <groupId>org.apache.maven</groupId>
56             <artifactId>maven-plugin-api</artifactId>
57             <version>3.8.3</version>
58             <scope>provided</scope>
59         </dependency>
60         <!-- dependencies to annotations -->
61         <dependency>
62             <groupId>org.apache.maven.plugin-tools</groupId>
63             <artifactId>maven-plugin-annotations</artifactId>
64             <version>3.8.2</version>
65             <scope>provided</scope>
66         </dependency>
67
68         <!-- dependency resolution -->
69         <dependency>
70             <groupId>org.apache.maven.wagon</groupId>
71             <artifactId>wagon-http</artifactId>
72             <version>3.2.0</version>
73             <scope>compile</scope>
74             <exclusions>
75                 <exclusion>
76                     <!-- because it conflicts with org.slf4j:jcl-over-slf4j -->
77                     <groupId>commons-logging</groupId>
78                     <artifactId>commons-logging</artifactId>
79                 </exclusion>
80             </exclusions>
81         </dependency>
82         <dependency>
83             <groupId>org.eclipse.aether</groupId>
84             <artifactId>aether-api</artifactId>
85             <version>1.1.0</version>
86         </dependency>
87
88         <!-- Pax artifacts, includes scope redefined (test to compile/runtime) dependencies
89             in order to be included (preloaded to local repo) on plugin execution -->
90         <dependency>
91             <groupId>org.ops4j.pax.exam</groupId>
92             <artifactId>pax-exam</artifactId>
93             <version>${pax.exam.version}</version>
94             <scope>compile</scope>
95         </dependency>
96         <dependency>
97             <groupId>org.ops4j.pax.exam</groupId>
98             <artifactId>pax-exam-link-mvn</artifactId>
99             <version>${pax.exam.version}</version>
100             <scope>compile</scope>
101         </dependency>
102         <dependency>
103             <groupId>org.ops4j.pax.url</groupId>
104             <artifactId>pax-url-aether</artifactId>
105             <version>${pax.url.version}</version>
106             <scope>runtime</scope>
107         </dependency>
108         <dependency>
109             <groupId>org.ops4j.pax.url</groupId>
110             <artifactId>pax-url-link</artifactId>
111             <version>${pax.url.version}</version>
112             <scope>runtime</scope>
113         </dependency>
114         <dependency>
115             <groupId>org.ops4j.pax.exam</groupId>
116             <artifactId>pax-exam-container-karaf</artifactId>
117             <version>${pax.exam.version}</version>
118             <scope>compile</scope>
119         </dependency>
120
121         <!-- required features -->
122         <dependency>
123             <groupId>org.ops4j.pax.exam</groupId>
124             <artifactId>pax-exam-features</artifactId>
125             <version>${pax.exam.version}</version>
126             <type>xml</type>
127             <scope>runtime</scope>
128         </dependency>
129         <dependency>
130             <groupId>org.apache.karaf.features</groupId>
131             <artifactId>standard</artifactId>
132             <version>${karaf.version}</version>
133             <classifier>features</classifier>
134             <type>xml</type>
135             <scope>runtime</scope>
136         </dependency>
137
138         <!-- OSGi -->
139         <dependency>
140             <groupId>org.osgi</groupId>
141             <artifactId>org.osgi.framework</artifactId>
142             <scope>compile</scope>
143         </dependency>
144
145         <!-- test probe dependencies for karaf environment -->
146         <dependency>
147             <groupId>org.apache.karaf.features</groupId>
148             <artifactId>org.apache.karaf.features.core</artifactId>
149             <scope>compile</scope>
150         </dependency>
151         <dependency>
152             <groupId>org.apache.karaf.bundle</groupId>
153             <artifactId>org.apache.karaf.bundle.core</artifactId>
154             <scope>compile</scope>
155         </dependency>
156
157         <!-- junit 4 @Test annotation is required for junit probe invoker -->
158         <dependency>
159             <groupId>junit</groupId>
160             <artifactId>junit</artifactId>
161             <scope>compile</scope>
162         </dependency>
163     </dependencies>
164
165     <build>
166         <resources>
167             <resource>
168                 <directory>src/main/resources</directory>
169                 <filtering>true</filtering>
170             </resource>
171         </resources>
172
173         <plugins>
174             <plugin>
175                 <artifactId>maven-checkstyle-plugin</artifactId>
176                 <executions>
177                     <execution>
178                         <id>check-license</id>
179                         <configuration>
180                             <excludes>
181                                 <!-- Skip Apache Licensed files -->
182                                 org/opendaylight/odlparent/features/test/plugin/TestFeaturesMojo.java
183                             </excludes>
184                         </configuration>
185                     </execution>
186                 </executions>
187             </plugin>
188             <plugin>
189                 <artifactId>maven-plugin-plugin</artifactId>
190                 <configuration>
191                     <goalPrefix>feattest</goalPrefix>
192                 </configuration>
193                 <executions>
194                     <execution>
195                         <id>default-descriptor</id>
196                         <phase>process-classes</phase>
197                     </execution>
198                 </executions>
199             </plugin>
200         </plugins>
201     </build>
202 </project>