9945cab6d032eb34aeeacc2c139302e618cf08e7
[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.openflowplugin</groupId>
53       <artifactId>features-openflowplugin</artifactId>
54       <version>0.0.3-SNAPSHOT</version>
55       <classifier>features</classifier>
56       <type>xml</type>
57     </dependency>
58     <dependency>
59       <groupId>org.opendaylight.l2switch</groupId>
60       <artifactId>features-l2switch</artifactId>
61       <version>0.1.0-SNAPSHOT</version>
62       <classifier>features</classifier>
63       <type>xml</type>
64     </dependency>
65     <dependency>
66       <groupId>org.opendaylight.controller</groupId>
67       <artifactId>features-adsal-compatibility</artifactId>
68       <version>1.4.2-SNAPSHOT</version>
69       <classifier>features</classifier>
70       <type>xml</type>
71     </dependency>
72     <!-- test to validate features.xml -->
73     <dependency>
74       <groupId>org.opendaylight.yangtools</groupId>
75       <artifactId>features-test</artifactId>
76       <version>0.6.2-SNAPSHOT</version>
77     </dependency>
78     <!-- dependency for opendaylight-karaf-empty for use by testing -->
79     <dependency>
80       <groupId>org.opendaylight.controller</groupId>
81       <artifactId>opendaylight-karaf-empty</artifactId>
82       <version>1.4.2-SNAPSHOT</version>
83       <type>zip</type>
84     </dependency>
85    </dependencies>
86    <build>
87       <resources>
88          <resource>
89             <directory>src/main/resources</directory>
90             <filtering>true</filtering>
91          </resource>
92       </resources>
93       <plugins>
94          <plugin>
95             <groupId>org.apache.karaf.tooling</groupId>
96             <artifactId>karaf-maven-plugin</artifactId>
97             <version>${karaf.version}</version>
98             <extensions>true</extensions>
99             <executions>
100                <execution>
101                   <id>features-create-kar</id>
102                   <goals>
103                      <goal>features-create-kar</goal>
104                   </goals>
105                   <configuration>
106                      <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
107                   </configuration>
108                </execution>
109             </executions>
110         <!-- There is no useful configuration for the kar mojo. The features-generate-descriptor mojo configuration may be useful -->
111          </plugin>
112          <plugin>
113             <groupId>org.apache.maven.plugins</groupId>
114             <artifactId>maven-resources-plugin</artifactId>
115             <executions>
116                <execution>
117                   <id>filter</id>
118                   <phase>generate-resources</phase>
119                   <goals>
120                      <goal>resources</goal>
121                   </goals>
122                </execution>
123             </executions>
124          </plugin>
125          <plugin>
126             <groupId>org.codehaus.mojo</groupId>
127             <artifactId>build-helper-maven-plugin</artifactId>
128             <executions>
129                <execution>
130                   <id>attach-artifacts</id>
131                   <phase>package</phase>
132                   <goals>
133                      <goal>attach-artifact</goal>
134                   </goals>
135                   <configuration>
136                      <artifacts>
137                         <artifact>
138                            <file>${project.build.directory}/classes/${features.file}</file>
139                            <type>xml</type>
140                            <classifier>features</classifier>
141                         </artifact>
142                      </artifacts>
143                   </configuration>
144                </execution>
145             </executions>
146          </plugin>
147          <plugin>
148             <groupId>org.apache.maven.plugins</groupId>
149             <artifactId>maven-surefire-plugin</artifactId>
150             <version>2.16</version>
151             <configuration>
152               <systemPropertyVariables>
153                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
154                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
155                 <karaf.distro.version>1.4.2-SNAPSHOT</karaf.distro.version>
156               </systemPropertyVariables>
157               <dependenciesToScan>
158                <dependency>org.opendaylight.yangtools:features-test</dependency>
159               </dependenciesToScan>
160             </configuration>
161           </plugin>
162       </plugins>
163    </build>
164 </project>