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 | |
Andreas Wundsam | 11f6384 | 2013-09-10 18:01:43 -0700 | [diff] [blame] | 11 | <groupId>org.projectfloodlight</groupId> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 12 | <artifactId>openflowj</artifactId> |
Andreas Wundsam | ced3164 | 2014-10-16 11:59:51 -0700 | [diff] [blame] | 13 | <version>0.9.0-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 | |
| 36 | <dependencies> |
| 37 | <dependency> |
xinwu | 3203443 | 2013-09-18 17:17:50 -0700 | [diff] [blame] | 38 | <groupId>com.google.code.findbugs</groupId> |
| 39 | <artifactId>annotations</artifactId> |
Rob Vaterlaus | 6d5832a | 2013-10-18 19:40:04 -0700 | [diff] [blame] | 40 | <version>2.0.2</version> |
xinwu | 3203443 | 2013-09-18 17:17:50 -0700 | [diff] [blame] | 41 | </dependency> |
| 42 | <dependency> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 43 | <groupId>junit</groupId> |
| 44 | <artifactId>junit</artifactId> |
Rob Vaterlaus | 6d5832a | 2013-10-18 19:40:04 -0700 | [diff] [blame] | 45 | <version>4.11</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 46 | <scope>test</scope> |
| 47 | </dependency> |
| 48 | <dependency> |
Rob Vaterlaus | 0bea4e0 | 2013-11-25 12:02:55 -0800 | [diff] [blame] | 49 | <groupId>org.hamcrest</groupId> |
| 50 | <artifactId>hamcrest-integration</artifactId> |
| 51 | <version>1.3</version> |
| 52 | <scope>test</scope> |
| 53 | </dependency> |
| 54 | <dependency> |
Andreas Wundsam | 598d43e | 2014-02-06 19:20:18 -0800 | [diff] [blame] | 55 | <groupId>io.netty</groupId> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 56 | <artifactId>netty</artifactId> |
Andreas Wundsam | 598d43e | 2014-02-06 19:20:18 -0800 | [diff] [blame] | 57 | <version>3.9.0.Final</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>com.google.guava</groupId> |
| 61 | <artifactId>guava</artifactId> |
Andreas Wundsam | 2df1c23 | 2014-07-01 12:24:04 -0700 | [diff] [blame] | 62 | <version>17.0</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 63 | </dependency> |
Andreas Wundsam | 70aa549 | 2013-10-23 15:26:53 -0700 | [diff] [blame] | 64 | <dependency> |
| 65 | <groupId>org.slf4j</groupId> |
| 66 | <artifactId>slf4j-api</artifactId> |
| 67 | <version>1.7.5</version> |
| 68 | </dependency> |
Andreas Wundsam | a8757ea | 2013-11-15 13:54:29 -0800 | [diff] [blame] | 69 | <dependency> |
| 70 | <groupId>ch.qos.logback</groupId> |
| 71 | <artifactId>logback-core</artifactId> |
| 72 | <version>1.0.13</version> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>ch.qos.logback</groupId> |
| 76 | <artifactId>logback-classic</artifactId> |
| 77 | <version>1.0.13</version> |
| 78 | </dependency> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 79 | </dependencies> |
| 80 | <build> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 81 | <plugins> |
| 82 | <plugin> |
| 83 | <groupId>org.apache.maven.plugins</groupId> |
| 84 | <artifactId>maven-compiler-plugin</artifactId> |
| 85 | <version>3.1</version> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 86 | <configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 87 | <source>1.7</source> |
| 88 | <target>1.7</target> |
Andreas Wundsam | d458199 | 2013-09-11 11:12:58 -0700 | [diff] [blame] | 89 | </configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 90 | </plugin> |
| 91 | <plugin> |
| 92 | <!-- pick up sources from gen-src --> |
| 93 | <groupId>org.codehaus.mojo</groupId> |
| 94 | <artifactId>build-helper-maven-plugin</artifactId> |
| 95 | <version>1.8</version> |
| 96 | <executions> |
| 97 | <execution> |
| 98 | <id>gen-src-add-source</id> |
| 99 | <phase>generate-sources</phase> |
| 100 | <goals><goal>add-source</goal></goals> |
| 101 | <configuration> |
| 102 | <sources> |
| 103 | <source>gen-src/main/java</source> |
| 104 | </sources> |
| 105 | </configuration> |
| 106 | </execution> |
| 107 | <execution> |
| 108 | <id>add-gen-src-test-source</id> |
| 109 | <!-- note: purposefully not using phase generate-test-sources, because that is not picked up by eclipse:eclipse --> |
| 110 | <phase>validate</phase> |
| 111 | <goals><goal>add-test-source</goal></goals> |
| 112 | <configuration> |
| 113 | <sources> |
| 114 | <source>gen-src/test/java</source> |
| 115 | </sources> |
| 116 | </configuration> |
| 117 | </execution> |
| 118 | </executions> |
| 119 | </plugin> |
| 120 | <!-- attach sources --> |
| 121 | <plugin> |
| 122 | <groupId>org.apache.maven.plugins</groupId> |
| 123 | <artifactId>maven-source-plugin</artifactId> |
| 124 | <version>2.2.1</version> |
| 125 | <executions> |
| 126 | <execution> |
| 127 | <id>attach-sources</id> |
| 128 | <goals> |
| 129 | <goal>jar</goal> |
| 130 | </goals> |
| 131 | </execution> |
| 132 | </executions> |
| 133 | </plugin> |
| 134 | <!-- attach javadoc --> |
| 135 | <plugin> |
| 136 | <groupId>org.apache.maven.plugins</groupId> |
| 137 | <artifactId>maven-javadoc-plugin</artifactId> |
| 138 | <version>2.9.1</version> |
| 139 | <executions> |
| 140 | <execution> |
| 141 | <id>attach-javadocs</id> |
| 142 | <goals> |
| 143 | <goal>jar</goal> |
| 144 | </goals> |
| 145 | </execution> |
| 146 | </executions> |
| 147 | </plugin> |
| 148 | <plugin> |
| 149 | <groupId>org.apache.maven.plugins</groupId> |
| 150 | <artifactId>maven-eclipse-plugin</artifactId> |
| 151 | <version>2.9</version> |
Andreas Wundsam | d458199 | 2013-09-11 11:12:58 -0700 | [diff] [blame] | 152 | <configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 153 | <downloadSources>true</downloadSources> |
| 154 | <downloadJavadocs>true</downloadJavadocs> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 155 | </configuration> |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 156 | </plugin> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 157 | <!-- use maven git-commit-id plugin to provide vcs metadata --> |
| 158 | <plugin> |
| 159 | <groupId>pl.project13.maven</groupId> |
| 160 | <artifactId>git-commit-id-plugin</artifactId> |
| 161 | <version>2.1.5</version> |
| 162 | <executions> |
| 163 | <execution> |
| 164 | <goals> |
| 165 | <goal>revision</goal> |
| 166 | </goals> |
| 167 | </execution> |
| 168 | </executions> |
| 169 | |
| 170 | <configuration> |
| 171 | <!-- our BuildInfoManager expects dates to be in ISO-8601 format --> |
| 172 | <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat> |
| 173 | |
| 174 | <verbose>true</verbose> |
| 175 | |
| 176 | <skipPoms>true</skipPoms> |
| 177 | <generateGitPropertiesFile>false</generateGitPropertiesFile> |
| 178 | <dotGitDirectory>${project.basedir}/../../.git</dotGitDirectory> |
| 179 | <failOnNoGitDirectory>false</failOnNoGitDirectory> |
| 180 | |
| 181 | <gitDescribe> |
Andreas Wundsam | 133db45 | 2014-04-03 13:17:48 -0700 | [diff] [blame] | 182 | <skip>true</skip> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 183 | <always>true</always> |
| 184 | <abbrev>7</abbrev> |
| 185 | <dirty>-dirty</dirty> |
| 186 | <forceLongFormat>false</forceLongFormat> |
| 187 | </gitDescribe> |
| 188 | </configuration> |
| 189 | </plugin> |
| 190 | <!-- include git info in generated jars --> |
| 191 | <plugin> |
| 192 | <groupId>org.apache.maven.plugins</groupId> |
| 193 | <artifactId>maven-jar-plugin</artifactId> |
| 194 | <version>2.4</version> |
| 195 | <executions> |
| 196 | <execution> |
| 197 | <goals> |
| 198 | <goal>test-jar</goal> |
| 199 | </goals> |
| 200 | </execution> |
| 201 | </executions> |
| 202 | <configuration> |
| 203 | <archive> |
| 204 | <manifest> |
| 205 | <mainClass>org.projectfloodlight.core.Main</mainClass> |
| 206 | </manifest> |
| 207 | <manifestSections> |
| 208 | <manifestSection> |
| 209 | <name>Floodlight-buildinfo</name> |
| 210 | <manifestEntries> |
| 211 | <projectName>${project.name}</projectName> |
| 212 | <version>${project.version}</version> |
| 213 | <vcsRevision>${git.commit.id.abbrev}</vcsRevision> |
Andreas Wundsam | 133db45 | 2014-04-03 13:17:48 -0700 | [diff] [blame] | 214 | <!-- note: git.branch does not work in jenkins, because jenkins |
| 215 | builds the system in 'detached head' state. Because we mostly |
| 216 | about jenkins builds, we instead use the environment variable |
| 217 | GIT_BRANCH set by jenkins here --> |
| 218 | <vcsBranch>${env.GIT_BRANCH}</vcsBranch> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 219 | <buildUser>${user.name}</buildUser> |
| 220 | <buildDate>${git.build.time}</buildDate> |
Andreas Wundsam | 133db45 | 2014-04-03 13:17:48 -0700 | [diff] [blame] | 221 | <!-- continuous integration information from jenkins env variables: |
| 222 | https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-below --> |
| 223 | <ciBuildNumber>${env.BUILD_NUMBER}</ciBuildNumber> |
| 224 | <ciBuildId>${env.BUILD_ID}</ciBuildId> |
| 225 | <ciBuildTag>${env.BUILD_TAG}</ciBuildTag> |
| 226 | <ciJobName>${env.JOB_NAME}</ciJobName> |
| 227 | i <ciNodeName>${env.NODE_NAME}</ciNodeName> |
Andreas Wundsam | 84bdf5d | 2013-11-20 15:16:06 -0800 | [diff] [blame] | 228 | </manifestEntries> |
| 229 | </manifestSection> |
| 230 | </manifestSections> |
| 231 | </archive> |
| 232 | </configuration> |
| 233 | </plugin> |
| 234 | |
Andreas Wundsam | baf058d | 2013-09-12 15:58:17 -0700 | [diff] [blame] | 235 | <!-- |
| 236 | <plugin> |
| 237 | <groupId>org.apache.maven.plugins</groupId> |
| 238 | <artifactId>maven-gpg-plugin</artifactId> |
| 239 | <version>1.4</version> |
| 240 | <executions> |
| 241 | <execution> |
| 242 | <id>sign-artifacts</id> |
| 243 | <phase>verify</phase> |
| 244 | <goals> |
| 245 | <goal>sign</goal> |
| 246 | </goals> |
| 247 | </execution> |
| 248 | </executions> |
| 249 | </plugin> |
| 250 | --> |
| 251 | </plugins> |
| 252 | <resources> |
| 253 | <resource> |
| 254 | <directory>${basedir}</directory> |
| 255 | <filtering>false</filtering> |
| 256 | <includes> |
| 257 | <include>LICENSE.txt</include> |
| 258 | </includes> |
| 259 | </resource> |
| 260 | </resources> |
| 261 | </build> |
Andreas Wundsam | ac285ba | 2013-07-24 20:29:42 -0700 | [diff] [blame] | 262 | </project> |