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