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> |
alshabib | a8f84e9 | 2016-08-09 10:53:33 -0700 | [diff] [blame] | 13 | <version>0.9.6.onosi-SNAPSHOT</version> |
Brian O'Connor | 28e0563 | 2016-04-04 17:22:44 -0700 | [diff] [blame] | 14 | <packaging>bundle</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> |
Brian O'Connor | 28e0563 | 2016-04-04 17:22:44 -0700 | [diff] [blame] | 44 | <!-- This is only needed for compile-time annotations --> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 45 | <dependency> |
xinwu | 3203443 | 2013-09-18 17:17:50 -0700 | [diff] [blame] | 46 | <groupId>com.google.code.findbugs</groupId> |
| 47 | <artifactId>annotations</artifactId> |
Andreas Wundsam | b126d12 | 2015-08-24 07:58:19 -0700 | [diff] [blame] | 48 | <version>3.0.0</version> |
Brian O'Connor | 28e0563 | 2016-04-04 17:22:44 -0700 | [diff] [blame] | 49 | <scope>provided</scope> |
xinwu | 3203443 | 2013-09-18 17:17:50 -0700 | [diff] [blame] | 50 | </dependency> |
| 51 | <dependency> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 52 | <groupId>junit</groupId> |
| 53 | <artifactId>junit</artifactId> |
Andreas Wundsam | b126d12 | 2015-08-24 07:58:19 -0700 | [diff] [blame] | 54 | <version>4.12</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 55 | <scope>test</scope> |
| 56 | </dependency> |
| 57 | <dependency> |
Rob Vaterlaus | 0bea4e0 | 2013-11-25 12:02:55 -0800 | [diff] [blame] | 58 | <groupId>org.hamcrest</groupId> |
| 59 | <artifactId>hamcrest-integration</artifactId> |
| 60 | <version>1.3</version> |
| 61 | <scope>test</scope> |
| 62 | </dependency> |
| 63 | <dependency> |
Andreas Wundsam | 598d43e | 2014-02-06 19:20:18 -0800 | [diff] [blame] | 64 | <groupId>io.netty</groupId> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 65 | <artifactId>netty</artifactId> |
Brian O'Connor | 28e0563 | 2016-04-04 17:22:44 -0700 | [diff] [blame] | 66 | <version>3.10.5.Final</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>com.google.guava</groupId> |
| 70 | <artifactId>guava</artifactId> |
Brian O'Connor | 28e0563 | 2016-04-04 17:22:44 -0700 | [diff] [blame] | 71 | <version>19.0</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 72 | </dependency> |
Andreas Wundsam | 70aa549 | 2013-10-23 15:26:53 -0700 | [diff] [blame] | 73 | <dependency> |
| 74 | <groupId>org.slf4j</groupId> |
| 75 | <artifactId>slf4j-api</artifactId> |
Brian O'Connor | 28e0563 | 2016-04-04 17:22:44 -0700 | [diff] [blame] | 76 | <version>1.7.13</version> |
Andreas Wundsam | a8757ea | 2013-11-15 13:54:29 -0800 | [diff] [blame] | 77 | </dependency> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 78 | </dependencies> |
| 79 | <build> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 80 | <plugins> |
| 81 | <plugin> |
| 82 | <groupId>org.apache.maven.plugins</groupId> |
| 83 | <artifactId>maven-compiler-plugin</artifactId> |
| 84 | <version>3.1</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 85 | <configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 86 | <source>1.7</source> |
| 87 | <target>1.7</target> |
Andreas Wundsam | d458199 | 2013-09-11 11:12:58 -0700 | [diff] [blame] | 88 | </configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 89 | </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'Connor | cfdd172 | 2015-09-03 15:34:43 -0700 | [diff] [blame] | 144 | <!-- |
| 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 Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 151 | </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 Wundsam | d458199 | 2013-09-11 11:12:58 -0700 | [diff] [blame] | 158 | <configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 159 | <downloadSources>true</downloadSources> |
| 160 | <downloadJavadocs>true</downloadJavadocs> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 161 | </configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 162 | </plugin> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 163 | <!-- 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 Wundsam | 133db45 | 2014-04-03 13:17:48 -0700 | [diff] [blame] | 188 | <skip>true</skip> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 189 | <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 Wundsam | 133db45 | 2014-04-03 13:17:48 -0700 | [diff] [blame] | 220 | <!-- 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 Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 225 | <buildUser>${user.name}</buildUser> |
| 226 | <buildDate>${git.build.time}</buildDate> |
Andreas Wundsam | 133db45 | 2014-04-03 13:17:48 -0700 | [diff] [blame] | 227 | <!-- 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'Connor | 19ba9fc | 2014-12-03 19:29:53 -0800 | [diff] [blame] | 233 | <ciNodeName>${env.NODE_NAME}</ciNodeName> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 234 | </manifestEntries> |
| 235 | </manifestSection> |
| 236 | </manifestSections> |
| 237 | </archive> |
| 238 | </configuration> |
| 239 | </plugin> |
Brian O'Connor | 28e0563 | 2016-04-04 17:22:44 -0700 | [diff] [blame] | 240 | <!-- 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 Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 247 | </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'Connor | 19ba9fc | 2014-12-03 19:29:53 -0800 | [diff] [blame] | 258 | <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 Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 318 | </project> |