blob: 4de2ecdb471d96e17b7fc9414b3a68f9c0d5313d [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>
Brian O'Connor14e9fca2015-09-03 16:08:19 -070013 <version>0.9.1.onos-SNAPSHOT</version>
Andreas Wundsamcbb72772013-09-10 18:17:41 -070014 <packaging>jar</packaging>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070015
Andreas Wundsambaf058d2013-09-12 15:58:17 -070016 <name>OpenFlowJ-Loxi</name>
17 <description>OpenFlowJ API supporting OpenFlow versions 1.0 through 1.3.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>
44 <dependency>
xinwu32034432013-09-18 17:17:50 -070045 <groupId>com.google.code.findbugs</groupId>
46 <artifactId>annotations</artifactId>
Andreas Wundsamb126d122015-08-24 07:58:19 -070047 <version>3.0.0</version>
xinwu32034432013-09-18 17:17:50 -070048 </dependency>
49 <dependency>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070050 <groupId>junit</groupId>
51 <artifactId>junit</artifactId>
Andreas Wundsamb126d122015-08-24 07:58:19 -070052 <version>4.12</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070053 <scope>test</scope>
54 </dependency>
55 <dependency>
Rob Vaterlaus0bea4e02013-11-25 12:02:55 -080056 <groupId>org.hamcrest</groupId>
57 <artifactId>hamcrest-integration</artifactId>
58 <version>1.3</version>
59 <scope>test</scope>
60 </dependency>
61 <dependency>
Andreas Wundsam598d43e2014-02-06 19:20:18 -080062 <groupId>io.netty</groupId>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070063 <artifactId>netty</artifactId>
Andreas Wundsamb126d122015-08-24 07:58:19 -070064 <version>3.10.4.Final</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070065 </dependency>
66 <dependency>
67 <groupId>com.google.guava</groupId>
68 <artifactId>guava</artifactId>
Andreas Wundsamb126d122015-08-24 07:58:19 -070069 <version>18.0</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070070 </dependency>
Andreas Wundsam70aa5492013-10-23 15:26:53 -070071 <dependency>
72 <groupId>org.slf4j</groupId>
73 <artifactId>slf4j-api</artifactId>
Andreas Wundsamb126d122015-08-24 07:58:19 -070074 <version>1.7.12</version>
Andreas Wundsam70aa5492013-10-23 15:26:53 -070075 </dependency>
Andreas Wundsama8757ea2013-11-15 13:54:29 -080076 <dependency>
77 <groupId>ch.qos.logback</groupId>
78 <artifactId>logback-core</artifactId>
Andreas Wundsamb126d122015-08-24 07:58:19 -070079 <version>1.1.3</version>
Andreas Wundsama8757ea2013-11-15 13:54:29 -080080 </dependency>
81 <dependency>
82 <groupId>ch.qos.logback</groupId>
83 <artifactId>logback-classic</artifactId>
Andreas Wundsamb126d122015-08-24 07:58:19 -070084 <version>1.1.3</version>
Andreas Wundsama8757ea2013-11-15 13:54:29 -080085 </dependency>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070086 </dependencies>
87 <build>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070088 <plugins>
89 <plugin>
90 <groupId>org.apache.maven.plugins</groupId>
91 <artifactId>maven-compiler-plugin</artifactId>
92 <version>3.1</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070093 <configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070094 <source>1.7</source>
95 <target>1.7</target>
Andreas Wundsamd4581992013-09-11 11:12:58 -070096 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070097 </plugin>
98 <plugin>
99 <!-- pick up sources from gen-src -->
100 <groupId>org.codehaus.mojo</groupId>
101 <artifactId>build-helper-maven-plugin</artifactId>
102 <version>1.8</version>
103 <executions>
104 <execution>
105 <id>gen-src-add-source</id>
106 <phase>generate-sources</phase>
107 <goals><goal>add-source</goal></goals>
108 <configuration>
109 <sources>
110 <source>gen-src/main/java</source>
111 </sources>
112 </configuration>
113 </execution>
114 <execution>
115 <id>add-gen-src-test-source</id>
116 <!-- note: purposefully not using phase generate-test-sources, because that is not picked up by eclipse:eclipse -->
117 <phase>validate</phase>
118 <goals><goal>add-test-source</goal></goals>
119 <configuration>
120 <sources>
121 <source>gen-src/test/java</source>
122 </sources>
123 </configuration>
124 </execution>
125 </executions>
126 </plugin>
127 <!-- attach sources -->
128 <plugin>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-source-plugin</artifactId>
131 <version>2.2.1</version>
132 <executions>
133 <execution>
134 <id>attach-sources</id>
135 <goals>
136 <goal>jar</goal>
137 </goals>
138 </execution>
139 </executions>
140 </plugin>
141 <!-- attach javadoc -->
142 <plugin>
143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-javadoc-plugin</artifactId>
145 <version>2.9.1</version>
146 <executions>
147 <execution>
148 <id>attach-javadocs</id>
149 <goals>
150 <goal>jar</goal>
151 </goals>
Brian O'Connorcfdd1722015-09-03 15:34:43 -0700152 <!--
153 The following configuration turns of DocLint which is enabled in Java 8.
154 FIXME This can be removed if/when Javadoc comments pass DocLint.
155 -->
156 <configuration>
157 <additionalparam>-Xdoclint:none</additionalparam>
158 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700159 </execution>
160 </executions>
161 </plugin>
162 <plugin>
163 <groupId>org.apache.maven.plugins</groupId>
164 <artifactId>maven-eclipse-plugin</artifactId>
165 <version>2.9</version>
Andreas Wundsamd4581992013-09-11 11:12:58 -0700166 <configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700167 <downloadSources>true</downloadSources>
168 <downloadJavadocs>true</downloadJavadocs>
Andreas Wundsamac285ba2013-07-24 20:29:42 -0700169 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700170 </plugin>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800171 <!-- use maven git-commit-id plugin to provide vcs metadata -->
172 <plugin>
173 <groupId>pl.project13.maven</groupId>
174 <artifactId>git-commit-id-plugin</artifactId>
175 <version>2.1.5</version>
176 <executions>
177 <execution>
178 <goals>
179 <goal>revision</goal>
180 </goals>
181 </execution>
182 </executions>
183
184 <configuration>
185 <!-- our BuildInfoManager expects dates to be in ISO-8601 format -->
186 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
187
188 <verbose>true</verbose>
189
190 <skipPoms>true</skipPoms>
191 <generateGitPropertiesFile>false</generateGitPropertiesFile>
192 <dotGitDirectory>${project.basedir}/../../.git</dotGitDirectory>
193 <failOnNoGitDirectory>false</failOnNoGitDirectory>
194
195 <gitDescribe>
Andreas Wundsam133db452014-04-03 13:17:48 -0700196 <skip>true</skip>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800197 <always>true</always>
198 <abbrev>7</abbrev>
199 <dirty>-dirty</dirty>
200 <forceLongFormat>false</forceLongFormat>
201 </gitDescribe>
202 </configuration>
203 </plugin>
204 <!-- include git info in generated jars -->
205 <plugin>
206 <groupId>org.apache.maven.plugins</groupId>
207 <artifactId>maven-jar-plugin</artifactId>
208 <version>2.4</version>
209 <executions>
210 <execution>
211 <goals>
212 <goal>test-jar</goal>
213 </goals>
214 </execution>
215 </executions>
216 <configuration>
217 <archive>
218 <manifest>
219 <mainClass>org.projectfloodlight.core.Main</mainClass>
220 </manifest>
221 <manifestSections>
222 <manifestSection>
223 <name>Floodlight-buildinfo</name>
224 <manifestEntries>
225 <projectName>${project.name}</projectName>
226 <version>${project.version}</version>
227 <vcsRevision>${git.commit.id.abbrev}</vcsRevision>
Andreas Wundsam133db452014-04-03 13:17:48 -0700228 <!-- note: git.branch does not work in jenkins, because jenkins
229 builds the system in 'detached head' state. Because we mostly
230 about jenkins builds, we instead use the environment variable
231 GIT_BRANCH set by jenkins here -->
232 <vcsBranch>${env.GIT_BRANCH}</vcsBranch>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800233 <buildUser>${user.name}</buildUser>
234 <buildDate>${git.build.time}</buildDate>
Andreas Wundsam133db452014-04-03 13:17:48 -0700235 <!-- continuous integration information from jenkins env variables:
236 https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-below -->
237 <ciBuildNumber>${env.BUILD_NUMBER}</ciBuildNumber>
238 <ciBuildId>${env.BUILD_ID}</ciBuildId>
239 <ciBuildTag>${env.BUILD_TAG}</ciBuildTag>
240 <ciJobName>${env.JOB_NAME}</ciJobName>
Brian O'Connor19ba9fc2014-12-03 19:29:53 -0800241 <ciNodeName>${env.NODE_NAME}</ciNodeName>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800242 </manifestEntries>
243 </manifestSection>
244 </manifestSections>
245 </archive>
246 </configuration>
247 </plugin>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700248 </plugins>
249 <resources>
250 <resource>
251 <directory>${basedir}</directory>
252 <filtering>false</filtering>
253 <includes>
254 <include>LICENSE.txt</include>
255 </includes>
256 </resource>
257 </resources>
258 </build>
Brian O'Connor19ba9fc2014-12-03 19:29:53 -0800259 <profiles>
260 <profile>
261 <id>release</id>
262 <build>
263 <plugins>
264 <plugin>
265 <groupId>org.apache.maven.plugins</groupId>
266 <artifactId>maven-source-plugin</artifactId>
267 <version>2.2.1</version>
268 <executions>
269 <execution>
270 <id>attach-sources</id>
271 <goals>
272 <goal>jar-no-fork</goal>
273 </goals>
274 </execution>
275 </executions>
276 </plugin>
277 <plugin>
278 <groupId>org.apache.maven.plugins</groupId>
279 <artifactId>maven-javadoc-plugin</artifactId>
280 <version>2.9.1</version>
281 <executions>
282 <execution>
283 <id>attach-javadocs</id>
284 <goals>
285 <goal>jar</goal>
286 </goals>
287 </execution>
288 </executions>
289 </plugin>
290 <plugin>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-gpg-plugin</artifactId>
293 <version>1.5</version>
294 <executions>
295 <execution>
296 <id>sign-artifacts</id>
297 <phase>verify</phase>
298 <goals>
299 <goal>sign</goal>
300 </goals>
301 </execution>
302 </executions>
303 </plugin>
304 <plugin>
305 <groupId>org.sonatype.plugins</groupId>
306 <artifactId>nexus-staging-maven-plugin</artifactId>
307 <version>1.6.5</version>
308 <extensions>true</extensions>
309 <configuration>
310 <serverId>ossrh</serverId>
311 <nexusUrl>https://oss.sonatype.org/</nexusUrl>
312 <autoReleaseAfterClose>false</autoReleaseAfterClose>
313 </configuration>
314 </plugin>
315 </plugins>
316 </build>
317 </profile>
318 </profiles>
Andreas Wundsamac285ba2013-07-24 20:29:42 -0700319</project>