Fix Karaf dependencies and add tests
[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-commons</artifactId>
14     <version>1.1.11-SNAPSHOT</version>
15     <relativePath>../commons/parent</relativePath>
16   </parent>
17   <artifactId>features-lispflowmapping</artifactId>
18   <name>LISP Flow Mapping Project - Karaf Features</name>
19   <packaging>jar</packaging>
20   <properties>
21     <features.file>features.xml</features.file>
22   </properties>
23
24   <dependencies>
25     <dependency>
26       <groupId>org.opendaylight.controller</groupId>
27       <artifactId>features-mdsal</artifactId>
28       <version>${mdsal.version}</version>
29       <classifier>features</classifier>
30       <type>xml</type>
31     </dependency>
32     <dependency>
33       <groupId>org.opendaylight.controller</groupId>
34       <artifactId>features-adsal</artifactId>
35       <version>${sal.version}</version>
36       <classifier>features</classifier>
37       <type>xml</type>
38     </dependency>
39     <!-- test to validate features.xml -->
40     <dependency>
41       <groupId>org.opendaylight.yangtools</groupId>
42       <artifactId>features-test</artifactId>
43       <version>${feature.test.version}</version>
44       <scope>test</scope>
45     </dependency>
46     <!-- dependency for opendaylight-karaf-empty for use by testing -->
47     <dependency>
48       <groupId>org.opendaylight.controller</groupId>
49       <artifactId>opendaylight-karaf-empty</artifactId>
50       <version>${karaf.empty.version}</version>
51       <type>zip</type>
52     </dependency>
53     <!-- error : java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple; -->
54     <dependency>
55       <groupId>org.slf4j</groupId>
56       <artifactId>slf4j-simple</artifactId>
57       <version>1.7.2</version>
58     </dependency>
59   </dependencies>
60
61   <build>
62     <resources>
63       <resource>
64         <directory>src/main/resources</directory>
65         <filtering>true</filtering>
66       </resource>
67     </resources>
68     <plugins>
69        <plugin>
70           <groupId>org.apache.maven.plugins</groupId>
71           <artifactId>maven-resources-plugin</artifactId>
72           <executions>
73              <execution>
74                 <id>filter</id>
75                 <phase>generate-resources</phase>
76                 <goals>
77                    <goal>resources</goal>
78                 </goals>
79              </execution>
80           </executions>
81        </plugin>
82        <plugin>
83           <groupId>org.codehaus.mojo</groupId>
84           <artifactId>build-helper-maven-plugin</artifactId>
85           <executions>
86              <execution>
87                 <id>attach-artifacts</id>
88                 <phase>package</phase>
89                 <goals>
90                    <goal>attach-artifact</goal>
91                 </goals>
92                 <configuration>
93                    <artifacts>
94                       <artifact>
95                          <file>${project.build.directory}/classes/${features.file}</file>
96                          <type>xml</type>
97                          <classifier>features</classifier>
98                       </artifact>
99                    </artifacts>
100                 </configuration>
101              </execution>
102           </executions>
103        </plugin>
104        <plugin>
105           <groupId>org.apache.maven.plugins</groupId>
106           <artifactId>maven-surefire-plugin</artifactId>
107           <version>${surefire.version}</version>
108           <configuration>
109             <systemPropertyVariables>
110               <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
111               <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
112               <karaf.distro.version>${karaf.empty.version}</karaf.distro.version>
113             </systemPropertyVariables>
114             <dependenciesToScan>
115              <dependency>org.opendaylight.yangtools:features-test</dependency>
116             </dependenciesToScan>
117           </configuration>
118         </plugin>
119     </plugins>
120   </build>
121   <scm>
122     <connection>scm:git:https://git.opendaylight.org/gerrit/p/lispflowmapping.git</connection>
123     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/lispflowmapping.git</developerConnection>
124     <tag>HEAD</tag>
125     <url>https://wiki.opendaylight.org/view/OpenDaylight_Lisp_Flow_Mapping:Main</url>
126    </scm>
127 </project>