Bump odlparent/yangtools/mdsal to 7.0.4/5.0.4/6.0.3
[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>7.0.4</version>
17     <relativePath/>
18   </parent>
19
20   <groupId>org.opendaylight.controller</groupId>
21   <artifactId>mdsal-it-parent</artifactId>
22   <version>2.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   </properties>
31
32   <dependencyManagement>
33     <dependencies>
34       <dependency>
35         <groupId>org.opendaylight.controller</groupId>
36         <artifactId>controller-artifacts</artifactId>
37         <version>2.0.3-SNAPSHOT</version>
38         <type>pom</type>
39         <scope>import</scope>
40       </dependency>
41     </dependencies>
42   </dependencyManagement>
43
44   <dependencies>
45     <dependency>
46       <groupId>org.opendaylight.controller</groupId>
47       <artifactId>mdsal-it-base</artifactId>
48     </dependency>
49
50     <!-- Dependencies for pax exam karaf container -->
51     <dependency>
52         <groupId>org.ops4j.pax.exam</groupId>
53         <artifactId>pax-exam-container-karaf</artifactId>
54     </dependency>
55     <dependency>
56         <groupId>org.ops4j.pax.exam</groupId>
57         <artifactId>pax-exam-junit4</artifactId>
58     </dependency>
59     <dependency>
60         <groupId>org.ops4j.pax.exam</groupId>
61         <artifactId>pax-exam</artifactId>
62     </dependency>
63     <dependency>
64         <groupId>org.ops4j.pax.exam</groupId>
65         <artifactId>pax-exam-features</artifactId>
66         <type>xml</type>
67     </dependency>
68     <dependency>
69         <groupId>org.ops4j.pax.exam</groupId>
70         <artifactId>pax-exam-extender-service</artifactId>
71     </dependency>
72     <dependency>
73         <groupId>org.ops4j.pax.exam</groupId>
74         <artifactId>pax-exam-inject</artifactId>
75     </dependency>
76     <dependency>
77         <groupId>org.ops4j.pax.exam</groupId>
78         <artifactId>pax-exam-invoker-junit</artifactId>
79     </dependency>
80     <dependency>
81         <groupId>org.ops4j.pax.url</groupId>
82         <artifactId>pax-url-aether</artifactId>
83     </dependency>
84     <dependency>
85         <groupId>javax.inject</groupId>
86         <artifactId>javax.inject</artifactId>
87         <version>1</version>
88     </dependency>
89     <dependency>
90         <groupId>org.apache.karaf.features</groupId>
91         <artifactId>org.apache.karaf.features.core</artifactId>
92         <version>${karaf.version}</version>
93     </dependency>
94     <dependency>
95         <groupId>org.osgi</groupId>
96         <artifactId>org.osgi.core</artifactId>
97     </dependency>
98     <dependency>
99         <groupId>junit</groupId>
100         <artifactId>junit</artifactId>
101     </dependency>
102
103     <!-- Testing Dependencies -->
104     <dependency>
105       <groupId>org.mockito</groupId>
106       <artifactId>mockito-core</artifactId>
107       <scope>test</scope>
108     </dependency>
109   </dependencies>
110   <build>
111     <plugins>
112       <plugin>
113           <artifactId>maven-surefire-plugin</artifactId>
114               <!-- Overridden to have TCP channel support -->
115           <version>3.0.0-M5</version>
116           <configuration>
117               <!-- Overridden to fix corruption, where the process would hang after test -->
118               <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
119               <systemPropertyVariables>
120                 <!-- CONTROLLER-1799: Use the same repository for Pax Exam as is used for Maven -->
121                 <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
122               </systemPropertyVariables>
123           </configuration>
124       </plugin>
125       <plugin>
126         <groupId>org.apache.maven.plugins</groupId>
127         <artifactId>maven-failsafe-plugin</artifactId>
128         <executions>
129           <execution>
130             <goals>
131               <goal>integration-test</goal>
132               <goal>verify</goal>
133             </goals>
134             <configuration>
135               <systemProperties>
136                 <property>
137                  <name>karaf.distro.groupId</name>
138                  <value>${karaf.distro.groupId}</value>
139                 </property>
140                 <property>
141                  <name>karaf.distro.artifactId</name>
142                  <value>${karaf.distro.artifactId}</value>
143                 </property>
144                 <property>
145                  <name>karaf.distro.version</name>
146                  <value>${karaf.distro.version}</value>
147                 </property>
148                 <property>
149                  <name>karaf.distro.type</name>
150                  <value>${karaf.distro.type}</value>
151                 </property>
152                 <property>
153                  <name>karaf.keep.unpack</name>
154                  <value>${karaf.keep.unpack}</value>
155                 </property>
156               </systemProperties>
157               <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
158             </configuration>
159           </execution>
160         </executions>
161       </plugin>
162       <!-- Needed if you use versionAsInProject() -->
163       <plugin>
164           <groupId>org.apache.servicemix.tooling</groupId>
165           <artifactId>depends-maven-plugin</artifactId>
166           <executions>
167               <execution>
168                   <id>generate-depends-file</id>
169                   <goals>
170                       <goal>generate-depends-file</goal>
171                   </goals>
172               </execution>
173           </executions>
174       </plugin>
175
176       <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
177       <plugin>
178         <groupId>org.apache.maven.plugins</groupId>
179         <artifactId>maven-dependency-plugin</artifactId>
180         <executions>
181           <execution>
182            <id>unpack-karaf-resources</id>
183            <goals>
184             <goal>unpack-dependencies</goal>
185            </goals>
186            <phase>process-test-resources</phase>
187            <configuration>
188             <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
189             <groupId>org.opendaylight.controller</groupId>
190             <includeArtifactIds>mockito-core,objenesis,mdsal-it-base</includeArtifactIds>
191             <excludes>META-INF\/**</excludes>
192             <ignorePermissions>false</ignorePermissions>
193            </configuration>
194           </execution>
195          </executions>
196       </plugin>
197     </plugins>
198   </build>
199 </project>