URGENT Fix for missing dependency in features.
[l2switch.git] / features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5   <parent>
6     <groupId>org.opendaylight.l2switch</groupId>
7     <artifactId>l2switch-parent</artifactId>
8     <version>0.1.0-SNAPSHOT</version>
9     <relativePath>../parent</relativePath>
10   </parent>
11   <modelVersion>4.0.0</modelVersion>
12
13   <artifactId>features-l2switch</artifactId>
14   <packaging>jar</packaging>
15   <name>${project.artifactId}</name>
16   <description> <!-- Provide a Description it will be visible in the shell CLI--> </description>
17   <properties>
18     <features.file>features.xml</features.file>
19   </properties>
20   <dependencies>
21     <dependency>
22       <groupId>org.opendaylight.openflowplugin</groupId>
23       <artifactId>features-openflowplugin</artifactId>
24       <version>${openflow.plugin.version}</version>
25       <classifier>features</classifier>
26       <type>xml</type>
27     </dependency>
28
29     <!-- bundles used by features directly -->
30     <dependency>
31       <groupId>org.opendaylight.l2switch.packethandler</groupId>
32       <artifactId>packethandler-model</artifactId>
33       <version>${project.version}</version>
34     </dependency>
35     <dependency>
36       <groupId>org.opendaylight.l2switch.packethandler</groupId>
37       <artifactId>packethandler-impl</artifactId>
38       <version>${project.version}</version>
39     </dependency>
40     <dependency>
41       <groupId>org.opendaylight.l2switch.packethandler</groupId>
42       <artifactId>packethandler-config</artifactId>
43       <version>${project.version}</version>
44       <type>xml</type>
45       <classifier>config</classifier>
46     </dependency>
47     <dependency>
48       <groupId>org.opendaylight.l2switch.addresstracker</groupId>
49       <artifactId>addresstracker-model</artifactId>
50       <version>${project.version}</version>
51     </dependency>
52     <dependency>
53       <groupId>org.opendaylight.l2switch.addresstracker</groupId>
54       <artifactId>addresstracker-impl</artifactId>
55       <version>${project.version}</version>
56     </dependency>
57     <dependency>
58       <groupId>org.opendaylight.l2switch.addresstracker</groupId>
59       <artifactId>addresstracker-model</artifactId>
60       <version>${project.version}</version>
61     </dependency>
62     <dependency>
63       <groupId>org.opendaylight.l2switch.addresstracker</groupId>
64       <artifactId>addresstracker-impl</artifactId>
65       <version>${project.version}</version>
66     </dependency>
67     <dependency>
68       <groupId>org.opendaylight.l2switch.loopremover</groupId>
69       <artifactId>loopremover-model</artifactId>
70       <version>${project.version}</version>
71     </dependency>
72     <dependency>
73       <groupId>org.opendaylight.l2switch.loopremover</groupId>
74       <artifactId>loopremover-impl</artifactId>
75       <version>${project.version}</version>
76     </dependency>
77     <dependency>
78       <groupId>org.opendaylight.l2switch.hosttracker</groupId>
79       <artifactId>hosttracker-model</artifactId>
80       <version>${project.version}</version>
81     </dependency>
82     <dependency>
83       <groupId>org.opendaylight.l2switch.hosttracker</groupId>
84       <artifactId>hosttracker-impl</artifactId>
85       <version>${project.version}</version>
86     </dependency>
87     <dependency>
88       <groupId>org.opendaylight.l2switch.main</groupId>
89       <artifactId>main-impl</artifactId>
90       <version>${project.version}</version>
91     </dependency>
92     <dependency>
93       <groupId>org.opendaylight.l2switch.arphandler</groupId>
94       <artifactId>arphandler-impl</artifactId>
95       <version>${project.version}</version>
96     </dependency>
97     <dependency>
98       <groupId>org.opendaylight.l2switch.arphandler</groupId>
99       <artifactId>arphandler-config</artifactId>
100       <version>${project.version}</version>
101       <type>xml</type>
102       <classifier>config</classifier>
103     </dependency>
104
105     <!-- test to validate features.xml -->
106     <dependency>
107       <groupId>org.opendaylight.yangtools</groupId>
108       <artifactId>features-test</artifactId>
109       <version>0.6.2-SNAPSHOT</version>
110     </dependency>
111     <!-- dependency for opendaylight-karaf-empty for use by testing -->
112     <dependency>
113       <groupId>org.opendaylight.controller</groupId>
114       <artifactId>opendaylight-karaf-empty</artifactId>
115       <version>1.4.2-SNAPSHOT</version>
116       <type>zip</type>
117     </dependency>
118   </dependencies>
119   <build>
120     <resources>
121       <resource>
122         <filtering>true</filtering>
123         <directory>src/main/resources</directory>
124       </resource>
125     </resources>
126     <plugins>
127       <plugin>
128         <groupId>org.apache.maven.plugins</groupId>
129         <artifactId>maven-resources-plugin</artifactId>
130         <executions>
131           <execution>
132             <id>filter</id>
133             <goals>
134               <goal>resources</goal>
135             </goals>
136             <phase>generate-resources</phase>
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             <goals>
147               <goal>attach-artifact</goal>
148             </goals>
149             <phase>package</phase>
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>