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