Improve segmented journal actor metrics
[controller.git] / opendaylight / md-sal / mdsal-it-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
5
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11   <modelVersion>4.0.0</modelVersion>
12
13   <parent>
14     <groupId>org.opendaylight.odlparent</groupId>
15     <artifactId>bundle-parent</artifactId>
16     <version>13.0.11</version>
17     <relativePath/>
18   </parent>
19
20   <groupId>org.opendaylight.controller</groupId>
21   <artifactId>mdsal-it-parent</artifactId>
22   <version>9.0.3-SNAPSHOT</version>
23   <packaging>pom</packaging>
24
25   <properties>
26     <karaf.distro.groupId>org.opendaylight.odlparent</karaf.distro.groupId>
27     <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
28     <karaf.distro.type>zip</karaf.distro.type>
29     <karaf.keep.unpack>false</karaf.keep.unpack>
30
31     <!-- FIXME: Remove this -->
32     <odlparent.modernizer.enforce>false</odlparent.modernizer.enforce>
33   </properties>
34
35   <dependencyManagement>
36     <dependencies>
37       <dependency>
38         <groupId>org.opendaylight.controller</groupId>
39         <artifactId>controller-artifacts</artifactId>
40         <version>9.0.3-SNAPSHOT</version>
41         <type>pom</type>
42         <scope>import</scope>
43       </dependency>
44     </dependencies>
45   </dependencyManagement>
46
47   <dependencies>
48     <dependency>
49       <groupId>org.opendaylight.controller</groupId>
50       <artifactId>mdsal-it-base</artifactId>
51     </dependency>
52
53     <!-- Dependencies for pax exam karaf container -->
54     <dependency>
55         <groupId>org.ops4j.pax.exam</groupId>
56         <artifactId>pax-exam-container-karaf</artifactId>
57     </dependency>
58     <dependency>
59         <groupId>org.ops4j.pax.exam</groupId>
60         <artifactId>pax-exam-junit4</artifactId>
61     </dependency>
62     <dependency>
63         <groupId>org.ops4j.pax.exam</groupId>
64         <artifactId>pax-exam</artifactId>
65     </dependency>
66     <dependency>
67         <groupId>org.ops4j.pax.exam</groupId>
68         <artifactId>pax-exam-features</artifactId>
69         <type>xml</type>
70     </dependency>
71     <dependency>
72         <groupId>org.ops4j.pax.exam</groupId>
73         <artifactId>pax-exam-extender-service</artifactId>
74     </dependency>
75     <dependency>
76         <groupId>org.ops4j.pax.exam</groupId>
77         <artifactId>pax-exam-inject</artifactId>
78     </dependency>
79     <dependency>
80         <groupId>org.ops4j.pax.exam</groupId>
81         <artifactId>pax-exam-invoker-junit</artifactId>
82     </dependency>
83     <dependency>
84         <groupId>org.ops4j.pax.url</groupId>
85         <artifactId>pax-url-aether</artifactId>
86     </dependency>
87     <dependency>
88         <groupId>org.apache.karaf.features</groupId>
89         <artifactId>org.apache.karaf.features.core</artifactId>
90         <version>${karaf.version}</version>
91     </dependency>
92     <dependency>
93         <groupId>org.osgi</groupId>
94         <artifactId>org.osgi.framework</artifactId>
95     </dependency>
96
97     <!--
98         Unfortunately default mockito-inline does not work in OSGi.
99         See https://github.com/mockito/mockito/issues/2203#issuecomment-926372053
100       -->
101     <dependency>
102       <groupId>org.mockito</groupId>
103       <artifactId>mockito-core</artifactId>
104       <version>4.11.0</version>
105       <scope>test</scope>
106     </dependency>
107   </dependencies>
108
109   <build>
110     <plugins>
111       <plugin>
112           <artifactId>maven-surefire-plugin</artifactId>
113           <configuration>
114               <!-- Overridden to fix corruption, where the process would hang after test -->
115               <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
116               <systemPropertyVariables>
117                 <!-- CONTROLLER-1799: Use the same repository for Pax Exam as is used for Maven -->
118                 <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
119               </systemPropertyVariables>
120           </configuration>
121       </plugin>
122       <plugin>
123         <groupId>org.apache.maven.plugins</groupId>
124         <artifactId>maven-failsafe-plugin</artifactId>
125         <executions>
126           <execution>
127             <goals>
128               <goal>integration-test</goal>
129               <goal>verify</goal>
130             </goals>
131             <configuration>
132               <systemProperties>
133                 <property>
134                  <name>karaf.distro.groupId</name>
135                  <value>${karaf.distro.groupId}</value>
136                 </property>
137                 <property>
138                  <name>karaf.distro.artifactId</name>
139                  <value>${karaf.distro.artifactId}</value>
140                 </property>
141                 <property>
142                  <name>karaf.distro.version</name>
143                  <value>${karaf.distro.version}</value>
144                 </property>
145                 <property>
146                  <name>karaf.distro.type</name>
147                  <value>${karaf.distro.type}</value>
148                 </property>
149                 <property>
150                  <name>karaf.keep.unpack</name>
151                  <value>${karaf.keep.unpack}</value>
152                 </property>
153               </systemProperties>
154               <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
155             </configuration>
156           </execution>
157         </executions>
158       </plugin>
159       <!-- Needed if you use versionAsInProject() -->
160       <plugin>
161           <groupId>org.apache.servicemix.tooling</groupId>
162           <artifactId>depends-maven-plugin</artifactId>
163           <executions>
164               <execution>
165                   <id>generate-depends-file</id>
166                   <goals>
167                       <goal>generate-depends-file</goal>
168                   </goals>
169               </execution>
170           </executions>
171       </plugin>
172
173       <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
174       <plugin>
175         <groupId>org.apache.maven.plugins</groupId>
176         <artifactId>maven-dependency-plugin</artifactId>
177         <executions>
178           <execution>
179             <id>unpack-karaf-resources</id>
180             <goals>
181               <goal>unpack-dependencies</goal>
182             </goals>
183             <phase>process-test-resources</phase>
184             <configuration>
185               <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
186               <groupId>org.opendaylight.controller</groupId>
187               <includeArtifactIds>mockito-core,byte-buddy,objenesis,mdsal-it-base</includeArtifactIds>
188               <excludes>META-INF\/**</excludes>
189               <ignorePermissions>false</ignorePermissions>
190             </configuration>
191           </execution>
192         </executions>
193       </plugin>
194     </plugins>
195   </build>
196 </project>