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