b9bf7f3c1c1d81189c89c834ec817f166cae663f
[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.ttp</groupId>
95       <artifactId>features-ttp</artifactId>
96       <version>${feature.ttp.version}</version>
97       <classifier>features</classifier>
98       <type>xml</type>
99     </dependency>
100     <dependency>
101       <groupId>org.opendaylight.lispflowmapping</groupId>
102       <artifactId>features-lispflowmapping</artifactId>
103       <version>${feature.lispflowmapping.version}</version>
104       <classifier>features</classifier>
105       <type>xml</type>
106     </dependency>
107     <dependency>
108       <groupId>org.opendaylight.vtn</groupId>
109       <artifactId>features-vtn-manager</artifactId>
110       <classifier>features</classifier>
111       <type>xml</type>
112     </dependency>
113     <!-- test to validate features.xml -->
114     <dependency>
115       <groupId>org.opendaylight.yangtools</groupId>
116       <artifactId>features-test</artifactId>
117       <version>0.6.2-SNAPSHOT</version>
118     </dependency>
119     <!-- dependency for opendaylight-karaf-empty for use by testing -->
120     <dependency>
121       <groupId>org.opendaylight.controller</groupId>
122       <artifactId>opendaylight-karaf-empty</artifactId>
123       <version>1.4.2-SNAPSHOT</version>
124       <type>zip</type>
125     </dependency>
126    </dependencies>
127    <build>
128       <resources>
129          <resource>
130             <directory>src/main/resources</directory>
131             <filtering>true</filtering>
132          </resource>
133       </resources>
134       <plugins>
135          <plugin>
136             <groupId>org.apache.karaf.tooling</groupId>
137             <artifactId>karaf-maven-plugin</artifactId>
138             <version>${karaf.version}</version>
139             <extensions>true</extensions>
140             <executions>
141                <execution>
142                   <id>features-create-kar</id>
143                   <goals>
144                      <goal>features-create-kar</goal>
145                   </goals>
146                   <configuration>
147                      <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
148                   </configuration>
149                </execution>
150             </executions>
151         <!-- There is no useful configuration for the kar mojo. The features-generate-descriptor mojo configuration may be useful -->
152          </plugin>
153          <plugin>
154             <groupId>org.apache.maven.plugins</groupId>
155             <artifactId>maven-resources-plugin</artifactId>
156             <executions>
157                <execution>
158                   <id>filter</id>
159                   <phase>generate-resources</phase>
160                   <goals>
161                      <goal>resources</goal>
162                   </goals>
163                </execution>
164             </executions>
165          </plugin>
166          <plugin>
167             <groupId>org.codehaus.mojo</groupId>
168             <artifactId>build-helper-maven-plugin</artifactId>
169             <executions>
170                <execution>
171                   <id>attach-artifacts</id>
172                   <phase>package</phase>
173                   <goals>
174                      <goal>attach-artifact</goal>
175                   </goals>
176                   <configuration>
177                      <artifacts>
178                         <artifact>
179                            <file>${project.build.directory}/classes/${features.file}</file>
180                            <type>xml</type>
181                            <classifier>features</classifier>
182                         </artifact>
183                      </artifacts>
184                   </configuration>
185                </execution>
186             </executions>
187          </plugin>
188          <plugin>
189             <groupId>org.apache.maven.plugins</groupId>
190             <artifactId>maven-surefire-plugin</artifactId>
191             <version>2.16</version>
192             <configuration>
193               <systemPropertyVariables>
194                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
195                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
196                 <karaf.distro.version>1.4.2-SNAPSHOT</karaf.distro.version>
197               </systemPropertyVariables>
198               <dependenciesToScan>
199                <dependency>org.opendaylight.yangtools:features-test</dependency>
200               </dependenciesToScan>
201             </configuration>
202           </plugin>
203       </plugins>
204    </build>
205 </project>