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

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.