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>7.0.5</version>
20 <groupId>org.opendaylight.controller</groupId>
21 <artifactId>mdsal-it-parent</artifactId>
22 <version>2.0.4-SNAPSHOT</version>
23 <packaging>pom</packaging>
26 <karaf.distro.groupId>org.opendaylight.odlparent</karaf.distro.groupId>
27 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
28 <karaf.distro.type>zip</karaf.distro.type>
29 <karaf.keep.unpack>false</karaf.keep.unpack>
32 <dependencyManagement>
35 <groupId>org.opendaylight.controller</groupId>
36 <artifactId>controller-artifacts</artifactId>
37 <version>2.0.4-SNAPSHOT</version>
42 </dependencyManagement>
46 <groupId>org.opendaylight.controller</groupId>
47 <artifactId>mdsal-it-base</artifactId>
50 <!-- Dependencies for pax exam karaf container -->
52 <groupId>org.ops4j.pax.exam</groupId>
53 <artifactId>pax-exam-container-karaf</artifactId>
56 <groupId>org.ops4j.pax.exam</groupId>
57 <artifactId>pax-exam-junit4</artifactId>
60 <groupId>org.ops4j.pax.exam</groupId>
61 <artifactId>pax-exam</artifactId>
64 <groupId>org.ops4j.pax.exam</groupId>
65 <artifactId>pax-exam-features</artifactId>
69 <groupId>org.ops4j.pax.exam</groupId>
70 <artifactId>pax-exam-extender-service</artifactId>
73 <groupId>org.ops4j.pax.exam</groupId>
74 <artifactId>pax-exam-inject</artifactId>
77 <groupId>org.ops4j.pax.exam</groupId>
78 <artifactId>pax-exam-invoker-junit</artifactId>
81 <groupId>org.ops4j.pax.url</groupId>
82 <artifactId>pax-url-aether</artifactId>
85 <groupId>javax.inject</groupId>
86 <artifactId>javax.inject</artifactId>
90 <groupId>org.apache.karaf.features</groupId>
91 <artifactId>org.apache.karaf.features.core</artifactId>
92 <version>${karaf.version}</version>
95 <groupId>org.osgi</groupId>
96 <artifactId>org.osgi.core</artifactId>
99 <groupId>junit</groupId>
100 <artifactId>junit</artifactId>
103 <!-- Testing Dependencies -->
105 <groupId>org.mockito</groupId>
106 <artifactId>mockito-core</artifactId>
113 <artifactId>maven-surefire-plugin</artifactId>
114 <!-- Overridden to have TCP channel support -->
115 <version>3.0.0-M5</version>
117 <!-- Overridden to fix corruption, where the process would hang after test -->
118 <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
119 <systemPropertyVariables>
120 <!-- CONTROLLER-1799: Use the same repository for Pax Exam as is used for Maven -->
121 <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
122 </systemPropertyVariables>
126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-failsafe-plugin</artifactId>
131 <goal>integration-test</goal>
137 <name>karaf.distro.groupId</name>
138 <value>${karaf.distro.groupId}</value>
141 <name>karaf.distro.artifactId</name>
142 <value>${karaf.distro.artifactId}</value>
145 <name>karaf.distro.version</name>
146 <value>${karaf.distro.version}</value>
149 <name>karaf.distro.type</name>
150 <value>${karaf.distro.type}</value>
153 <name>karaf.keep.unpack</name>
154 <value>${karaf.keep.unpack}</value>
157 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
162 <!-- Needed if you use versionAsInProject() -->
164 <groupId>org.apache.servicemix.tooling</groupId>
165 <artifactId>depends-maven-plugin</artifactId>
168 <id>generate-depends-file</id>
170 <goal>generate-depends-file</goal>
176 <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
178 <groupId>org.apache.maven.plugins</groupId>
179 <artifactId>maven-dependency-plugin</artifactId>
182 <id>unpack-karaf-resources</id>
184 <goal>unpack-dependencies</goal>
186 <phase>process-test-resources</phase>
188 <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
189 <groupId>org.opendaylight.controller</groupId>
190 <includeArtifactIds>mockito-core,objenesis,mdsal-it-base</includeArtifactIds>
191 <excludes>META-INF\/**</excludes>
192 <ignorePermissions>false</ignorePermissions>