Adding features-bgp features
[integration/distribution.git] / features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
5
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
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12    <modelVersion>4.0.0</modelVersion>
13    <parent>
14       <groupId>org.opendaylight.integration</groupId>
15       <artifactId>root</artifactId>
16       <version>0.2.0-SNAPSHOT</version>
17       <relativePath>../</relativePath>
18    </parent>
19    <artifactId>features-integration</artifactId>
20    <packaging>jar</packaging>
21    <properties>
22       <features.file>features.xml</features.file>
23    </properties>
24    <dependencies>
25     <!-- dependencies on feature repos -->
26     <dependency>
27       <groupId>org.opendaylight.controller</groupId>
28       <artifactId>features-mdsal</artifactId>
29       <version>${feature.mdsal.version}</version>
30       <classifier>features</classifier>
31       <type>xml</type>
32     </dependency>
33     <dependency>
34       <groupId>org.opendaylight.controller</groupId>
35       <artifactId>features-adsal</artifactId>
36       <classifier>features</classifier>
37       <type>xml</type>
38     </dependency>
39     <dependency>
40       <groupId>org.opendaylight.controller</groupId>
41       <artifactId>features-nsf</artifactId>
42       <classifier>features</classifier>
43       <type>xml</type>
44     </dependency>
45     <dependency>
46       <groupId>org.opendaylight.ovsdb</groupId>
47       <artifactId>features-ovsdb</artifactId>
48       <classifier>features</classifier>
49       <type>xml</type>
50     </dependency>
51     <dependency>
52        <groupId>org.opendaylight.bgpcep</groupId>
53        <artifactId>features-bgp</artifactId>
54        <classifier>features</classifier>
55        <type>xml</type>
56     </dependency>
57     <dependency>
58       <groupId>org.opendaylight.openflowplugin</groupId>
59       <artifactId>features-openflowplugin</artifactId>
60       <version>0.0.3-SNAPSHOT</version>
61       <classifier>features</classifier>
62       <type>xml</type>
63     </dependency>
64     <dependency>
65       <groupId>org.opendaylight.ovsdb</groupId>
66       <artifactId>features-openflow-nxm</artifactId>
67       <version>0.0.3-SNAPSHOT</version>
68       <classifier>features</classifier>
69       <type>xml</type>
70     </dependency>
71     <dependency>
72       <groupId>org.opendaylight.l2switch</groupId>
73       <artifactId>features-l2switch</artifactId>
74       <version>0.1.0-SNAPSHOT</version>
75       <classifier>features</classifier>
76       <type>xml</type>
77     </dependency>
78     <dependency>
79       <groupId>org.opendaylight.controller</groupId>
80       <artifactId>features-adsal-compatibility</artifactId>
81       <version>1.4.2-SNAPSHOT</version>
82       <classifier>features</classifier>
83       <type>xml</type>
84     </dependency>
85     <!-- AAA -->
86     <dependency>
87       <groupId>org.opendaylight.aaa</groupId>
88       <artifactId>features-aaa</artifactId>
89       <version>0.1.0-SNAPSHOT</version>
90       <classifier>features</classifier>
91       <type>xml</type>
92     </dependency>
93     <dependency>
94       <groupId>org.opendaylight.lispflowmapping</groupId>
95       <artifactId>features-lispflowmapping</artifactId>
96       <version>${feature.lispflowmapping.version}</version>
97       <classifier>features</classifier>
98       <type>xml</type>
99     </dependency>
100     <dependency>
101       <groupId>org.opendaylight.vtn</groupId>
102       <artifactId>features-vtn-manager</artifactId>
103       <classifier>features</classifier>
104       <type>xml</type>
105     </dependency>
106     <!-- test to validate features.xml -->
107     <dependency>
108       <groupId>org.opendaylight.yangtools</groupId>
109       <artifactId>features-test</artifactId>
110       <version>0.6.2-SNAPSHOT</version>
111     </dependency>
112     <!-- dependency for opendaylight-karaf-empty for use by testing -->
113     <dependency>
114       <groupId>org.opendaylight.controller</groupId>
115       <artifactId>opendaylight-karaf-empty</artifactId>
116       <version>1.4.2-SNAPSHOT</version>
117       <type>zip</type>
118     </dependency>
119    </dependencies>
120    <build>
121       <resources>
122          <resource>
123             <directory>src/main/resources</directory>
124             <filtering>true</filtering>
125          </resource>
126       </resources>
127       <plugins>
128          <plugin>
129             <groupId>org.apache.karaf.tooling</groupId>
130             <artifactId>karaf-maven-plugin</artifactId>
131             <version>${karaf.version}</version>
132             <extensions>true</extensions>
133             <executions>
134                <execution>
135                   <id>features-create-kar</id>
136                   <goals>
137                      <goal>features-create-kar</goal>
138                   </goals>
139                   <configuration>
140                      <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
141                   </configuration>
142                </execution>
143             </executions>
144         <!-- There is no useful configuration for the kar mojo. The features-generate-descriptor mojo configuration may be useful -->
145          </plugin>
146          <plugin>
147             <groupId>org.apache.maven.plugins</groupId>
148             <artifactId>maven-resources-plugin</artifactId>
149             <executions>
150                <execution>
151                   <id>filter</id>
152                   <phase>generate-resources</phase>
153                   <goals>
154                      <goal>resources</goal>
155                   </goals>
156                </execution>
157             </executions>
158          </plugin>
159          <plugin>
160             <groupId>org.codehaus.mojo</groupId>
161             <artifactId>build-helper-maven-plugin</artifactId>
162             <executions>
163                <execution>
164                   <id>attach-artifacts</id>
165                   <phase>package</phase>
166                   <goals>
167                      <goal>attach-artifact</goal>
168                   </goals>
169                   <configuration>
170                      <artifacts>
171                         <artifact>
172                            <file>${project.build.directory}/classes/${features.file}</file>
173                            <type>xml</type>
174                            <classifier>features</classifier>
175                         </artifact>
176                      </artifacts>
177                   </configuration>
178                </execution>
179             </executions>
180          </plugin>
181          <plugin>
182             <groupId>org.apache.maven.plugins</groupId>
183             <artifactId>maven-surefire-plugin</artifactId>
184             <version>2.16</version>
185             <configuration>
186               <systemPropertyVariables>
187                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
188                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
189                 <karaf.distro.version>1.4.2-SNAPSHOT</karaf.distro.version>
190               </systemPropertyVariables>
191               <dependenciesToScan>
192                <dependency>org.opendaylight.yangtools:features-test</dependency>
193               </dependenciesToScan>
194             </configuration>
195           </plugin>
196       </plugins>
197    </build>
198 </project>