blob: 8728e2eb6d3b75f1b5acdf7b41eace9cec1dca91 [file] [log] [blame]
Andreas Wundsamac285ba2013-07-24 20:29:42 -07001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4
Andreas Wundsambaf058d2013-09-12 15:58:17 -07005 <parent>
6 <groupId>org.sonatype.oss</groupId>
7 <artifactId>oss-parent</artifactId>
8 <version>7</version>
9 </parent>
10
Brian O'Connor3efb6632014-12-03 14:00:13 -080011 <groupId>org.onosproject</groupId>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070012 <artifactId>openflowj</artifactId>
Ray Milkeyd3312ab2018-04-12 09:57:53 -070013 <version>3.2.1.onos</version>
Brian O'Connor28e05632016-04-04 17:22:44 -070014 <packaging>bundle</packaging>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070015
Andreas Wundsambaf058d2013-09-12 15:58:17 -070016 <name>OpenFlowJ-Loxi</name>
Murat Parlakisikf95672c2016-12-05 00:53:17 -080017 <description>OpenFlowJ API supporting OpenFlow versions 1.0 through 1.5.1, generated by LoxiGen</description>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070018 <url>http://www.projectfloodlight.org/projects/</url>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070019 <licenses>
20 <license>
21 <name>The Apache Software License, Version 2.0</name>
22 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
23 <distribution>repo</distribution>
24 </license>
25 </licenses>
26 <scm>
27 <connection>scm:git:git@github.com:floodlight/loxigen.git</connection>
28 <developerConnection>scm:git:git@github.com:floodlight/loxigen.git</developerConnection>
29 <url>git@github.com:floodlight/loxigen.git</url>
30 </scm>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070031
32 <properties>
33 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34 </properties>
35
Brian O'Connor5fde1052015-07-24 16:07:07 -070036 <distributionManagement>
37 <snapshotRepository>
38 <id>ossrh</id>
39 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
40 </snapshotRepository>
41 </distributionManagement>
42
Andreas Wundsamac285ba2013-07-24 20:29:42 -070043 <dependencies>
Brian O'Connor28e05632016-04-04 17:22:44 -070044 <!-- This is only needed for compile-time annotations -->
Andreas Wundsamac285ba2013-07-24 20:29:42 -070045 <dependency>
xinwu32034432013-09-18 17:17:50 -070046 <groupId>com.google.code.findbugs</groupId>
47 <artifactId>annotations</artifactId>
Murat Parlakisikf95672c2016-12-05 00:53:17 -080048 <version>3.0.1u2</version>
xinwu32034432013-09-18 17:17:50 -070049 </dependency>
50 <dependency>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070051 <groupId>junit</groupId>
52 <artifactId>junit</artifactId>
Andreas Wundsamb126d122015-08-24 07:58:19 -070053 <version>4.12</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070054 <scope>test</scope>
55 </dependency>
56 <dependency>
Rob Vaterlaus0bea4e02013-11-25 12:02:55 -080057 <groupId>org.hamcrest</groupId>
58 <artifactId>hamcrest-integration</artifactId>
59 <version>1.3</version>
60 <scope>test</scope>
61 </dependency>
62 <dependency>
Andreas Wundsam598d43e2014-02-06 19:20:18 -080063 <groupId>io.netty</groupId>
Murat Parlakisikf95672c2016-12-05 00:53:17 -080064 <artifactId>netty-all</artifactId>
65 <version>4.0.31.Final</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070066 </dependency>
67 <dependency>
68 <groupId>com.google.guava</groupId>
69 <artifactId>guava</artifactId>
Murat Parlakisikf95672c2016-12-05 00:53:17 -080070 <version>20.0</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070071 </dependency>
Andreas Wundsam70aa5492013-10-23 15:26:53 -070072 <dependency>
73 <groupId>org.slf4j</groupId>
74 <artifactId>slf4j-api</artifactId>
Murat Parlakisikf95672c2016-12-05 00:53:17 -080075 <version>1.7.22</version>
76 </dependency>
77 <dependency>
78 <groupId>ch.qos.logback</groupId>
79 <artifactId>logback-core</artifactId>
80 <version>1.1.10</version>
81 </dependency>
82 <dependency>
83 <groupId>ch.qos.logback</groupId>
84 <artifactId>logback-classic</artifactId>
85 <version>1.1.10</version>
Andreas Wundsama8757ea2013-11-15 13:54:29 -080086 </dependency>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070087 </dependencies>
88 <build>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070089 <plugins>
90 <plugin>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-compiler-plugin</artifactId>
93 <version>3.1</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070094 <configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070095 <source>1.7</source>
96 <target>1.7</target>
Andreas Wundsamd4581992013-09-11 11:12:58 -070097 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070098 </plugin>
99 <plugin>
100 <!-- pick up sources from gen-src -->
101 <groupId>org.codehaus.mojo</groupId>
102 <artifactId>build-helper-maven-plugin</artifactId>
103 <version>1.8</version>
104 <executions>
105 <execution>
106 <id>gen-src-add-source</id>
107 <phase>generate-sources</phase>
108 <goals><goal>add-source</goal></goals>
109 <configuration>
110 <sources>
111 <source>gen-src/main/java</source>
112 </sources>
113 </configuration>
114 </execution>
115 <execution>
116 <id>add-gen-src-test-source</id>
117 <!-- note: purposefully not using phase generate-test-sources, because that is not picked up by eclipse:eclipse -->
118 <phase>validate</phase>
119 <goals><goal>add-test-source</goal></goals>
120 <configuration>
121 <sources>
122 <source>gen-src/test/java</source>
123 </sources>
124 </configuration>
125 </execution>
126 </executions>
127 </plugin>
128 <!-- attach sources -->
129 <plugin>
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-source-plugin</artifactId>
132 <version>2.2.1</version>
133 <executions>
134 <execution>
135 <id>attach-sources</id>
136 <goals>
137 <goal>jar</goal>
138 </goals>
139 </execution>
140 </executions>
141 </plugin>
142 <!-- attach javadoc -->
143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-javadoc-plugin</artifactId>
146 <version>2.9.1</version>
Murat Parlakisikf95672c2016-12-05 00:53:17 -0800147 <configuration>
148 <maxmemory>1024m</maxmemory>
149 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700150 <executions>
151 <execution>
152 <id>attach-javadocs</id>
153 <goals>
154 <goal>jar</goal>
155 </goals>
Brian O'Connorcfdd1722015-09-03 15:34:43 -0700156 <!--
157 The following configuration turns of DocLint which is enabled in Java 8.
158 FIXME This can be removed if/when Javadoc comments pass DocLint.
159 -->
160 <configuration>
161 <additionalparam>-Xdoclint:none</additionalparam>
162 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700163 </execution>
164 </executions>
165 </plugin>
166 <plugin>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-eclipse-plugin</artifactId>
169 <version>2.9</version>
Andreas Wundsamd4581992013-09-11 11:12:58 -0700170 <configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700171 <downloadSources>true</downloadSources>
172 <downloadJavadocs>true</downloadJavadocs>
Andreas Wundsamac285ba2013-07-24 20:29:42 -0700173 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700174 </plugin>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800175 <!-- use maven git-commit-id plugin to provide vcs metadata -->
176 <plugin>
177 <groupId>pl.project13.maven</groupId>
178 <artifactId>git-commit-id-plugin</artifactId>
179 <version>2.1.5</version>
180 <executions>
181 <execution>
182 <goals>
183 <goal>revision</goal>
184 </goals>
185 </execution>
186 </executions>
187
188 <configuration>
189 <!-- our BuildInfoManager expects dates to be in ISO-8601 format -->
190 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
191
192 <verbose>true</verbose>
193
194 <skipPoms>true</skipPoms>
195 <generateGitPropertiesFile>false</generateGitPropertiesFile>
196 <dotGitDirectory>${project.basedir}/../../.git</dotGitDirectory>
197 <failOnNoGitDirectory>false</failOnNoGitDirectory>
198
199 <gitDescribe>
Andreas Wundsam133db452014-04-03 13:17:48 -0700200 <skip>true</skip>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800201 <always>true</always>
202 <abbrev>7</abbrev>
203 <dirty>-dirty</dirty>
204 <forceLongFormat>false</forceLongFormat>
205 </gitDescribe>
206 </configuration>
207 </plugin>
208 <!-- include git info in generated jars -->
209 <plugin>
210 <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-jar-plugin</artifactId>
212 <version>2.4</version>
213 <executions>
214 <execution>
215 <goals>
216 <goal>test-jar</goal>
217 </goals>
218 </execution>
219 </executions>
220 <configuration>
221 <archive>
222 <manifest>
223 <mainClass>org.projectfloodlight.core.Main</mainClass>
224 </manifest>
225 <manifestSections>
226 <manifestSection>
227 <name>Floodlight-buildinfo</name>
228 <manifestEntries>
229 <projectName>${project.name}</projectName>
230 <version>${project.version}</version>
231 <vcsRevision>${git.commit.id.abbrev}</vcsRevision>
Andreas Wundsam133db452014-04-03 13:17:48 -0700232 <!-- note: git.branch does not work in jenkins, because jenkins
233 builds the system in 'detached head' state. Because we mostly
234 about jenkins builds, we instead use the environment variable
235 GIT_BRANCH set by jenkins here -->
236 <vcsBranch>${env.GIT_BRANCH}</vcsBranch>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800237 <buildUser>${user.name}</buildUser>
238 <buildDate>${git.build.time}</buildDate>
Andreas Wundsam133db452014-04-03 13:17:48 -0700239 <!-- continuous integration information from jenkins env variables:
240 https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-below -->
241 <ciBuildNumber>${env.BUILD_NUMBER}</ciBuildNumber>
242 <ciBuildId>${env.BUILD_ID}</ciBuildId>
243 <ciBuildTag>${env.BUILD_TAG}</ciBuildTag>
244 <ciJobName>${env.JOB_NAME}</ciJobName>
Brian O'Connor19ba9fc2014-12-03 19:29:53 -0800245 <ciNodeName>${env.NODE_NAME}</ciNodeName>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800246 </manifestEntries>
247 </manifestSection>
248 </manifestSections>
249 </archive>
250 </configuration>
251 </plugin>
Brian O'Connor28e05632016-04-04 17:22:44 -0700252 <!-- include OSGi headers in MANIFEST -->
253 <plugin>
254 <groupId>org.apache.felix</groupId>
255 <artifactId>maven-bundle-plugin</artifactId>
256 <version>3.0.1</version>
257 <extensions>true</extensions>
Murat Parlakisikf95672c2016-12-05 00:53:17 -0800258 <configuration>
259 <niceManifest>true</niceManifest>
260 <instructions>
261 <!-- Compile-time dependency can be optional-->
262 <!-- Any Guava version 20.0 or later-->
263 <Import-Package>
264 javax.annotation;resolution:=optional,
265 com.google.*;version=20.0,
266 *
267 </Import-Package>
268 </instructions>
269 </configuration>
Brian O'Connor28e05632016-04-04 17:22:44 -0700270 </plugin>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700271 </plugins>
272 <resources>
273 <resource>
274 <directory>${basedir}</directory>
275 <filtering>false</filtering>
276 <includes>
277 <include>LICENSE.txt</include>
278 </includes>
279 </resource>
280 </resources>
281 </build>
Brian O'Connor19ba9fc2014-12-03 19:29:53 -0800282 <profiles>
283 <profile>
284 <id>release</id>
285 <build>
286 <plugins>
287 <plugin>
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-source-plugin</artifactId>
290 <version>2.2.1</version>
291 <executions>
292 <execution>
293 <id>attach-sources</id>
294 <goals>
295 <goal>jar-no-fork</goal>
296 </goals>
297 </execution>
298 </executions>
299 </plugin>
300 <plugin>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-javadoc-plugin</artifactId>
303 <version>2.9.1</version>
Murat Parlakisikf95672c2016-12-05 00:53:17 -0800304 <configuration>
305 <maxmemory>1024m</maxmemory>
306 </configuration>
Brian O'Connor19ba9fc2014-12-03 19:29:53 -0800307 <executions>
308 <execution>
309 <id>attach-javadocs</id>
310 <goals>
311 <goal>jar</goal>
312 </goals>
313 </execution>
314 </executions>
315 </plugin>
316 <plugin>
317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-gpg-plugin</artifactId>
319 <version>1.5</version>
320 <executions>
321 <execution>
322 <id>sign-artifacts</id>
323 <phase>verify</phase>
324 <goals>
325 <goal>sign</goal>
326 </goals>
327 </execution>
328 </executions>
329 </plugin>
330 <plugin>
331 <groupId>org.sonatype.plugins</groupId>
332 <artifactId>nexus-staging-maven-plugin</artifactId>
333 <version>1.6.5</version>
334 <extensions>true</extensions>
335 <configuration>
336 <serverId>ossrh</serverId>
337 <nexusUrl>https://oss.sonatype.org/</nexusUrl>
338 <autoReleaseAfterClose>false</autoReleaseAfterClose>
339 </configuration>
340 </plugin>
341 </plugins>
342 </build>
343 </profile>
344 </profiles>
Andreas Wundsamac285ba2013-07-24 20:29:42 -0700345</project>