Release Beryllium
[nemo.git] / nemo-renderers / openflow-renderer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2015 Huawei, Inc and others. All rights reserved.
4 This program and the accompanying materials are made available under the
5 terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 and is available at http://www.eclipse.org/legal/epl-v10.html
7 -->
8 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
10   <modelVersion>4.0.0</modelVersion>
11
12   <parent>
13     <groupId>org.opendaylight.controller</groupId>
14     <artifactId>config-parent</artifactId>
15     <version>0.4.0-Beryllium</version>
16     <relativePath />
17   </parent>
18
19   <groupId>org.opendaylight.nemo</groupId>
20   <artifactId>openflow-renderer</artifactId>
21   <version>1.0.0-Beryllium</version>
22   <packaging>bundle</packaging>
23   <name>${project.artifactId}</name>
24
25   <properties>
26     <liblldp.version>0.10.0-Beryllium</liblldp.version>
27     <openflowplugin.version>0.2.0-Beryllium</openflowplugin.version>
28     <jacoco.version>0.7.2.201409121644</jacoco.version>
29     <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
30     <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
31   </properties>
32
33   <dependencies>
34     <dependency>
35       <groupId>org.opendaylight.mdsal.model</groupId>
36       <artifactId>yang-ext</artifactId>
37     </dependency>
38     <dependency>
39       <groupId>org.opendaylight.controller.model</groupId>
40       <artifactId>model-topology</artifactId>
41     </dependency>
42     <dependency>
43       <groupId>org.opendaylight.controller</groupId>
44       <artifactId>liblldp</artifactId>
45       <version>${liblldp.version}</version>
46     </dependency>
47     <dependency>
48       <groupId>commons-net</groupId>
49       <artifactId>commons-net</artifactId>
50     </dependency>
51     <dependency>
52       <groupId>org.opendaylight.openflowplugin</groupId>
53       <artifactId>openflowplugin-extension-nicira</artifactId>
54       <version>${openflowplugin.version}</version>
55     </dependency>
56     <dependency>
57       <groupId>${project.groupId}</groupId>
58       <artifactId>nemo-api</artifactId>
59       <version>${project.version}</version>
60     </dependency>
61     <dependency>
62       <groupId>${project.groupId}</groupId>
63       <artifactId>nemo-impl</artifactId>
64       <version>${project.version}</version>
65     </dependency>
66     <dependency>
67       <groupId>com.fasterxml.jackson.core</groupId>
68       <artifactId>jackson-core</artifactId>
69     </dependency>
70     <dependency>
71       <groupId>com.fasterxml.jackson.core</groupId>
72       <artifactId>jackson-databind</artifactId>
73     </dependency>
74     <dependency>
75       <groupId>com.fasterxml.jackson.core</groupId>
76       <artifactId>jackson-annotations</artifactId>
77     </dependency>
78     <dependency>
79       <groupId>org.codehaus.jettison</groupId>
80       <artifactId>jettison</artifactId>
81     </dependency>
82     <dependency>
83       <groupId>junit</groupId>
84       <artifactId>junit</artifactId>
85       <scope>test</scope>
86     </dependency>
87     <dependency>
88       <groupId>org.mockito</groupId>
89       <artifactId>mockito-all</artifactId>
90       <scope>test</scope>
91     </dependency>
92     <dependency>
93       <groupId>org.slf4j</groupId>
94       <artifactId>slf4j-simple</artifactId>
95       <scope>test</scope>
96     </dependency>
97   </dependencies>
98
99   <build>
100     <pluginManagement>
101       <plugins>
102         <plugin>
103           <groupId>org.jacoco</groupId>
104           <artifactId>jacoco-maven-plugin</artifactId>
105           <version>${jacoco.version}</version>
106         </plugin>
107       </plugins>
108     </pluginManagement>
109     <plugins>
110       <plugin>
111         <groupId>org.apache.felix</groupId>
112         <artifactId>maven-bundle-plugin</artifactId>
113         <configuration>
114           <instructions>
115             <Export-Package>
116               org.codehaus.jackson,
117               org.codehaus.jackson.*,
118               org.joda.time.*
119             </Export-Package>
120             <Import-Package>*</Import-Package>
121           </instructions>
122         </configuration>
123       </plugin>
124       <plugin>
125         <groupId>org.opendaylight.yangtools</groupId>
126         <artifactId>yang-maven-plugin</artifactId>
127         <executions>
128           <execution>
129             <goals>
130               <goal>generate-sources</goal>
131             </goals>
132             <configuration>
133               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
134               <codeGenerators>
135                 <generator>
136                   <codeGeneratorClass>
137                     org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
138                   </codeGeneratorClass>
139                   <outputBaseDir>
140                     ${salGeneratorPath}
141                   </outputBaseDir>
142                 </generator>
143               </codeGenerators>
144               <inspectDependencies>true</inspectDependencies>
145             </configuration>
146           </execution>
147         </executions>
148         <dependencies>
149           <dependency>
150             <groupId>org.opendaylight.mdsal</groupId>
151             <artifactId>maven-sal-api-gen-plugin</artifactId>
152             <version>${yangtools.version}</version>
153             <type>jar</type>
154           </dependency>
155         </dependencies>
156       </plugin>
157       <plugin>
158         <groupId>org.codehaus.mojo</groupId>
159         <artifactId>build-helper-maven-plugin</artifactId>
160         <executions>
161           <execution>
162             <id>attach-artifacts</id>
163             <goals>
164               <goal>attach-artifact</goal>
165             </goals>
166             <phase>package</phase>
167             <configuration>
168               <artifacts>
169                 <artifact>
170                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/config.xml</file>
171                   <type>xml</type>
172                   <classifier>config</classifier>
173                 </artifact>
174                 <artifact>
175                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/node-resource.json</file>
176                   <type>json</type>
177                   <classifier>node-resource</classifier>
178                 </artifact>
179                 <artifact>
180                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/host-resource.json</file>
181                   <type>json</type>
182                   <classifier>host-resource</classifier>
183                 </artifact>
184                 <artifact>
185                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/link-resource.json</file>
186                   <type>json</type>
187                   <classifier>link-resource</classifier>
188                 </artifact>
189                 <artifact>
190                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/external-resource.json</file>
191                   <type>json</type>
192                   <classifier>external-resource</classifier>
193                 </artifact>
194               </artifacts>
195             </configuration>
196           </execution>
197         </executions>
198       </plugin>
199       <plugin>
200         <groupId>org.jacoco</groupId>
201         <artifactId>jacoco-maven-plugin</artifactId>
202         <configuration>
203           <includes>
204             <include>org.opendaylight.nemo.*</include>
205           </includes>
206         </configuration>
207         <executions>
208           <execution>
209             <id>pre-unit-test</id>
210             <goals>
211               <goal>prepare-agent</goal>
212             </goals>
213             <configuration>
214               <destFile>${sonar.jacoco.reportPath}</destFile>
215             </configuration>
216           </execution>
217           <execution>
218             <id>post-unit-test</id>
219             <goals>
220               <goal>report</goal>
221             </goals>
222             <configuration>
223               <dataFile>${sonar.jacoco.reportPath}</dataFile>
224             </configuration>
225           </execution>
226         </executions>
227       </plugin>
228     </plugins>
229   </build>
230
231   <scm>
232     <connection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</connection>
233     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</developerConnection>
234     <url>https://wiki.opendaylight.org/view/NEMO:Main</url>
235     <tag>HEAD</tag>
236   </scm>
237 </project>