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>4.0.9</version>
20 <groupId>org.opendaylight.controller</groupId>
21 <artifactId>mdsal-it-parent</artifactId>
22 <version>1.9.1-SNAPSHOT</version>
23 <packaging>pom</packaging>
26 <mdsal.version>1.9.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.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>
71 <groupId>org.ops4j.pax.exam</groupId>
72 <artifactId>pax-exam-extender-service</artifactId>
75 <groupId>org.ops4j.pax.exam</groupId>
76 <artifactId>pax-exam-inject</artifactId>
79 <groupId>org.ops4j.pax.exam</groupId>
80 <artifactId>pax-exam-invoker-junit</artifactId>
83 <groupId>org.ops4j.pax.url</groupId>
84 <artifactId>pax-url-aether</artifactId>
87 <groupId>javax.inject</groupId>
88 <artifactId>javax.inject</artifactId>
92 <groupId>org.apache.karaf.features</groupId>
93 <artifactId>org.apache.karaf.features.core</artifactId>
94 <version>${karaf.version}</version>
97 <groupId>org.osgi</groupId>
98 <artifactId>org.osgi.core</artifactId>
101 <groupId>junit</groupId>
102 <artifactId>junit</artifactId>
105 <!-- Testing Dependencies -->
107 <groupId>org.mockito</groupId>
108 <artifactId>mockito-core</artifactId>
115 <artifactId>maven-surefire-plugin</artifactId>
117 <systemPropertyVariables>
118 <!-- CONTROLLER-1799: Use the same repository for Pax Exam as is used for Maven -->
119 <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
120 </systemPropertyVariables>
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-failsafe-plugin</artifactId>
129 <goal>integration-test</goal>
135 <name>karaf.distro.groupId</name>
136 <value>${karaf.distro.groupId}</value>
139 <name>karaf.distro.artifactId</name>
140 <value>${karaf.distro.artifactId}</value>
143 <name>karaf.distro.version</name>
144 <value>${karaf.distro.version}</value>
147 <name>karaf.distro.type</name>
148 <value>${karaf.distro.type}</value>
151 <name>karaf.keep.unpack</name>
152 <value>${karaf.keep.unpack}</value>
155 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
160 <!-- Needed if you use versionAsInProject() -->
162 <groupId>org.apache.servicemix.tooling</groupId>
163 <artifactId>depends-maven-plugin</artifactId>
166 <id>generate-depends-file</id>
168 <goal>generate-depends-file</goal>
174 <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-dependency-plugin</artifactId>
180 <id>unpack-karaf-resources</id>
182 <goal>unpack-dependencies</goal>
184 <phase>process-test-resources</phase>
186 <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
187 <groupId>org.opendaylight.controller</groupId>
188 <includeArtifactIds>mockito-core,objenesis,mdsal-it-base</includeArtifactIds>
189 <excludes>META-INF\/**</excludes>
190 <ignorePermissions>false</ignorePermissions>