Make feature tests work again
[lispflowmapping.git] / features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
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   <modelVersion>4.0.0</modelVersion>
11   <parent>
12     <groupId>org.opendaylight.lispflowmapping</groupId>
13     <artifactId>lispflowmapping-all</artifactId>
14     <version>1.2.0-SNAPSHOT</version>
15   </parent>
16   <artifactId>features-lispflowmapping</artifactId>
17   <packaging>jar</packaging>
18   <name>LISP Flow Mapping Project - Karaf Features</name>
19   <properties>
20     <features.file>features.xml</features.file>
21   </properties>
22
23   <dependencies>
24     <dependency>
25       <groupId>org.opendaylight.controller</groupId>
26       <artifactId>features-adsal</artifactId>
27       <classifier>features</classifier>
28       <type>xml</type>
29     </dependency>
30     <dependency>
31       <groupId>org.opendaylight.controller</groupId>
32       <artifactId>features-mdsal</artifactId>
33       <classifier>features</classifier>
34       <type>xml</type>
35     </dependency>
36     <dependency>
37       <groupId>org.opendaylight.controller</groupId>
38       <artifactId>features-netconf-connector</artifactId>
39       <classifier>features</classifier>
40       <type>xml</type>
41     </dependency>
42     <dependency>
43       <groupId>org.opendaylight.controller</groupId>
44       <artifactId>features-neutron</artifactId>
45       <classifier>features</classifier>
46       <type>xml</type>
47     </dependency>
48     <dependency>
49       <groupId>org.opendaylight.controller</groupId>
50       <artifactId>features-nsf</artifactId>
51       <classifier>features</classifier>
52       <type>xml</type>
53     </dependency>
54     <!-- dependency for opendaylight-karaf-empty for use by testing -->
55     <dependency>
56       <groupId>org.opendaylight.controller</groupId>
57       <artifactId>opendaylight-karaf-empty</artifactId>
58       <type>zip</type>
59     </dependency>
60
61     <dependency>
62       <groupId>org.opendaylight.lispflowmapping</groupId>
63       <artifactId>mappingservice.api</artifactId>
64     </dependency>
65     <dependency>
66       <groupId>org.opendaylight.lispflowmapping</groupId>
67       <artifactId>mappingservice.clusterdao</artifactId>
68     </dependency>
69
70     <dependency>
71       <groupId>org.opendaylight.lispflowmapping</groupId>
72       <artifactId>mappingservice.config</artifactId>
73     </dependency>
74
75     <dependency>
76       <groupId>org.opendaylight.lispflowmapping</groupId>
77       <artifactId>mappingservice.implementation</artifactId>
78     </dependency>
79
80     <dependency>
81       <groupId>org.opendaylight.lispflowmapping</groupId>
82       <artifactId>mappingservice.netconf</artifactId>
83     </dependency>
84
85     <dependency>
86       <groupId>org.opendaylight.lispflowmapping</groupId>
87       <artifactId>mappingservice.neutron</artifactId>
88     </dependency>
89
90     <dependency>
91       <groupId>org.opendaylight.lispflowmapping</groupId>
92       <artifactId>mappingservice.northbound</artifactId>
93     </dependency>
94
95     <dependency>
96       <groupId>org.opendaylight.lispflowmapping</groupId>
97       <artifactId>mappingservice.southbound</artifactId>
98     </dependency>
99     <dependency>
100       <groupId>org.opendaylight.lispflowmapping</groupId>
101       <artifactId>mappingservice.yangmodel</artifactId>
102     </dependency>
103     <!-- error : java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple; -->
104     <dependency>
105       <groupId>org.slf4j</groupId>
106       <artifactId>slf4j-simple</artifactId>
107     </dependency>
108     <!-- test to validate features.xml -->
109     <dependency>
110       <groupId>org.opendaylight.odlparent</groupId>
111       <artifactId>features-test</artifactId>
112       <version>1.5.0-SNAPSHOT</version>
113       <scope>test</scope>
114     </dependency>
115   </dependencies>
116
117   <build>
118     <resources>
119       <resource>
120         <filtering>true</filtering>
121         <directory>src/main/resources</directory>
122       </resource>
123     </resources>
124     <plugins>
125       <plugin>
126         <groupId>org.apache.maven.plugins</groupId>
127         <artifactId>maven-resources-plugin</artifactId>
128         <executions>
129           <execution>
130             <id>filter</id>
131             <goals>
132               <goal>resources</goal>
133             </goals>
134             <phase>generate-resources</phase>
135           </execution>
136         </executions>
137       </plugin>
138       <plugin>
139         <groupId>org.apache.maven.plugins</groupId>
140         <artifactId>maven-surefire-plugin</artifactId>
141         <configuration>
142           <systemPropertyVariables>
143             <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
144             <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
145             <karaf.distro.version>${karaf.empty.version}</karaf.distro.version>
146           </systemPropertyVariables>
147           <dependenciesToScan>
148             <dependency>org.opendaylight.odlparent:features-test</dependency>
149           </dependenciesToScan>
150         </configuration>
151       </plugin>
152       <plugin>
153         <groupId>org.codehaus.mojo</groupId>
154         <artifactId>build-helper-maven-plugin</artifactId>
155         <executions>
156           <execution>
157             <id>attach-artifacts</id>
158             <goals>
159               <goal>attach-artifact</goal>
160             </goals>
161             <phase>package</phase>
162             <configuration>
163               <artifacts>
164                 <artifact>
165                   <file>${project.build.directory}/classes/${features.file}</file>
166                   <type>xml</type>
167                   <classifier>features</classifier>
168                 </artifact>
169               </artifacts>
170             </configuration>
171           </execution>
172         </executions>
173       </plugin>
174     </plugins>
175   </build>
176 </project>