blob: a1a0251c971de99fdc459f800b0481092908fe59 [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'Connorce7a4252016-09-21 14:34:27 -070013 <version>0.9.7.onos-SNAPSHOT</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>
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>
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>
Andreas Wundsamb126d122015-08-24 07:58:19 -070048 <version>3.0.0</version>
Brian O'Connor28e05632016-04-04 17:22:44 -070049 <scope>provided</scope>
xinwu32034432013-09-18 17:17:50 -070050 </dependency>
51 <dependency>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070052 <groupId>junit</groupId>
53 <artifactId>junit</artifactId>
Andreas Wundsamb126d122015-08-24 07:58:19 -070054 <version>4.12</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070055 <scope>test</scope>
56 </dependency>
57 <dependency>
Rob Vaterlaus0bea4e02013-11-25 12:02:55 -080058 <groupId>org.hamcrest</groupId>
59 <artifactId>hamcrest-integration</artifactId>
60 <version>1.3</version>
61 <scope>test</scope>
62 </dependency>
63 <dependency>
Andreas Wundsam598d43e2014-02-06 19:20:18 -080064 <groupId>io.netty</groupId>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070065 <artifactId>netty</artifactId>
Brian O'Connor28e05632016-04-04 17:22:44 -070066 <version>3.10.5.Final</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070067 </dependency>
68 <dependency>
69 <groupId>com.google.guava</groupId>
70 <artifactId>guava</artifactId>
Brian O'Connor28e05632016-04-04 17:22:44 -070071 <version>19.0</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070072 </dependency>
Andreas Wundsam70aa5492013-10-23 15:26:53 -070073 <dependency>
74 <groupId>org.slf4j</groupId>
75 <artifactId>slf4j-api</artifactId>
Brian O'Connor28e05632016-04-04 17:22:44 -070076 <version>1.7.13</version>
Andreas Wundsama8757ea2013-11-15 13:54:29 -080077 </dependency>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070078 </dependencies>
79 <build>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070080 <plugins>
81 <plugin>
82 <groupId>org.apache.maven.plugins</groupId>
83 <artifactId>maven-compiler-plugin</artifactId>
84 <version>3.1</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070085 <configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070086 <source>1.7</source>
87 <target>1.7</target>
Andreas Wundsamd4581992013-09-11 11:12:58 -070088 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070089 </plugin>
90 <plugin>
91 <!-- pick up sources from gen-src -->
92 <groupId>org.codehaus.mojo</groupId>
93 <artifactId>build-helper-maven-plugin</artifactId>
94 <version>1.8</version>
95 <executions>
96 <execution>
97 <id>gen-src-add-source</id>
98 <phase>generate-sources</phase>
99 <goals><goal>add-source</goal></goals>
100 <configuration>
101 <sources>
102 <source>gen-src/main/java</source>
103 </sources>
104 </configuration>
105 </execution>
106 <execution>
107 <id>add-gen-src-test-source</id>
108 <!-- note: purposefully not using phase generate-test-sources, because that is not picked up by eclipse:eclipse -->
109 <phase>validate</phase>
110 <goals><goal>add-test-source</goal></goals>
111 <configuration>
112 <sources>
113 <source>gen-src/test/java</source>
114 </sources>
115 </configuration>
116 </execution>
117 </executions>
118 </plugin>
119 <!-- attach sources -->
120 <plugin>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-source-plugin</artifactId>
123 <version>2.2.1</version>
124 <executions>
125 <execution>
126 <id>attach-sources</id>
127 <goals>
128 <goal>jar</goal>
129 </goals>
130 </execution>
131 </executions>
132 </plugin>
133 <!-- attach javadoc -->
134 <plugin>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-javadoc-plugin</artifactId>
137 <version>2.9.1</version>
138 <executions>
139 <execution>
140 <id>attach-javadocs</id>
141 <goals>
142 <goal>jar</goal>
143 </goals>
Brian O'Connorcfdd1722015-09-03 15:34:43 -0700144 <!--
145 The following configuration turns of DocLint which is enabled in Java 8.
146 FIXME This can be removed if/when Javadoc comments pass DocLint.
147 -->
148 <configuration>
149 <additionalparam>-Xdoclint:none</additionalparam>
150 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700151 </execution>
152 </executions>
153 </plugin>
154 <plugin>
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-eclipse-plugin</artifactId>
157 <version>2.9</version>
Andreas Wundsamd4581992013-09-11 11:12:58 -0700158 <configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700159 <downloadSources>true</downloadSources>
160 <downloadJavadocs>true</downloadJavadocs>
Andreas Wundsamac285ba2013-07-24 20:29:42 -0700161 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700162 </plugin>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800163 <!-- use maven git-commit-id plugin to provide vcs metadata -->
164 <plugin>
165 <groupId>pl.project13.maven</groupId>
166 <artifactId>git-commit-id-plugin</artifactId>
167 <version>2.1.5</version>
168 <executions>
169 <execution>
170 <goals>
171 <goal>revision</goal>
172 </goals>
173 </execution>
174 </executions>
175
176 <configuration>
177 <!-- our BuildInfoManager expects dates to be in ISO-8601 format -->
178 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
179
180 <verbose>true</verbose>
181
182 <skipPoms>true</skipPoms>
183 <generateGitPropertiesFile>false</generateGitPropertiesFile>
184 <dotGitDirectory>${project.basedir}/../../.git</dotGitDirectory>
185 <failOnNoGitDirectory>false</failOnNoGitDirectory>
186
187 <gitDescribe>
Andreas Wundsam133db452014-04-03 13:17:48 -0700188 <skip>true</skip>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800189 <always>true</always>
190 <abbrev>7</abbrev>
191 <dirty>-dirty</dirty>
192 <forceLongFormat>false</forceLongFormat>
193 </gitDescribe>
194 </configuration>
195 </plugin>
196 <!-- include git info in generated jars -->
197 <plugin>
198 <groupId>org.apache.maven.plugins</groupId>
199 <artifactId>maven-jar-plugin</artifactId>
200 <version>2.4</version>
201 <executions>
202 <execution>
203 <goals>
204 <goal>test-jar</goal>
205 </goals>
206 </execution>
207 </executions>
208 <configuration>
209 <archive>
210 <manifest>
211 <mainClass>org.projectfloodlight.core.Main</mainClass>
212 </manifest>
213 <manifestSections>
214 <manifestSection>
215 <name>Floodlight-buildinfo</name>
216 <manifestEntries>
217 <projectName>${project.name}</projectName>
218 <version>${project.version}</version>
219 <vcsRevision>${git.commit.id.abbrev}</vcsRevision>
Andreas Wundsam133db452014-04-03 13:17:48 -0700220 <!-- note: git.branch does not work in jenkins, because jenkins
221 builds the system in 'detached head' state. Because we mostly
222 about jenkins builds, we instead use the environment variable
223 GIT_BRANCH set by jenkins here -->
224 <vcsBranch>${env.GIT_BRANCH}</vcsBranch>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800225 <buildUser>${user.name}</buildUser>
226 <buildDate>${git.build.time}</buildDate>
Andreas Wundsam133db452014-04-03 13:17:48 -0700227 <!-- continuous integration information from jenkins env variables:
228 https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-below -->
229 <ciBuildNumber>${env.BUILD_NUMBER}</ciBuildNumber>
230 <ciBuildId>${env.BUILD_ID}</ciBuildId>
231 <ciBuildTag>${env.BUILD_TAG}</ciBuildTag>
232 <ciJobName>${env.JOB_NAME}</ciJobName>
Brian O'Connor19ba9fc2014-12-03 19:29:53 -0800233 <ciNodeName>${env.NODE_NAME}</ciNodeName>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800234 </manifestEntries>
235 </manifestSection>
236 </manifestSections>
237 </archive>
238 </configuration>
239 </plugin>
Brian O'Connor28e05632016-04-04 17:22:44 -0700240 <!-- include OSGi headers in MANIFEST -->
241 <plugin>
242 <groupId>org.apache.felix</groupId>
243 <artifactId>maven-bundle-plugin</artifactId>
244 <version>3.0.1</version>
245 <extensions>true</extensions>
246 </plugin>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700247 </plugins>
248 <resources>
249 <resource>
250 <directory>${basedir}</directory>
251 <filtering>false</filtering>
252 <includes>
253 <include>LICENSE.txt</include>
254 </includes>
255 </resource>
256 </resources>
257 </build>
Brian O'Connor19ba9fc2014-12-03 19:29:53 -0800258 <profiles>
259 <profile>
260 <id>release</id>
261 <build>
262 <plugins>
263 <plugin>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-source-plugin</artifactId>
266 <version>2.2.1</version>
267 <executions>
268 <execution>
269 <id>attach-sources</id>
270 <goals>
271 <goal>jar-no-fork</goal>
272 </goals>
273 </execution>
274 </executions>
275 </plugin>
276 <plugin>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-javadoc-plugin</artifactId>
279 <version>2.9.1</version>
280 <executions>
281 <execution>
282 <id>attach-javadocs</id>
283 <goals>
284 <goal>jar</goal>
285 </goals>
286 </execution>
287 </executions>
288 </plugin>
289 <plugin>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-gpg-plugin</artifactId>
292 <version>1.5</version>
293 <executions>
294 <execution>
295 <id>sign-artifacts</id>
296 <phase>verify</phase>
297 <goals>
298 <goal>sign</goal>
299 </goals>
300 </execution>
301 </executions>
302 </plugin>
303 <plugin>
304 <groupId>org.sonatype.plugins</groupId>
305 <artifactId>nexus-staging-maven-plugin</artifactId>
306 <version>1.6.5</version>
307 <extensions>true</extensions>
308 <configuration>
309 <serverId>ossrh</serverId>
310 <nexusUrl>https://oss.sonatype.org/</nexusUrl>
311 <autoReleaseAfterClose>false</autoReleaseAfterClose>
312 </configuration>
313 </plugin>
314 </plugins>
315 </build>
316 </profile>
317 </profiles>
Andreas Wundsamac285ba2013-07-24 20:29:42 -0700318</project>