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.0</version>
20 <groupId>org.opendaylight.controller</groupId>
21 <artifactId>mdsal-it-parent</artifactId>
22 <version>1.7.1-SNAPSHOT</version>
23 <packaging>pom</packaging>
26 <mdsal.version>1.7.1-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.version>3.1.0</karaf.distro.version>
30 <karaf.distro.type>zip</karaf.distro.type>
31 <karaf.keep.unpack>false</karaf.keep.unpack>
34 <dependencyManagement>
37 <groupId>org.opendaylight.controller</groupId>
38 <artifactId>mdsal-artifacts</artifactId>
39 <version>${mdsal.version}</version>
44 </dependencyManagement>
48 <groupId>org.opendaylight.controller</groupId>
49 <artifactId>mdsal-it-base</artifactId>
50 <version>${mdsal.version}</version>
53 <!-- Dependencies for pax exam karaf container -->
55 <groupId>org.ops4j.pax.exam</groupId>
56 <artifactId>pax-exam-container-karaf</artifactId>
59 <groupId>org.ops4j.pax.exam</groupId>
60 <artifactId>pax-exam-junit4</artifactId>
63 <groupId>org.ops4j.pax.exam</groupId>
64 <artifactId>pax-exam</artifactId>
67 <groupId>org.ops4j.pax.exam</groupId>
68 <artifactId>pax-exam-features</artifactId>
71 <!-- FIXME: remove version declaration and scope once odlparent has this -->
72 <version>${exam.version}</version>
76 <groupId>org.ops4j.pax.exam</groupId>
77 <artifactId>pax-exam-extender-service</artifactId>
79 <!-- FIXME: remove version declaration and scope once odlparent has this -->
80 <version>${exam.version}</version>
84 <groupId>org.ops4j.pax.exam</groupId>
85 <artifactId>pax-exam-inject</artifactId>
87 <!-- FIXME: remove version declaration and scope once odlparent has this -->
88 <version>${exam.version}</version>
93 <groupId>org.ops4j.pax.exam</groupId>
94 <artifactId>pax-exam-invoker-junit</artifactId>
96 <!-- FIXME: remove version declaration and scope once odlparent has this -->
97 <version>${exam.version}</version>
102 <groupId>org.ops4j.pax.url</groupId>
103 <artifactId>pax-url-aether</artifactId>
106 <groupId>javax.inject</groupId>
107 <artifactId>javax.inject</artifactId>
111 <groupId>org.apache.karaf.features</groupId>
112 <artifactId>org.apache.karaf.features.core</artifactId>
113 <version>${karaf.version}</version>
116 <groupId>org.osgi</groupId>
117 <artifactId>org.osgi.core</artifactId>
120 <groupId>junit</groupId>
121 <artifactId>junit</artifactId>
124 <!-- Testing Dependencies -->
126 <groupId>org.mockito</groupId>
127 <artifactId>mockito-core</artifactId>
134 <artifactId>maven-surefire-plugin</artifactId>
135 <version>${maven.surefire.version}</version>
137 <systemPropertyVariables>
138 <!-- CONTROLLER-1799: Use the same repository for Pax Exam as is used for Maven -->
139 <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
140 </systemPropertyVariables>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-failsafe-plugin</artifactId>
149 <goal>integration-test</goal>
155 <name>karaf.distro.groupId</name>
156 <value>${karaf.distro.groupId}</value>
159 <name>karaf.distro.artifactId</name>
160 <value>${karaf.distro.artifactId}</value>
163 <name>karaf.distro.version</name>
164 <value>${karaf.distro.version}</value>
167 <name>karaf.distro.type</name>
168 <value>${karaf.distro.type}</value>
171 <name>karaf.keep.unpack</name>
172 <value>${karaf.keep.unpack}</value>
175 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
180 <!-- Needed if you use versionAsInProject() -->
182 <groupId>org.apache.servicemix.tooling</groupId>
183 <artifactId>depends-maven-plugin</artifactId>
186 <id>generate-depends-file</id>
188 <goal>generate-depends-file</goal>
194 <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
196 <groupId>org.apache.maven.plugins</groupId>
197 <artifactId>maven-dependency-plugin</artifactId>
200 <id>unpack-karaf-resources</id>
202 <goal>unpack-dependencies</goal>
204 <phase>process-test-resources</phase>
206 <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
207 <groupId>org.opendaylight.controller</groupId>
208 <includeArtifactIds>config-it-base,mdsal-it-base</includeArtifactIds>
209 <excludes>META-INF\/**</excludes>
210 <ignorePermissions>false</ignorePermissions>