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