Re-enable running of SingleFeaturesTest
[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.odlparent</groupId>
64       <artifactId>features-test</artifactId>
65     </dependency>
66     <!-- dependency for opendaylight-karaf-empty for use by testing -->
67     <dependency>
68       <groupId>org.opendaylight.controller</groupId>
69       <artifactId>opendaylight-karaf-empty</artifactId>
70       <version>${karaf.distro.empty.version}</version>
71       <type>zip</type>
72     </dependency>
73   </dependencies>
74
75   <build>
76     <resources>
77       <resource>
78         <filtering>true</filtering>
79         <directory>src/main/resources</directory>
80       </resource>
81     </resources>
82     <plugins>
83       <plugin>
84         <groupId>org.apache.maven.plugins</groupId>
85         <artifactId>maven-resources-plugin</artifactId>
86         <executions>
87           <execution>
88             <id>filter</id>
89             <goals>
90               <goal>resources</goal>
91             </goals>
92             <phase>generate-resources</phase>
93           </execution>
94         </executions>
95       </plugin>
96       <plugin>
97         <groupId>org.codehaus.mojo</groupId>
98         <artifactId>build-helper-maven-plugin</artifactId>
99         <executions>
100           <execution>
101             <id>attach-artifacts</id>
102             <goals>
103               <goal>attach-artifact</goal>
104             </goals>
105             <phase>package</phase>
106             <configuration>
107               <artifacts>
108                 <artifact>
109                   <file>${project.build.directory}/classes/${features.file}</file>
110                   <type>xml</type>
111                   <classifier>features</classifier>
112                 </artifact>
113               </artifacts>
114             </configuration>
115           </execution>
116         </executions>
117       </plugin>
118       <plugin>
119         <groupId>org.apache.maven.plugins</groupId>
120         <artifactId>maven-surefire-plugin</artifactId>
121         <version>2.16</version>
122         <configuration>
123           <systemPropertyVariables>
124             <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
125             <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
126             <karaf.distro.version>${karaf.empty.distro.version}</karaf.distro.version>
127           </systemPropertyVariables>
128           <dependenciesToScan>
129            <dependency>org.opendaylight.odlparent:features-test</dependency>
130           </dependenciesToScan>
131         </configuration>
132       </plugin>
133     </plugins>
134   </build>
135
136 </project>