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