Add northbound karaf feature
[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     <dependency>
40       <groupId>org.opendaylight.controller</groupId>
41       <artifactId>features-nsf</artifactId>
42       <version>${nsf.version}</version>
43       <classifier>features</classifier>
44       <type>xml</type>
45     </dependency>
46     <!-- test to validate features.xml -->
47     <dependency>
48       <groupId>org.opendaylight.yangtools</groupId>
49       <artifactId>features-test</artifactId>
50       <version>${feature.test.version}</version>
51       <scope>test</scope>
52     </dependency>
53     <!-- dependency for opendaylight-karaf-empty for use by testing -->
54     <dependency>
55       <groupId>org.opendaylight.controller</groupId>
56       <artifactId>opendaylight-karaf-empty</artifactId>
57       <version>${karaf.empty.version}</version>
58       <type>zip</type>
59     </dependency>
60     <!-- error : java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple; -->
61     <dependency>
62       <groupId>org.slf4j</groupId>
63       <artifactId>slf4j-simple</artifactId>
64       <version>1.7.2</version>
65     </dependency>
66   </dependencies>
67
68   <build>
69     <resources>
70       <resource>
71         <directory>src/main/resources</directory>
72         <filtering>true</filtering>
73       </resource>
74     </resources>
75     <plugins>
76        <plugin>
77           <groupId>org.apache.maven.plugins</groupId>
78           <artifactId>maven-resources-plugin</artifactId>
79           <executions>
80              <execution>
81                 <id>filter</id>
82                 <phase>generate-resources</phase>
83                 <goals>
84                    <goal>resources</goal>
85                 </goals>
86              </execution>
87           </executions>
88        </plugin>
89        <plugin>
90           <groupId>org.codehaus.mojo</groupId>
91           <artifactId>build-helper-maven-plugin</artifactId>
92           <executions>
93              <execution>
94                 <id>attach-artifacts</id>
95                 <phase>package</phase>
96                 <goals>
97                    <goal>attach-artifact</goal>
98                 </goals>
99                 <configuration>
100                    <artifacts>
101                       <artifact>
102                          <file>${project.build.directory}/classes/${features.file}</file>
103                          <type>xml</type>
104                          <classifier>features</classifier>
105                       </artifact>
106                    </artifacts>
107                 </configuration>
108              </execution>
109           </executions>
110        </plugin>
111        <plugin>
112           <groupId>org.apache.maven.plugins</groupId>
113           <artifactId>maven-surefire-plugin</artifactId>
114           <version>${surefire.version}</version>
115           <configuration>
116             <systemPropertyVariables>
117               <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
118               <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
119               <karaf.distro.version>${karaf.empty.version}</karaf.distro.version>
120             </systemPropertyVariables>
121             <dependenciesToScan>
122              <dependency>org.opendaylight.yangtools:features-test</dependency>
123             </dependenciesToScan>
124           </configuration>
125         </plugin>
126     </plugins>
127   </build>
128   <scm>
129     <connection>scm:git:https://git.opendaylight.org/gerrit/p/lispflowmapping.git</connection>
130     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/lispflowmapping.git</developerConnection>
131     <tag>HEAD</tag>
132     <url>https://wiki.opendaylight.org/view/OpenDaylight_Lisp_Flow_Mapping:Main</url>
133    </scm>
134 </project>