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