8eb29eb2d9736437c8188b3d96b970f387cb626c
[openflowjava.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.openflowjava</groupId>
6     <artifactId>openflow-protocol-parent</artifactId>
7     <version>0.6.0-SNAPSHOT</version>
8     <relativePath>../</relativePath>
9   </parent>
10   <artifactId>features-openflowjava</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.yangtools</groupId>
24       <artifactId>features-yangtools</artifactId>
25       <classifier>features</classifier>
26       <type>xml</type>
27     </dependency>
28     <dependency>
29       <groupId>org.opendaylight.controller</groupId>
30       <artifactId>features-config</artifactId>
31       <classifier>features</classifier>
32       <type>xml</type>
33     </dependency>
34     <dependency>
35       <groupId>org.opendaylight.controller</groupId>
36       <artifactId>features-mdsal</artifactId>
37       <version>${mdsal.version}</version>
38       <classifier>features</classifier>
39       <type>xml</type>
40     </dependency>
41
42     <!-- bundle dependencies -->
43     <dependency>
44       <groupId>org.opendaylight.openflowjava</groupId>
45       <artifactId>openflow-protocol-api</artifactId>
46     </dependency>
47     <dependency>
48       <groupId>org.opendaylight.openflowjava</groupId>
49       <artifactId>openflow-protocol-spi</artifactId>
50     </dependency>
51     <dependency>
52       <groupId>org.opendaylight.openflowjava</groupId>
53       <artifactId>openflow-protocol-impl</artifactId>
54     </dependency>
55     <dependency>
56       <groupId>org.opendaylight.openflowjava</groupId>
57       <artifactId>util</artifactId>
58     </dependency>
59     <dependency>
60       <groupId>io.netty</groupId>
61       <artifactId>netty-codec</artifactId>
62     </dependency>
63     <dependency>
64       <groupId>io.netty</groupId>
65       <artifactId>netty-handler</artifactId>
66     </dependency>
67     <dependency>
68       <groupId>io.netty</groupId>
69       <artifactId>netty-common</artifactId>
70     </dependency>
71     <dependency>
72       <groupId>io.netty</groupId>
73       <artifactId>netty-buffer</artifactId>
74     </dependency>
75     <dependency>
76       <groupId>io.netty</groupId>
77       <artifactId>netty-transport</artifactId>
78     </dependency>
79     <dependency>
80       <groupId>${project.groupId}</groupId>
81       <artifactId>openflowjava-config</artifactId>
82       <type>xml</type>
83       <classifier>configstats</classifier>
84     </dependency>
85     <!-- test the features.xml -->
86     <dependency>
87       <groupId>org.opendaylight.yangtools</groupId>
88       <artifactId>features-test</artifactId>
89     </dependency>
90     <!-- dependency for opendaylight-karaf-empty for use by testing -->
91     <dependency>
92       <groupId>org.opendaylight.controller</groupId>
93       <artifactId>opendaylight-karaf-empty</artifactId>
94       <version>${karaf.distro.empty.version}</version>
95       <type>zip</type>
96     </dependency>
97   </dependencies>
98
99   <build>
100     <resources>
101       <resource>
102         <filtering>true</filtering>
103         <directory>src/main/resources</directory>
104       </resource>
105     </resources>
106     <plugins>
107       <plugin>
108         <groupId>org.apache.maven.plugins</groupId>
109         <artifactId>maven-resources-plugin</artifactId>
110         <executions>
111           <execution>
112             <id>filter</id>
113             <goals>
114               <goal>resources</goal>
115             </goals>
116             <phase>generate-resources</phase>
117           </execution>
118         </executions>
119       </plugin>
120       <plugin>
121         <groupId>org.codehaus.mojo</groupId>
122         <artifactId>build-helper-maven-plugin</artifactId>
123         <executions>
124           <execution>
125             <id>attach-artifacts</id>
126             <goals>
127               <goal>attach-artifact</goal>
128             </goals>
129             <phase>package</phase>
130             <configuration>
131               <artifacts>
132                 <artifact>
133                   <file>${project.build.directory}/classes/${features.file}</file>
134                   <type>xml</type>
135                   <classifier>features</classifier>
136                 </artifact>
137               </artifacts>
138             </configuration>
139           </execution>
140         </executions>
141       </plugin>
142       <plugin>
143         <groupId>org.apache.maven.plugins</groupId>
144         <artifactId>maven-surefire-plugin</artifactId>
145         <version>2.16</version>
146         <configuration>
147           <systemPropertyVariables>
148             <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
149             <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
150             <karaf.distro.version>${karaf.empty.distro.version}</karaf.distro.version>
151           </systemPropertyVariables>
152           <dependenciesToScan>
153            <dependency>org.opendaylight.yangtools:features-test</dependency>
154           </dependenciesToScan>
155         </configuration>
156       </plugin>
157     </plugins>
158   </build>
159   <scm>
160     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
161     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
162     <tag>HEAD</tag>
163     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
164   </scm>
165 </project>