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