tom | 7ef8ff9 | 2014-09-17 13:08:06 -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 | |
| 5 | <parent> |
| 6 | <groupId>org.sonatype.oss</groupId> |
| 7 | <artifactId>oss-parent</artifactId> |
| 8 | <version>7</version> |
| 9 | </parent> |
| 10 | |
| 11 | <groupId>org.projectfloodlight</groupId> |
| 12 | <artifactId>openflowj</artifactId> |
| 13 | <version>0.3.8-SNAPSHOT</version> |
| 14 | <packaging>bundle</packaging> |
| 15 | |
| 16 | <name>OpenFlowJ-Loxi</name> |
| 17 | <description>OpenFlowJ API supporting OpenFlow versions 1.0 through 1.3.1, generated by LoxiGen</description> |
| 18 | <url>http://www.projectfloodlight.org/projects/</url> |
| 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> |
| 31 | |
| 32 | <properties> |
| 33 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 34 | </properties> |
| 35 | |
| 36 | <dependencies> |
| 37 | <dependency> |
| 38 | <groupId>com.google.code.findbugs</groupId> |
| 39 | <artifactId>annotations</artifactId> |
| 40 | <version>2.0.2</version> |
| 41 | </dependency> |
| 42 | <dependency> |
| 43 | <groupId>junit</groupId> |
| 44 | <artifactId>junit</artifactId> |
| 45 | <version>4.11</version> |
| 46 | <scope>test</scope> |
| 47 | </dependency> |
| 48 | <dependency> |
| 49 | <groupId>org.hamcrest</groupId> |
| 50 | <artifactId>hamcrest-integration</artifactId> |
| 51 | <version>1.3</version> |
| 52 | <scope>test</scope> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>io.netty</groupId> |
| 56 | <artifactId>netty</artifactId> |
| 57 | <version>3.9.0.Final</version> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>com.google.guava</groupId> |
| 61 | <artifactId>guava</artifactId> |
| 62 | <version>15.0</version> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.slf4j</groupId> |
| 66 | <artifactId>slf4j-api</artifactId> |
| 67 | <version>1.7.5</version> |
| 68 | </dependency> |
| 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> |
| 79 | </dependencies> |
| 80 | <build> |
| 81 | <plugins> |
| 82 | <plugin> |
| 83 | <groupId>org.apache.felix</groupId> |
| 84 | <artifactId>maven-bundle-plugin</artifactId> |
| 85 | <version>2.3.6</version> |
| 86 | <extensions>true</extensions> |
| 87 | <configuration> |
| 88 | <instructions> |
| 89 | <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName> |
| 90 | </instructions> |
| 91 | </configuration> |
| 92 | </plugin> |
| 93 | <plugin> |
| 94 | <groupId>org.apache.maven.plugins</groupId> |
| 95 | <artifactId>maven-compiler-plugin</artifactId> |
| 96 | <version>3.1</version> |
| 97 | <configuration> |
| 98 | <source>1.7</source> |
| 99 | <target>1.7</target> |
| 100 | </configuration> |
| 101 | </plugin> |
| 102 | <plugin> |
| 103 | <!-- pick up sources from gen-src --> |
| 104 | <groupId>org.codehaus.mojo</groupId> |
| 105 | <artifactId>build-helper-maven-plugin</artifactId> |
| 106 | <version>1.8</version> |
| 107 | <executions> |
| 108 | <execution> |
| 109 | <id>gen-src-add-source</id> |
| 110 | <phase>generate-sources</phase> |
| 111 | <goals><goal>add-source</goal></goals> |
| 112 | <configuration> |
| 113 | <sources> |
| 114 | <source>gen-src/main/java</source> |
| 115 | </sources> |
| 116 | </configuration> |
| 117 | </execution> |
| 118 | <execution> |
| 119 | <id>add-gen-src-test-source</id> |
| 120 | <!-- note: purposefully not using phase generate-test-sources, because that is not picked up by eclipse:eclipse --> |
| 121 | <phase>validate</phase> |
| 122 | <goals><goal>add-test-source</goal></goals> |
| 123 | <configuration> |
| 124 | <sources> |
| 125 | <source>gen-src/test/java</source> |
| 126 | </sources> |
| 127 | </configuration> |
| 128 | </execution> |
| 129 | </executions> |
| 130 | </plugin> |
| 131 | <!-- attach sources --> |
| 132 | <plugin> |
| 133 | <groupId>org.apache.maven.plugins</groupId> |
| 134 | <artifactId>maven-source-plugin</artifactId> |
| 135 | <version>2.2.1</version> |
| 136 | <executions> |
| 137 | <execution> |
| 138 | <id>attach-sources</id> |
| 139 | <goals> |
| 140 | <goal>jar</goal> |
| 141 | </goals> |
| 142 | </execution> |
| 143 | </executions> |
| 144 | </plugin> |
| 145 | <!-- attach javadoc --> |
| 146 | <plugin> |
| 147 | <groupId>org.apache.maven.plugins</groupId> |
| 148 | <artifactId>maven-javadoc-plugin</artifactId> |
| 149 | <version>2.9.1</version> |
| 150 | <executions> |
| 151 | <execution> |
| 152 | <id>attach-javadocs</id> |
| 153 | <goals> |
| 154 | <goal>jar</goal> |
| 155 | </goals> |
| 156 | </execution> |
| 157 | </executions> |
| 158 | </plugin> |
| 159 | <plugin> |
| 160 | <groupId>org.apache.maven.plugins</groupId> |
| 161 | <artifactId>maven-eclipse-plugin</artifactId> |
| 162 | <version>2.9</version> |
| 163 | <configuration> |
| 164 | <downloadSources>true</downloadSources> |
| 165 | <downloadJavadocs>true</downloadJavadocs> |
| 166 | </configuration> |
| 167 | </plugin> |
| 168 | <!-- use maven git-commit-id plugin to provide vcs metadata --> |
| 169 | <plugin> |
| 170 | <groupId>pl.project13.maven</groupId> |
| 171 | <artifactId>git-commit-id-plugin</artifactId> |
| 172 | <version>2.1.5</version> |
| 173 | <executions> |
| 174 | <execution> |
| 175 | <goals> |
| 176 | <goal>revision</goal> |
| 177 | </goals> |
| 178 | </execution> |
| 179 | </executions> |
| 180 | |
| 181 | <configuration> |
| 182 | <!-- our BuildInfoManager expects dates to be in ISO-8601 format --> |
| 183 | <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat> |
| 184 | |
| 185 | <verbose>true</verbose> |
| 186 | |
| 187 | <skipPoms>true</skipPoms> |
| 188 | <generateGitPropertiesFile>false</generateGitPropertiesFile> |
| 189 | <dotGitDirectory>${project.basedir}/../../.git</dotGitDirectory> |
| 190 | <failOnNoGitDirectory>false</failOnNoGitDirectory> |
| 191 | |
| 192 | <gitDescribe> |
| 193 | <skip>true</skip> |
| 194 | <always>true</always> |
| 195 | <abbrev>7</abbrev> |
| 196 | <dirty>-dirty</dirty> |
| 197 | <forceLongFormat>false</forceLongFormat> |
| 198 | </gitDescribe> |
| 199 | </configuration> |
| 200 | </plugin> |
| 201 | <!-- include git info in generated jars --> |
| 202 | <plugin> |
| 203 | <groupId>org.apache.maven.plugins</groupId> |
| 204 | <artifactId>maven-jar-plugin</artifactId> |
| 205 | <version>2.4</version> |
| 206 | <executions> |
| 207 | <execution> |
| 208 | <goals> |
| 209 | <goal>test-jar</goal> |
| 210 | </goals> |
| 211 | </execution> |
| 212 | </executions> |
| 213 | <configuration> |
| 214 | <archive> |
| 215 | <manifest> |
| 216 | <mainClass>org.projectfloodlight.core.Main</mainClass> |
| 217 | </manifest> |
| 218 | <manifestSections> |
| 219 | <manifestSection> |
| 220 | <name>Floodlight-buildinfo</name> |
| 221 | <manifestEntries> |
| 222 | <projectName>${project.name}</projectName> |
| 223 | <version>${project.version}</version> |
| 224 | <vcsRevision>${git.commit.id.abbrev}</vcsRevision> |
| 225 | <!-- note: git.branch does not work in jenkins, because jenkins |
| 226 | builds the system in 'detached head' state. Because we mostly |
| 227 | about jenkins builds, we instead use the environment variable |
| 228 | GIT_BRANCH set by jenkins here --> |
| 229 | <vcsBranch>${env.GIT_BRANCH}</vcsBranch> |
| 230 | <buildUser>${user.name}</buildUser> |
| 231 | <buildDate>${git.build.time}</buildDate> |
| 232 | <!-- continuous integration information from jenkins env variables: |
| 233 | https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-below --> |
| 234 | <ciBuildNumber>${env.BUILD_NUMBER}</ciBuildNumber> |
| 235 | <ciBuildId>${env.BUILD_ID}</ciBuildId> |
| 236 | <ciBuildTag>${env.BUILD_TAG}</ciBuildTag> |
| 237 | <ciJobName>${env.JOB_NAME}</ciJobName> |
| 238 | i <ciNodeName>${env.NODE_NAME}</ciNodeName> |
| 239 | </manifestEntries> |
| 240 | </manifestSection> |
| 241 | </manifestSections> |
| 242 | </archive> |
| 243 | </configuration> |
| 244 | </plugin> |
| 245 | |
| 246 | <!-- |
| 247 | <plugin> |
| 248 | <groupId>org.apache.maven.plugins</groupId> |
| 249 | <artifactId>maven-gpg-plugin</artifactId> |
| 250 | <version>1.4</version> |
| 251 | <executions> |
| 252 | <execution> |
| 253 | <id>sign-artifacts</id> |
| 254 | <phase>verify</phase> |
| 255 | <goals> |
| 256 | <goal>sign</goal> |
| 257 | </goals> |
| 258 | </execution> |
| 259 | </executions> |
| 260 | </plugin> |
| 261 | --> |
| 262 | </plugins> |
| 263 | <resources> |
| 264 | <resource> |
| 265 | <directory>${basedir}</directory> |
| 266 | <filtering>false</filtering> |
| 267 | <includes> |
| 268 | <include>LICENSE.txt</include> |
| 269 | </includes> |
| 270 | </resource> |
| 271 | </resources> |
| 272 | </build> |
| 273 | </project> |