7615003c7a65a695f0796db07b051782ee1aaaa2
[openflowplugin.git] / 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-parent</artifactId>
7     <version>0.0.3-SNAPSHOT</version>
8     <relativePath>../</relativePath>
9   </parent>
10   <artifactId>features-openflowplugin</artifactId>
11
12   <packaging>jar</packaging>
13
14   <properties>
15     <features.file>features.xml</features.file>
16     <karaf.empty.distro.version>1.4.2-SNAPSHOT</karaf.empty.distro.version>
17     <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
18   </properties>
19
20   <dependencies>
21     <!-- feature dependencies -->
22     <dependency>
23       <groupId>org.opendaylight.controller</groupId>
24       <artifactId>features-mdsal</artifactId>
25       <version>${mdsal.version}</version>
26       <classifier>features</classifier>
27       <type>xml</type>
28     </dependency>
29     <dependency>
30       <groupId>org.opendaylight.controller</groupId>
31       <artifactId>features-restconf</artifactId>
32       <version>${mdsal.version}</version>
33       <classifier>features</classifier>
34       <type>xml</type>
35     </dependency>
36     <dependency>
37       <groupId>org.opendaylight.openflowjava</groupId>
38       <artifactId>features-openflowjava</artifactId>
39       <version>${openflowjava.version}</version>
40       <classifier>features</classifier>
41       <type>xml</type>
42     </dependency>
43     <dependency>
44       <groupId>org.opendaylight.controller</groupId>
45       <artifactId>features-flow</artifactId>
46       <version>${mdsal.version}</version>
47       <classifier>features</classifier>
48       <type>xml</type>
49     </dependency>
50     <dependency>
51       <groupId>org.opendaylight.dlux</groupId>
52       <artifactId>features-dlux</artifactId>
53       <version>${dlux.version}</version>
54       <classifier>features</classifier>
55       <type>xml</type>
56     </dependency>
57
58     <!-- bundle dependencies -->
59     <dependency>
60       <groupId>org.opendaylight.openflowplugin</groupId>
61       <artifactId>openflowplugin-api</artifactId>
62       <version>${project.version}</version>
63     </dependency>
64     <dependency>
65       <groupId>org.opendaylight.openflowplugin</groupId>
66       <artifactId>openflowplugin-extension-api</artifactId>
67       <version>${project.version}</version>
68     </dependency>
69     <dependency>
70       <groupId>org.opendaylight.openflowplugin</groupId>
71       <artifactId>openflowplugin</artifactId>
72       <version>${project.version}</version>
73     </dependency>
74     <dependency>
75       <groupId>org.opendaylight.openflowplugin</groupId>
76       <artifactId>drop-test-karaf</artifactId>
77       <version>${project.version}</version>
78     </dependency>
79     <dependency>
80       <groupId>org.opendaylight.openflowplugin</groupId>
81       <artifactId>test-common</artifactId>
82       <version>${project.version}</version>
83     </dependency>
84     <dependency>
85       <groupId>org.opendaylight.openflowplugin</groupId>
86       <artifactId>openflowplugin-controller-config</artifactId>
87       <version>${project.version}</version>
88       <type>xml</type>
89       <classifier>config</classifier>
90     </dependency>
91     <dependency>
92       <groupId>org.opendaylight.openflowplugin</groupId>
93       <artifactId>openflowplugin-controller-config</artifactId>
94       <version>${project.version}</version>
95       <type>xml</type>
96       <classifier>configmsgspy</classifier>
97     </dependency>
98     <dependency>
99       <groupId>org.opendaylight.controller</groupId>
100       <artifactId>liblldp</artifactId>
101       <version>${sal.api.version}</version>
102     </dependency>
103     
104     <!-- test the features.xml -->
105     <dependency>
106       <groupId>org.opendaylight.yangtools</groupId>
107       <artifactId>features-test</artifactId>
108       <version>${yangtools.version}</version>
109     </dependency>
110     <!-- dependency for opendaylight-karaf-empty for use by testing -->
111     <dependency>
112       <groupId>org.opendaylight.controller</groupId>
113       <artifactId>opendaylight-karaf-empty</artifactId>
114       <version>${karaf.distro.empty.version}</version>
115       <type>zip</type>
116     </dependency>
117   </dependencies>
118
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>${karaf.empty.distro.version}</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   <scm>
180     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
181     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
182     <tag>HEAD</tag>
183     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
184   </scm>
185 </project>