1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
4 Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
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>
14 <groupId>org.opendaylight.odlparent</groupId>
15 <artifactId>bundle-parent</artifactId>
16 <version>3.1.2</version>
20 <groupId>org.opendaylight.controller</groupId>
21 <artifactId>mdsal-it-parent</artifactId>
22 <version>1.8.0-SNAPSHOT</version>
23 <packaging>pom</packaging>
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>
33 <dependencyManagement>
36 <groupId>org.opendaylight.controller</groupId>
37 <artifactId>mdsal-artifacts</artifactId>
38 <version>${mdsal.version}</version>
43 </dependencyManagement>
47 <groupId>org.opendaylight.controller</groupId>
48 <artifactId>mdsal-it-base</artifactId>
49 <version>${mdsal.version}</version>
52 <!-- Dependencies for pax exam karaf container -->
54 <groupId>org.ops4j.pax.exam</groupId>
55 <artifactId>pax-exam-container-karaf</artifactId>
58 <groupId>org.ops4j.pax.exam</groupId>
59 <artifactId>pax-exam-junit4</artifactId>
62 <groupId>org.ops4j.pax.exam</groupId>
63 <artifactId>pax-exam</artifactId>
66 <groupId>org.ops4j.pax.exam</groupId>
67 <artifactId>pax-exam-features</artifactId>
70 <!-- FIXME: remove version declaration and scope once odlparent has this -->
71 <version>${exam.version}</version>
75 <groupId>org.ops4j.pax.exam</groupId>
76 <artifactId>pax-exam-extender-service</artifactId>
78 <!-- FIXME: remove version declaration and scope once odlparent has this -->
79 <version>${exam.version}</version>
83 <groupId>org.ops4j.pax.exam</groupId>
84 <artifactId>pax-exam-inject</artifactId>
86 <!-- FIXME: remove version declaration and scope once odlparent has this -->
87 <version>${exam.version}</version>
92 <groupId>org.ops4j.pax.exam</groupId>
93 <artifactId>pax-exam-invoker-junit</artifactId>
95 <!-- FIXME: remove version declaration and scope once odlparent has this -->
96 <version>${exam.version}</version>
101 <groupId>org.ops4j.pax.url</groupId>
102 <artifactId>pax-url-aether</artifactId>
105 <groupId>javax.inject</groupId>
106 <artifactId>javax.inject</artifactId>
110 <groupId>org.apache.karaf.features</groupId>
111 <artifactId>org.apache.karaf.features.core</artifactId>
112 <version>${karaf.version}</version>
115 <groupId>org.osgi</groupId>
116 <artifactId>org.osgi.core</artifactId>
119 <groupId>junit</groupId>
120 <artifactId>junit</artifactId>
123 <!-- Testing Dependencies -->
125 <groupId>org.mockito</groupId>
126 <artifactId>mockito-core</artifactId>
133 <artifactId>maven-surefire-plugin</artifactId>
134 <version>${maven.surefire.version}</version>
136 <systemPropertyVariables>
137 <!-- CONTROLLER-1799: Use the same repository for Pax Exam as is used for Maven -->
138 <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
139 </systemPropertyVariables>
143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-failsafe-plugin</artifactId>
148 <goal>integration-test</goal>
154 <name>karaf.distro.groupId</name>
155 <value>${karaf.distro.groupId}</value>
158 <name>karaf.distro.artifactId</name>
159 <value>${karaf.distro.artifactId}</value>
162 <name>karaf.distro.version</name>
163 <value>${karaf.distro.version}</value>
166 <name>karaf.distro.type</name>
167 <value>${karaf.distro.type}</value>
170 <name>karaf.keep.unpack</name>
171 <value>${karaf.keep.unpack}</value>
174 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
179 <!-- Needed if you use versionAsInProject() -->
181 <groupId>org.apache.servicemix.tooling</groupId>
182 <artifactId>depends-maven-plugin</artifactId>
185 <id>generate-depends-file</id>
187 <goal>generate-depends-file</goal>
193 <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
195 <groupId>org.apache.maven.plugins</groupId>
196 <artifactId>maven-dependency-plugin</artifactId>
199 <id>unpack-karaf-resources</id>
201 <goal>unpack-dependencies</goal>
203 <phase>process-test-resources</phase>
205 <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
206 <groupId>org.opendaylight.controller</groupId>
207 <includeArtifactIds>mockito-core,objenesis,mdsal-it-base</includeArtifactIds>
208 <excludes>META-INF\/**</excludes>
209 <ignorePermissions>false</ignorePermissions>