f8bea8737c90574e5b434f394bd3be6862444154
[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.openflowplugin</groupId>
35       <artifactId>features-openflowplugin</artifactId>
36       <version>0.0.3-SNAPSHOT</version>
37       <classifier>features</classifier>
38       <type>xml</type>
39     </dependency>
40     <dependency>
41       <groupId>org.opendaylight.l2switch</groupId>
42       <artifactId>features-l2switch</artifactId>
43       <version>0.1.0-SNAPSHOT</version>
44       <classifier>features</classifier>
45       <type>xml</type>
46     </dependency>
47     <!-- test to validate features.xml -->
48     <dependency>
49       <groupId>org.opendaylight.yangtools</groupId>
50       <artifactId>features-test</artifactId>
51       <version>0.6.2-SNAPSHOT</version>
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>1.4.2-SNAPSHOT</version>
58       <type>zip</type>
59     </dependency>
60    </dependencies>
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.karaf.tooling</groupId>
71             <artifactId>karaf-maven-plugin</artifactId>
72             <version>${karaf.version}</version>
73             <extensions>true</extensions>
74             <executions>
75                <execution>
76                   <id>features-create-kar</id>
77                   <goals>
78                      <goal>features-create-kar</goal>
79                   </goals>
80                   <configuration>
81                      <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
82                   </configuration>
83                </execution>
84             </executions>
85         <!-- There is no useful configuration for the kar mojo. The features-generate-descriptor mojo configuration may be useful -->
86          </plugin>
87          <plugin>
88             <groupId>org.apache.maven.plugins</groupId>
89             <artifactId>maven-resources-plugin</artifactId>
90             <executions>
91                <execution>
92                   <id>filter</id>
93                   <phase>generate-resources</phase>
94                   <goals>
95                      <goal>resources</goal>
96                   </goals>
97                </execution>
98             </executions>
99          </plugin>
100          <plugin>
101             <groupId>org.codehaus.mojo</groupId>
102             <artifactId>build-helper-maven-plugin</artifactId>
103             <executions>
104                <execution>
105                   <id>attach-artifacts</id>
106                   <phase>package</phase>
107                   <goals>
108                      <goal>attach-artifact</goal>
109                   </goals>
110                   <configuration>
111                      <artifacts>
112                         <artifact>
113                            <file>${project.build.directory}/classes/${features.file}</file>
114                            <type>xml</type>
115                            <classifier>features</classifier>
116                         </artifact>
117                      </artifacts>
118                   </configuration>
119                </execution>
120             </executions>
121          </plugin>
122          <plugin>
123             <groupId>org.apache.maven.plugins</groupId>
124             <artifactId>maven-surefire-plugin</artifactId>
125             <version>2.16</version>
126             <configuration>
127               <systemPropertyVariables>
128                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
129                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
130                 <karaf.distro.version>1.4.2-SNAPSHOT</karaf.distro.version>
131               </systemPropertyVariables>
132               <dependenciesToScan>
133                <dependency>org.opendaylight.yangtools:features-test</dependency>
134               </dependenciesToScan>
135             </configuration>
136           </plugin>
137       </plugins>
138    </build>
139 </project>