eaa3d6b8b5e352123380e9c28661545965bc1d8e
[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.6.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.5.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.8.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
83     <!-- Testing Dependencies -->
84     <dependency>
85       <groupId>org.mockito</groupId>
86       <artifactId>mockito-core</artifactId>
87       <scope>test</scope>
88     </dependency>
89   </dependencies>
90   <build>
91     <plugins>
92       <plugin>
93         <groupId>org.apache.maven.plugins</groupId>
94         <artifactId>maven-failsafe-plugin</artifactId>
95         <executions>
96           <execution>
97             <goals>
98               <goal>integration-test</goal>
99               <goal>verify</goal>
100             </goals>
101             <configuration>
102               <systemProperties>
103                 <property>
104                  <name>karaf.distro.groupId</name>
105                  <value>${karaf.distro.groupId}</value>
106                 </property>
107                 <property>
108                  <name>karaf.distro.artifactId</name>
109                  <value>${karaf.distro.artifactId}</value>
110                 </property>
111                 <property>
112                  <name>karaf.distro.version</name>
113                  <value>${karaf.distro.version}</value>
114                 </property>
115                 <property>
116                  <name>karaf.distro.type</name>
117                  <value>${karaf.distro.type}</value>
118                 </property>
119                 <property>
120                  <name>karaf.keep.unpack</name>
121                  <value>${karaf.keep.unpack}</value>
122                 </property>
123               </systemProperties>
124               <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
125             </configuration>
126           </execution>
127         </executions>
128       </plugin>
129       <!-- Needed if you use versionAsInProject() -->
130       <plugin>
131           <groupId>org.apache.servicemix.tooling</groupId>
132           <artifactId>depends-maven-plugin</artifactId>
133           <executions>
134               <execution>
135                   <id>generate-depends-file</id>
136                   <goals>
137                       <goal>generate-depends-file</goal>
138                   </goals>
139               </execution>
140           </executions>
141       </plugin>
142
143       <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
144       <plugin>
145         <groupId>org.apache.maven.plugins</groupId>
146         <artifactId>maven-dependency-plugin</artifactId>
147         <executions>
148           <execution>
149            <id>unpack-karaf-resources</id>
150            <goals>
151             <goal>unpack-dependencies</goal>
152            </goals>
153            <phase>process-test-resources</phase>
154            <configuration>
155             <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
156             <groupId>org.opendaylight.controller</groupId>
157             <includeArtifactIds>config-it-base,mdsal-it-base</includeArtifactIds>
158             <excludes>META-INF\/**</excludes>
159             <ignorePermissions>false</ignorePermissions>
160            </configuration>
161           </execution>
162          </executions>
163       </plugin>
164     </plugins>
165   </build>
166 </project>