Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 1 | <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 Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 5 | <parent> |
| 6 | <groupId>org.sonatype.oss</groupId> |
| 7 | <artifactId>oss-parent</artifactId> |
| 8 | <version>7</version> |
| 9 | </parent> |
| 10 | |
Brian O'Connor | 3efb663 | 2014-12-03 14:00:13 -0800 | [diff] [blame] | 11 | <groupId>org.onosproject</groupId> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 12 | <artifactId>openflowj</artifactId> |
Brian O'Connor | 14e9fca | 2015-09-03 16:08:19 -0700 | [diff] [blame] | 13 | <version>0.9.1.onos-SNAPSHOT</version> |
Andreas Wundsam | cbb7277 | 2013-09-10 18:17:41 -0700 | [diff] [blame] | 14 | <packaging>jar</packaging> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 15 | |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 16 | <name>OpenFlowJ-Loxi</name> |
| 17 | <description>OpenFlowJ API supporting OpenFlow versions 1.0 through 1.3.1, generated by LoxiGen</description> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 18 | <url>http://www.projectfloodlight.org/projects/</url> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 19 | <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 Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 31 | |
| 32 | <properties> |
| 33 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 34 | </properties> |
| 35 | |
Brian O'Connor | 5fde105 | 2015-07-24 16:07:07 -0700 | [diff] [blame] | 36 | <distributionManagement> |
| 37 | <snapshotRepository> |
| 38 | <id>ossrh</id> |
| 39 | <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 40 | </snapshotRepository> |
| 41 | </distributionManagement> |
| 42 | |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 43 | <dependencies> |
| 44 | <dependency> |
xinwu | 3203443 | 2013-09-18 17:17:50 -0700 | [diff] [blame] | 45 | <groupId>com.google.code.findbugs</groupId> |
| 46 | <artifactId>annotations</artifactId> |
Andreas Wundsam | b126d12 | 2015-08-24 07:58:19 -0700 | [diff] [blame] | 47 | <version>3.0.0</version> |
xinwu | 3203443 | 2013-09-18 17:17:50 -0700 | [diff] [blame] | 48 | </dependency> |
| 49 | <dependency> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 50 | <groupId>junit</groupId> |
| 51 | <artifactId>junit</artifactId> |
Andreas Wundsam | b126d12 | 2015-08-24 07:58:19 -0700 | [diff] [blame] | 52 | <version>4.12</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 53 | <scope>test</scope> |
| 54 | </dependency> |
| 55 | <dependency> |
Rob Vaterlaus | 0bea4e0 | 2013-11-25 12:02:55 -0800 | [diff] [blame] | 56 | <groupId>org.hamcrest</groupId> |
| 57 | <artifactId>hamcrest-integration</artifactId> |
| 58 | <version>1.3</version> |
| 59 | <scope>test</scope> |
| 60 | </dependency> |
| 61 | <dependency> |
Andreas Wundsam | 598d43e | 2014-02-06 19:20:18 -0800 | [diff] [blame] | 62 | <groupId>io.netty</groupId> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 63 | <artifactId>netty</artifactId> |
Andreas Wundsam | b126d12 | 2015-08-24 07:58:19 -0700 | [diff] [blame] | 64 | <version>3.10.4.Final</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>com.google.guava</groupId> |
| 68 | <artifactId>guava</artifactId> |
Andreas Wundsam | b126d12 | 2015-08-24 07:58:19 -0700 | [diff] [blame] | 69 | <version>18.0</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 70 | </dependency> |
Andreas Wundsam | 70aa549 | 2013-10-23 15:26:53 -0700 | [diff] [blame] | 71 | <dependency> |
| 72 | <groupId>org.slf4j</groupId> |
| 73 | <artifactId>slf4j-api</artifactId> |
Andreas Wundsam | b126d12 | 2015-08-24 07:58:19 -0700 | [diff] [blame] | 74 | <version>1.7.12</version> |
Andreas Wundsam | 70aa549 | 2013-10-23 15:26:53 -0700 | [diff] [blame] | 75 | </dependency> |
Andreas Wundsam | a8757ea | 2013-11-15 13:54:29 -0800 | [diff] [blame] | 76 | <dependency> |
| 77 | <groupId>ch.qos.logback</groupId> |
| 78 | <artifactId>logback-core</artifactId> |
Andreas Wundsam | b126d12 | 2015-08-24 07:58:19 -0700 | [diff] [blame] | 79 | <version>1.1.3</version> |
Andreas Wundsam | a8757ea | 2013-11-15 13:54:29 -0800 | [diff] [blame] | 80 | </dependency> |
| 81 | <dependency> |
| 82 | <groupId>ch.qos.logback</groupId> |
| 83 | <artifactId>logback-classic</artifactId> |
Andreas Wundsam | b126d12 | 2015-08-24 07:58:19 -0700 | [diff] [blame] | 84 | <version>1.1.3</version> |
Andreas Wundsam | a8757ea | 2013-11-15 13:54:29 -0800 | [diff] [blame] | 85 | </dependency> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 86 | </dependencies> |
| 87 | <build> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 88 | <plugins> |
| 89 | <plugin> |
| 90 | <groupId>org.apache.maven.plugins</groupId> |
| 91 | <artifactId>maven-compiler-plugin</artifactId> |
| 92 | <version>3.1</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 93 | <configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 94 | <source>1.7</source> |
| 95 | <target>1.7</target> |
Andreas Wundsam | d458199 | 2013-09-11 11:12:58 -0700 | [diff] [blame] | 96 | </configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 97 | </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'Connor | cfdd172 | 2015-09-03 15:34:43 -0700 | [diff] [blame] | 152 | <!-- |
| 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 Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 159 | </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 Wundsam | d458199 | 2013-09-11 11:12:58 -0700 | [diff] [blame] | 166 | <configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 167 | <downloadSources>true</downloadSources> |
| 168 | <downloadJavadocs>true</downloadJavadocs> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 169 | </configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 170 | </plugin> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 171 | <!-- 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 Wundsam | 133db45 | 2014-04-03 13:17:48 -0700 | [diff] [blame] | 196 | <skip>true</skip> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 197 | <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 Wundsam | 133db45 | 2014-04-03 13:17:48 -0700 | [diff] [blame] | 228 | <!-- 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 Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 233 | <buildUser>${user.name}</buildUser> |
| 234 | <buildDate>${git.build.time}</buildDate> |
Andreas Wundsam | 133db45 | 2014-04-03 13:17:48 -0700 | [diff] [blame] | 235 | <!-- 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'Connor | 19ba9fc | 2014-12-03 19:29:53 -0800 | [diff] [blame] | 241 | <ciNodeName>${env.NODE_NAME}</ciNodeName> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 242 | </manifestEntries> |
| 243 | </manifestSection> |
| 244 | </manifestSections> |
| 245 | </archive> |
| 246 | </configuration> |
| 247 | </plugin> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 248 | </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'Connor | 19ba9fc | 2014-12-03 19:29:53 -0800 | [diff] [blame] | 259 | <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 Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 319 | </project> |