Bump version to 2.0.1-SNAPSHOT
[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.1</version>
17     <relativePath/>
18   </parent>
19
20   <groupId>org.opendaylight.controller</groupId>
21   <artifactId>mdsal-it-parent</artifactId>
22   <version>2.0.1-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.1-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           <configuration>
115               <systemPropertyVariables>
116                 <!-- CONTROLLER-1799: Use the same repository for Pax Exam as is used for Maven -->
117                 <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
118               </systemPropertyVariables>
119           </configuration>
120       </plugin>
121       <plugin>
122         <groupId>org.apache.maven.plugins</groupId>
123         <artifactId>maven-failsafe-plugin</artifactId>
124         <executions>
125           <execution>
126             <goals>
127               <goal>integration-test</goal>
128               <goal>verify</goal>
129             </goals>
130             <configuration>
131               <systemProperties>
132                 <property>
133                  <name>karaf.distro.groupId</name>
134                  <value>${karaf.distro.groupId}</value>
135                 </property>
136                 <property>
137                  <name>karaf.distro.artifactId</name>
138                  <value>${karaf.distro.artifactId}</value>
139                 </property>
140                 <property>
141                  <name>karaf.distro.version</name>
142                  <value>${karaf.distro.version}</value>
143                 </property>
144                 <property>
145                  <name>karaf.distro.type</name>
146                  <value>${karaf.distro.type}</value>
147                 </property>
148                 <property>
149                  <name>karaf.keep.unpack</name>
150                  <value>${karaf.keep.unpack}</value>
151                 </property>
152               </systemProperties>
153               <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
154             </configuration>
155           </execution>
156         </executions>
157       </plugin>
158       <!-- Needed if you use versionAsInProject() -->
159       <plugin>
160           <groupId>org.apache.servicemix.tooling</groupId>
161           <artifactId>depends-maven-plugin</artifactId>
162           <executions>
163               <execution>
164                   <id>generate-depends-file</id>
165                   <goals>
166                       <goal>generate-depends-file</goal>
167                   </goals>
168               </execution>
169           </executions>
170       </plugin>
171
172       <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
173       <plugin>
174         <groupId>org.apache.maven.plugins</groupId>
175         <artifactId>maven-dependency-plugin</artifactId>
176         <executions>
177           <execution>
178            <id>unpack-karaf-resources</id>
179            <goals>
180             <goal>unpack-dependencies</goal>
181            </goals>
182            <phase>process-test-resources</phase>
183            <configuration>
184             <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
185             <groupId>org.opendaylight.controller</groupId>
186             <includeArtifactIds>mockito-core,objenesis,mdsal-it-base</includeArtifactIds>
187             <excludes>META-INF\/**</excludes>
188             <ignorePermissions>false</ignorePermissions>
189            </configuration>
190           </execution>
191          </executions>
192       </plugin>
193     </plugins>
194   </build>
195 </project>