blob: 58ddab3983f359cd60ba3d61b86b1dd8e749bc45 [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
Andreas Wundsam11f63842013-09-10 18:01:43 -070011 <groupId>org.projectfloodlight</groupId>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070012 <artifactId>openflowj</artifactId>
Andreas Wundsamced31642014-10-16 11:59:51 -070013 <version>0.9.0-SNAPSHOT</version>
Andreas Wundsamcbb72772013-09-10 18:17:41 -070014 <packaging>jar</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
36 <dependencies>
37 <dependency>
xinwu32034432013-09-18 17:17:50 -070038 <groupId>com.google.code.findbugs</groupId>
39 <artifactId>annotations</artifactId>
Rob Vaterlaus6d5832a2013-10-18 19:40:04 -070040 <version>2.0.2</version>
xinwu32034432013-09-18 17:17:50 -070041 </dependency>
42 <dependency>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070043 <groupId>junit</groupId>
44 <artifactId>junit</artifactId>
Rob Vaterlaus6d5832a2013-10-18 19:40:04 -070045 <version>4.11</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070046 <scope>test</scope>
47 </dependency>
48 <dependency>
Rob Vaterlaus0bea4e02013-11-25 12:02:55 -080049 <groupId>org.hamcrest</groupId>
50 <artifactId>hamcrest-integration</artifactId>
51 <version>1.3</version>
52 <scope>test</scope>
53 </dependency>
54 <dependency>
Andreas Wundsam598d43e2014-02-06 19:20:18 -080055 <groupId>io.netty</groupId>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070056 <artifactId>netty</artifactId>
Andreas Wundsam598d43e2014-02-06 19:20:18 -080057 <version>3.9.0.Final</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070058 </dependency>
59 <dependency>
60 <groupId>com.google.guava</groupId>
61 <artifactId>guava</artifactId>
Andreas Wundsam2df1c232014-07-01 12:24:04 -070062 <version>17.0</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070063 </dependency>
Andreas Wundsam70aa5492013-10-23 15:26:53 -070064 <dependency>
65 <groupId>org.slf4j</groupId>
66 <artifactId>slf4j-api</artifactId>
67 <version>1.7.5</version>
68 </dependency>
Andreas Wundsama8757ea2013-11-15 13:54:29 -080069 <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 Wundsamac285ba2013-07-24 20:29:42 -070079 </dependencies>
80 <build>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070081 <plugins>
82 <plugin>
83 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-compiler-plugin</artifactId>
85 <version>3.1</version>
Andreas Wundsamac285ba2013-07-24 20:29:42 -070086 <configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070087 <source>1.7</source>
88 <target>1.7</target>
Andreas Wundsamd4581992013-09-11 11:12:58 -070089 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -070090 </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 Wundsamd4581992013-09-11 11:12:58 -0700152 <configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700153 <downloadSources>true</downloadSources>
154 <downloadJavadocs>true</downloadJavadocs>
Andreas Wundsamac285ba2013-07-24 20:29:42 -0700155 </configuration>
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700156 </plugin>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800157 <!-- 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 Wundsam133db452014-04-03 13:17:48 -0700182 <skip>true</skip>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800183 <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 Wundsam133db452014-04-03 13:17:48 -0700214 <!-- 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 Wundsam84bdf5d2013-11-20 15:16:06 -0800219 <buildUser>${user.name}</buildUser>
220 <buildDate>${git.build.time}</buildDate>
Andreas Wundsam133db452014-04-03 13:17:48 -0700221 <!-- 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>
227i <ciNodeName>${env.NODE_NAME}</ciNodeName>
Andreas Wundsam84bdf5d2013-11-20 15:16:06 -0800228 </manifestEntries>
229 </manifestSection>
230 </manifestSections>
231 </archive>
232 </configuration>
233 </plugin>
234
Andreas Wundsambaf058d2013-09-12 15:58:17 -0700235 <!--
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 Wundsamac285ba2013-07-24 20:29:42 -0700262</project>