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