Upgrade to odlparent 2.0.2
[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 Copyright (c) 2014 Cisco Systems, 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" 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
11   <parent>
12     <groupId>org.opendaylight.odlparent</groupId>
13     <artifactId>bundle-parent</artifactId>
14     <version>2.0.2</version>
15     <relativePath/>
16   </parent>
17   <modelVersion>4.0.0</modelVersion>
18   <groupId>org.opendaylight.controller</groupId>
19   <artifactId>mdsal-it-parent</artifactId>
20   <version>1.6.0-SNAPSHOT</version>
21   <packaging>pom</packaging>
22   <properties>
23     <mdsal.version>1.6.0-SNAPSHOT</mdsal.version>
24     <karaf.distro.groupId>org.opendaylight.odlparent</karaf.distro.groupId>
25     <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
26     <karaf.distro.version>2.0.1</karaf.distro.version>
27     <karaf.distro.type>zip</karaf.distro.type>
28     <karaf.keep.unpack>false</karaf.keep.unpack>
29   </properties>
30   <dependencyManagement>
31     <dependencies>
32       <dependency>
33         <groupId>org.opendaylight.controller</groupId>
34         <artifactId>mdsal-artifacts</artifactId>
35         <version>${mdsal.version}</version>
36         <type>pom</type>
37         <scope>import</scope>
38       </dependency>
39     </dependencies>
40   </dependencyManagement>
41
42   <dependencies>
43     <dependency>
44       <groupId>org.opendaylight.controller</groupId>
45       <artifactId>mdsal-it-base</artifactId>
46       <version>${mdsal.version}</version>
47     </dependency>
48
49     <!-- Dependencies for pax exam karaf container -->
50     <dependency>
51         <groupId>org.ops4j.pax.exam</groupId>
52         <artifactId>pax-exam-container-karaf</artifactId>
53     </dependency>
54     <dependency>
55         <groupId>org.ops4j.pax.exam</groupId>
56         <artifactId>pax-exam-junit4</artifactId>
57     </dependency>
58     <dependency>
59         <groupId>org.ops4j.pax.exam</groupId>
60         <artifactId>pax-exam</artifactId>
61     </dependency>
62     <dependency>
63         <groupId>org.ops4j.pax.exam</groupId>
64         <artifactId>pax-exam-features</artifactId>
65         <type>xml</type>
66
67         <!-- FIXME: remove version declaration and scope once odlparent has this -->
68         <version>${exam.version}</version>
69         <scope>test</scope>
70     </dependency>
71     <dependency>
72         <groupId>org.ops4j.pax.exam</groupId>
73         <artifactId>pax-exam-extender-service</artifactId>
74
75         <!-- FIXME: remove version declaration and scope once odlparent has this -->
76         <version>${exam.version}</version>
77         <scope>test</scope>
78     </dependency>
79     <dependency>
80         <groupId>org.ops4j.pax.exam</groupId>
81         <artifactId>pax-exam-inject</artifactId>
82
83         <!-- FIXME: remove version declaration and scope once odlparent has this -->
84         <version>${exam.version}</version>
85         <scope>test</scope>
86     </dependency>
87
88     <dependency>
89         <groupId>org.ops4j.pax.exam</groupId>
90         <artifactId>pax-exam-invoker-junit</artifactId>
91
92         <!-- FIXME: remove version declaration and scope once odlparent has this -->
93         <version>${exam.version}</version>
94         <scope>test</scope>
95     </dependency>
96
97     <dependency>
98         <groupId>org.ops4j.pax.url</groupId>
99         <artifactId>pax-url-aether</artifactId>
100     </dependency>
101     <dependency>
102         <groupId>javax.inject</groupId>
103         <artifactId>javax.inject</artifactId>
104         <version>1</version>
105     </dependency>
106     <dependency>
107         <groupId>org.apache.karaf.features</groupId>
108         <artifactId>org.apache.karaf.features.core</artifactId>
109         <version>${karaf.version}</version>
110     </dependency>
111     <dependency>
112         <groupId>org.osgi</groupId>
113         <artifactId>org.osgi.core</artifactId>
114     </dependency>
115     <dependency>
116         <groupId>junit</groupId>
117         <artifactId>junit</artifactId>
118     </dependency>
119
120     <!-- Testing Dependencies -->
121     <dependency>
122       <groupId>org.mockito</groupId>
123       <artifactId>mockito-core</artifactId>
124       <scope>test</scope>
125     </dependency>
126   </dependencies>
127   <build>
128     <plugins>
129       <plugin>
130         <groupId>org.apache.maven.plugins</groupId>
131         <artifactId>maven-failsafe-plugin</artifactId>
132         <executions>
133           <execution>
134             <goals>
135               <goal>integration-test</goal>
136               <goal>verify</goal>
137             </goals>
138             <configuration>
139               <systemProperties>
140                 <property>
141                  <name>karaf.distro.groupId</name>
142                  <value>${karaf.distro.groupId}</value>
143                 </property>
144                 <property>
145                  <name>karaf.distro.artifactId</name>
146                  <value>${karaf.distro.artifactId}</value>
147                 </property>
148                 <property>
149                  <name>karaf.distro.version</name>
150                  <value>${karaf.distro.version}</value>
151                 </property>
152                 <property>
153                  <name>karaf.distro.type</name>
154                  <value>${karaf.distro.type}</value>
155                 </property>
156                 <property>
157                  <name>karaf.keep.unpack</name>
158                  <value>${karaf.keep.unpack}</value>
159                 </property>
160               </systemProperties>
161               <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
162             </configuration>
163           </execution>
164         </executions>
165       </plugin>
166       <!-- Needed if you use versionAsInProject() -->
167       <plugin>
168           <groupId>org.apache.servicemix.tooling</groupId>
169           <artifactId>depends-maven-plugin</artifactId>
170           <executions>
171               <execution>
172                   <id>generate-depends-file</id>
173                   <goals>
174                       <goal>generate-depends-file</goal>
175                   </goals>
176               </execution>
177           </executions>
178       </plugin>
179
180       <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
181       <plugin>
182         <groupId>org.apache.maven.plugins</groupId>
183         <artifactId>maven-dependency-plugin</artifactId>
184         <executions>
185           <execution>
186            <id>unpack-karaf-resources</id>
187            <goals>
188             <goal>unpack-dependencies</goal>
189            </goals>
190            <phase>process-test-resources</phase>
191            <configuration>
192             <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
193             <groupId>org.opendaylight.controller</groupId>
194             <includeArtifactIds>config-it-base,mdsal-it-base</includeArtifactIds>
195             <excludes>META-INF\/**</excludes>
196             <ignorePermissions>false</ignorePermissions>
197            </configuration>
198           </execution>
199          </executions>
200       </plugin>
201     </plugins>
202   </build>
203 </project>