Adding feature odl-openflowplugin-nxm-extensions and configs.
[openflowplugin.git] / extension / features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.openflowplugin</groupId>
6     <artifactId>openflowplugin-extension-parent</artifactId>
7     <version>0.1.0-SNAPSHOT</version>
8     <relativePath>../</relativePath>
9   </parent>
10   <artifactId>features-openflowplugin-extension</artifactId>
11
12   <packaging>jar</packaging>
13
14   <properties>
15     <features.file>features.xml</features.file>
16     <karaf.empty.distro.version>1.5.0-SNAPSHOT</karaf.empty.distro.version>
17     <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
18   </properties>
19
20   <dependencies>
21     <!-- feature dependencies -->
22     <dependency>
23       <groupId>org.opendaylight.openflowplugin</groupId>
24       <artifactId>features-openflowplugin</artifactId>
25       <version>${project.version}</version>
26       <classifier>features</classifier>
27       <type>xml</type>
28     </dependency>
29
30     <!-- bundle dependencies -->
31     <dependency>
32       <groupId>org.opendaylight.openflowplugin</groupId>
33       <artifactId>openflowplugin-extension-api</artifactId>
34       <version>${project.version}</version>
35     </dependency>
36
37     <!-- Nicira extensions -->
38     <dependency>
39       <groupId>org.opendaylight.openflowplugin</groupId>
40       <artifactId>openflowplugin-extension-nicira-config</artifactId>
41       <version>${project.version}</version>
42       <type>xml</type>
43       <classifier>config</classifier>
44     </dependency>
45     <dependency>
46       <groupId>org.opendaylight.openflowplugin</groupId>
47       <artifactId>openflowplugin-extension-nicira</artifactId>
48       <version>${project.version}</version>
49     </dependency>
50     <dependency>
51       <groupId>org.opendaylight.openflowplugin</groupId>
52       <artifactId>openflowjava-extension-nicira-api</artifactId>
53       <version>${project.version}</version>
54     </dependency>
55     <dependency>
56       <groupId>org.opendaylight.openflowplugin</groupId>
57       <artifactId>openflowjava-extension-nicira</artifactId>
58       <version>${project.version}</version>
59     </dependency>
60
61     <!-- test the features.xml -->
62     <dependency>
63       <groupId>org.opendaylight.yangtools</groupId>
64       <artifactId>features-test</artifactId>
65       <version>${yangtools.version}</version>
66     </dependency>
67     <!-- dependency for opendaylight-karaf-empty for use by testing -->
68     <dependency>
69       <groupId>org.opendaylight.controller</groupId>
70       <artifactId>opendaylight-karaf-empty</artifactId>
71       <version>${karaf.distro.empty.version}</version>
72       <type>zip</type>
73     </dependency>
74   </dependencies>
75
76   <build>
77     <resources>
78       <resource>
79         <filtering>true</filtering>
80         <directory>src/main/resources</directory>
81       </resource>
82     </resources>
83     <plugins>
84       <plugin>
85         <groupId>org.apache.maven.plugins</groupId>
86         <artifactId>maven-resources-plugin</artifactId>
87         <executions>
88           <execution>
89             <id>filter</id>
90             <goals>
91               <goal>resources</goal>
92             </goals>
93             <phase>generate-resources</phase>
94           </execution>
95         </executions>
96       </plugin>
97       <plugin>
98         <groupId>org.codehaus.mojo</groupId>
99         <artifactId>build-helper-maven-plugin</artifactId>
100         <executions>
101           <execution>
102             <id>attach-artifacts</id>
103             <goals>
104               <goal>attach-artifact</goal>
105             </goals>
106             <phase>package</phase>
107             <configuration>
108               <artifacts>
109                 <artifact>
110                   <file>${project.build.directory}/classes/${features.file}</file>
111                   <type>xml</type>
112                   <classifier>features</classifier>
113                 </artifact>
114               </artifacts>
115             </configuration>
116           </execution>
117         </executions>
118       </plugin>
119       <plugin>
120         <groupId>org.apache.maven.plugins</groupId>
121         <artifactId>maven-surefire-plugin</artifactId>
122         <version>2.16</version>
123         <configuration>
124           <systemPropertyVariables>
125             <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
126             <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
127             <karaf.distro.version>${karaf.empty.distro.version}</karaf.distro.version>
128           </systemPropertyVariables>
129           <dependenciesToScan>
130            <dependency>org.opendaylight.yangtools:features-test</dependency>
131           </dependenciesToScan>
132         </configuration>
133       </plugin>
134     </plugins>
135   </build>
136
137 </project>