e27f55ecbbce8adcf5156b1b90fd6e48fa8cf6b7
[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.6.1-SNAPSHOT</version>
16     <relativePath />
17   </parent>
18
19   <groupId>org.opendaylight.nemo</groupId>
20   <artifactId>openflow-renderer</artifactId>
21   <version>1.2.1-SNAPSHOT</version>
22   <packaging>bundle</packaging>
23   <!-- <name> formatting is used by autorelease to parse and notify projects on
24        build failure. Please do not modify this unless you have a good reason. -->
25   <name>ODL :: nemo :: ${project.artifactId}</name>
26
27   <properties>
28     <liblldp.version>0.12.1-SNAPSHOT</liblldp.version>
29     <openflowplugin.version>0.4.1-SNAPSHOT</openflowplugin.version>
30     <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
31     <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
32   </properties>
33
34   <dependencies>
35     <dependency>
36       <groupId>org.opendaylight.mdsal.model</groupId>
37       <artifactId>yang-ext</artifactId>
38     </dependency>
39     <dependency>
40       <groupId>org.opendaylight.controller.model</groupId>
41       <artifactId>model-topology</artifactId>
42     </dependency>
43     <dependency>
44       <groupId>org.opendaylight.controller</groupId>
45       <artifactId>liblldp</artifactId>
46       <version>${liblldp.version}</version>
47     </dependency>
48     <dependency>
49       <groupId>commons-net</groupId>
50       <artifactId>commons-net</artifactId>
51     </dependency>
52     <dependency>
53       <groupId>org.opendaylight.openflowplugin</groupId>
54       <artifactId>openflowplugin-extension-nicira</artifactId>
55       <version>${openflowplugin.version}</version>
56     </dependency>
57     <dependency>
58       <groupId>${project.groupId}</groupId>
59       <artifactId>nemo-api</artifactId>
60       <version>${project.version}</version>
61     </dependency>
62     <dependency>
63       <groupId>${project.groupId}</groupId>
64       <artifactId>nemo-impl</artifactId>
65       <version>${project.version}</version>
66     </dependency>
67     <dependency>
68       <groupId>com.fasterxml.jackson.core</groupId>
69       <artifactId>jackson-core</artifactId>
70     </dependency>
71     <dependency>
72       <groupId>com.fasterxml.jackson.core</groupId>
73       <artifactId>jackson-databind</artifactId>
74     </dependency>
75     <dependency>
76       <groupId>com.fasterxml.jackson.core</groupId>
77       <artifactId>jackson-annotations</artifactId>
78     </dependency>
79     <dependency>
80       <groupId>org.codehaus.jettison</groupId>
81       <artifactId>jettison</artifactId>
82     </dependency>
83     <dependency>
84       <groupId>junit</groupId>
85       <artifactId>junit</artifactId>
86       <scope>test</scope>
87     </dependency>
88     <dependency>
89       <groupId>org.mockito</groupId>
90       <artifactId>mockito-core</artifactId>
91       <scope>test</scope>
92     </dependency>
93     <dependency>
94       <groupId>org.slf4j</groupId>
95       <artifactId>slf4j-simple</artifactId>
96       <scope>test</scope>
97     </dependency>
98   </dependencies>
99
100   <build>
101     <plugins>
102       <plugin>
103         <groupId>org.apache.felix</groupId>
104         <artifactId>maven-bundle-plugin</artifactId>
105         <configuration>
106           <instructions>
107             <Export-Package>
108               org.codehaus.jackson,
109               org.codehaus.jackson.*,
110               org.joda.time.*
111             </Export-Package>
112             <Import-Package>*</Import-Package>
113           </instructions>
114         </configuration>
115       </plugin>
116       <plugin>
117         <groupId>org.opendaylight.yangtools</groupId>
118         <artifactId>yang-maven-plugin</artifactId>
119         <executions>
120           <execution>
121             <goals>
122               <goal>generate-sources</goal>
123             </goals>
124             <configuration>
125               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
126               <codeGenerators>
127                 <generator>
128                   <codeGeneratorClass>
129                     org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
130                   </codeGeneratorClass>
131                   <outputBaseDir>
132                     ${salGeneratorPath}
133                   </outputBaseDir>
134                 </generator>
135               </codeGenerators>
136               <inspectDependencies>true</inspectDependencies>
137             </configuration>
138           </execution>
139         </executions>
140         <dependencies>
141           <dependency>
142             <groupId>org.opendaylight.mdsal</groupId>
143             <artifactId>maven-sal-api-gen-plugin</artifactId>
144             <version>0.10.1-SNAPSHOT</version>
145             <type>jar</type>
146           </dependency>
147         </dependencies>
148       </plugin>
149       <plugin>
150         <groupId>org.codehaus.mojo</groupId>
151         <artifactId>build-helper-maven-plugin</artifactId>
152         <executions>
153           <execution>
154             <id>attach-artifacts</id>
155             <goals>
156               <goal>attach-artifact</goal>
157             </goals>
158             <phase>package</phase>
159             <configuration>
160               <artifacts>
161                 <artifact>
162                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/config.xml</file>
163                   <type>xml</type>
164                   <classifier>config</classifier>
165                 </artifact>
166                 <artifact>
167                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/node-resource.json</file>
168                   <type>json</type>
169                   <classifier>node-resource</classifier>
170                 </artifact>
171                 <artifact>
172                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/host-resource.json</file>
173                   <type>json</type>
174                   <classifier>host-resource</classifier>
175                 </artifact>
176                 <artifact>
177                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/link-resource.json</file>
178                   <type>json</type>
179                   <classifier>link-resource</classifier>
180                 </artifact>
181                 <artifact>
182                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/external-resource.json</file>
183                   <type>json</type>
184                   <classifier>external-resource</classifier>
185                 </artifact>
186               </artifacts>
187             </configuration>
188           </execution>
189         </executions>
190       </plugin>
191       <plugin>
192         <groupId>org.jacoco</groupId>
193         <artifactId>jacoco-maven-plugin</artifactId>
194         <configuration>
195           <includes>
196             <include>org.opendaylight.nemo.*</include>
197           </includes>
198         </configuration>
199         <executions>
200           <execution>
201             <id>pre-unit-test</id>
202             <goals>
203               <goal>prepare-agent</goal>
204             </goals>
205             <configuration>
206               <destFile>${sonar.jacoco.reportPath}</destFile>
207             </configuration>
208           </execution>
209           <execution>
210             <id>post-unit-test</id>
211             <goals>
212               <goal>report</goal>
213             </goals>
214             <configuration>
215               <dataFile>${sonar.jacoco.reportPath}</dataFile>
216             </configuration>
217           </execution>
218         </executions>
219       </plugin>
220     </plugins>
221   </build>
222
223   <scm>
224     <connection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</connection>
225     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</developerConnection>
226     <url>https://wiki.opendaylight.org/view/NEMO:Main</url>
227     <tag>HEAD</tag>
228   </scm>
229 </project>