Expose yang source provider into config subsystem
[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.controller</groupId>
13     <artifactId>config-parent</artifactId>
14     <version>0.4.0-SNAPSHOT</version>
15     <relativePath>../../config/config-parent</relativePath>
16   </parent>
17   <modelVersion>4.0.0</modelVersion>
18   <artifactId>mdsal-it-parent</artifactId>
19   <version>1.3.0-SNAPSHOT</version>
20   <packaging>pom</packaging>
21   <properties>
22     <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
23     <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
24     <karaf.distro.version>1.6.0-SNAPSHOT</karaf.distro.version>
25     <karaf.distro.type>zip</karaf.distro.type>
26     <karaf.keep.unpack>false</karaf.keep.unpack>
27   </properties>
28   <dependencyManagement>
29     <dependencies>
30       <dependency>
31         <groupId>org.opendaylight.controller</groupId>
32         <artifactId>mdsal-artifacts</artifactId>
33         <version>${mdsal.version}</version>
34         <type>pom</type>
35         <scope>import</scope>
36       </dependency>
37     </dependencies>
38   </dependencyManagement>
39
40   <dependencies>
41     <dependency>
42       <groupId>org.opendaylight.controller</groupId>
43       <artifactId>mdsal-it-base</artifactId>
44       <version>${mdsal.version}</version>
45     </dependency>
46
47     <!-- Dependencies for pax exam karaf container -->
48     <dependency>
49         <groupId>org.ops4j.pax.exam</groupId>
50         <artifactId>pax-exam-container-karaf</artifactId>
51     </dependency>
52     <dependency>
53         <groupId>org.ops4j.pax.exam</groupId>
54         <artifactId>pax-exam-junit4</artifactId>
55     </dependency>
56     <dependency>
57         <groupId>org.ops4j.pax.exam</groupId>
58         <artifactId>pax-exam</artifactId>
59     </dependency>
60     <dependency>
61         <groupId>org.ops4j.pax.url</groupId>
62         <artifactId>pax-url-aether</artifactId>
63     </dependency>
64     <dependency>
65         <groupId>javax.inject</groupId>
66         <artifactId>javax.inject</artifactId>
67         <version>1</version>
68     </dependency>
69     <dependency>
70         <groupId>org.apache.karaf.features</groupId>
71         <artifactId>org.apache.karaf.features.core</artifactId>
72         <version>${karaf.version}</version>
73     </dependency>
74     <dependency>
75         <groupId>org.osgi</groupId>
76         <artifactId>org.osgi.core</artifactId>
77     </dependency>
78     <dependency>
79         <groupId>junit</groupId>
80         <artifactId>junit</artifactId>
81     </dependency>
82     <dependency>
83         <groupId>org.apache.karaf.tooling</groupId>
84         <artifactId>karaf-maven-plugin</artifactId>
85         <version>${karaf.version}</version>
86     </dependency>
87
88     <!-- Testing Dependencies -->
89     <dependency>
90       <groupId>org.mockito</groupId>
91       <artifactId>mockito-all</artifactId>
92       <scope>test</scope>
93     </dependency>
94   </dependencies>
95   <build>
96     <plugins>
97       <plugin>
98         <groupId>org.apache.maven.plugins</groupId>
99         <artifactId>maven-failsafe-plugin</artifactId>
100         <executions>
101           <execution>
102             <goals>
103               <goal>integration-test</goal>
104               <goal>verify</goal>
105             </goals>
106             <configuration>
107               <systemProperties>
108                 <property>
109                  <name>karaf.distro.groupId</name>
110                  <value>${karaf.distro.groupId}</value>
111                 </property>
112                 <property>
113                  <name>karaf.distro.artifactId</name>
114                  <value>${karaf.distro.artifactId}</value>
115                 </property>
116                 <property>
117                  <name>karaf.distro.version</name>
118                  <value>${karaf.distro.version}</value>
119                 </property>
120                 <property>
121                  <name>karaf.distro.type</name>
122                  <value>${karaf.distro.type}</value>
123                 </property>
124                 <property>
125                  <name>karaf.keep.unpack</name>
126                  <value>${karaf.keep.unpack}</value>
127                 </property>
128               </systemProperties>
129               <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
130             </configuration>
131           </execution>
132         </executions>
133       </plugin>
134       <!-- Needed if you use versionAsInProject() -->
135       <plugin>
136           <groupId>org.apache.servicemix.tooling</groupId>
137           <artifactId>depends-maven-plugin</artifactId>
138           <executions>
139               <execution>
140                   <id>generate-depends-file</id>
141                   <goals>
142                       <goal>generate-depends-file</goal>
143                   </goals>
144               </execution>
145           </executions>
146       </plugin>
147
148       <!-- Copy the Base Test classes into test-classes so they can become available in the karaf container -->
149       <plugin>
150         <groupId>org.apache.maven.plugins</groupId>
151         <artifactId>maven-dependency-plugin</artifactId>
152         <executions>
153           <execution>
154            <id>unpack-karaf-resources</id>
155            <goals>
156             <goal>unpack-dependencies</goal>
157            </goals>
158            <phase>process-test-resources</phase>
159            <configuration>
160             <outputDirectory>${project.build.directory}/test-classes</outputDirectory>
161             <groupId>org.opendaylight.controller</groupId>
162             <includeArtifactIds>config-it-base,mdsal-it-base</includeArtifactIds>
163             <excludes>META-INF\/**</excludes>
164             <ignorePermissions>false</ignorePermissions>
165            </configuration>
166           </execution>
167          </executions>
168       </plugin>
169     </plugins>
170   </build>
171 </project>