1 | <project xmlns="http://maven.apache.org/POM/4.0.0"
|
---|
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
---|
3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
---|
4 | <modelVersion>4.0.0</modelVersion>
|
---|
5 | <groupId>geniusweb</groupId>
|
---|
6 | <artifactId>partiesserver</artifactId>
|
---|
7 | <packaging>war</packaging>
|
---|
8 | <version>1.5.2</version> <!-- must equal ${geniusweb.version} -->
|
---|
9 | <name>partiesserver Maven Webapp</name>
|
---|
10 | <url>http://maven.apache.org</url>
|
---|
11 |
|
---|
12 | <properties>
|
---|
13 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
---|
14 | <maven.compiler.target>1.8</maven.compiler.target>
|
---|
15 | <maven.compiler.source>1.8</maven.compiler.source>
|
---|
16 | <basedir>.</basedir>
|
---|
17 | <passwd>${env.ARTIFACTORY_PASS}</passwd>
|
---|
18 | <jackson-2-version>2.9.10</jackson-2-version>
|
---|
19 | <!-- <tomcat.version>8.0.53</tomcat.version> -->
|
---|
20 | <tomcat.version>8.5.20</tomcat.version>
|
---|
21 | <geniusweb.version>1.5.2</geniusweb.version>
|
---|
22 | </properties>
|
---|
23 |
|
---|
24 | <distributionManagement>
|
---|
25 | <repository>
|
---|
26 | <id>artifactory.ewi.tudelft.nl</id>
|
---|
27 | <url>http://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
|
---|
28 | </repository>
|
---|
29 | </distributionManagement>
|
---|
30 |
|
---|
31 |
|
---|
32 | <repositories>
|
---|
33 | <repository>
|
---|
34 | <id>artifactory.ewi.tudelft.nl</id>
|
---|
35 | <url>http://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
|
---|
36 | <snapshots>
|
---|
37 | <enabled>false</enabled>
|
---|
38 | </snapshots>
|
---|
39 | </repository>
|
---|
40 |
|
---|
41 | </repositories>
|
---|
42 |
|
---|
43 | <pluginRepositories>
|
---|
44 | <pluginRepository>
|
---|
45 | <id>jcenter</id>
|
---|
46 | <url>https://jcenter.bintray.com</url>
|
---|
47 | </pluginRepository>
|
---|
48 | </pluginRepositories>
|
---|
49 |
|
---|
50 | <dependencies>
|
---|
51 |
|
---|
52 |
|
---|
53 | <dependency>
|
---|
54 | <groupId>geniusweb</groupId>
|
---|
55 | <artifactId>party</artifactId>
|
---|
56 | <version>${geniusweb.version}</version>
|
---|
57 | </dependency>
|
---|
58 | <dependency>
|
---|
59 | <groupId>geniusweb</groupId>
|
---|
60 | <artifactId>profile</artifactId>
|
---|
61 | <version>${geniusweb.version}</version>
|
---|
62 | </dependency>
|
---|
63 | <dependency>
|
---|
64 | <groupId>geniusweb</groupId>
|
---|
65 | <artifactId>references</artifactId>
|
---|
66 | <version>${geniusweb.version}</version>
|
---|
67 | </dependency>
|
---|
68 |
|
---|
69 | <dependency>
|
---|
70 | <groupId>geniusweb.exampleparties</groupId>
|
---|
71 | <artifactId>randomparty</artifactId>
|
---|
72 | <version>${geniusweb.version}</version>
|
---|
73 | <scope>test</scope>
|
---|
74 | </dependency>
|
---|
75 |
|
---|
76 | <dependency>
|
---|
77 | <groupId>tudelft.utilities</groupId>
|
---|
78 | <artifactId>listener</artifactId>
|
---|
79 | <version>1.1.0</version>
|
---|
80 | </dependency>
|
---|
81 | <dependency>
|
---|
82 | <groupId>tudelft.utilities</groupId>
|
---|
83 | <artifactId>logging</artifactId>
|
---|
84 | <version>1.0.0</version>
|
---|
85 | </dependency>
|
---|
86 | <dependency>
|
---|
87 | <groupId>tudelft.utilities</groupId>
|
---|
88 | <artifactId>tree</artifactId>
|
---|
89 | <version>1.1.1</version>
|
---|
90 | </dependency>
|
---|
91 | <dependency>
|
---|
92 | <groupId>tudelft.utilities</groupId>
|
---|
93 | <artifactId>files</artifactId>
|
---|
94 | <version>1.1.1</version>
|
---|
95 | </dependency>
|
---|
96 | <dependency>
|
---|
97 | <groupId>tudelft.utilities</groupId>
|
---|
98 | <artifactId>repository</artifactId>
|
---|
99 | <version>1.1.1</version>
|
---|
100 | </dependency>
|
---|
101 | <dependency>
|
---|
102 | <groupId>tudelft.utilities</groupId>
|
---|
103 | <artifactId>immutablelist</artifactId>
|
---|
104 | <version>1.1.1</version>
|
---|
105 | </dependency>
|
---|
106 |
|
---|
107 |
|
---|
108 | <dependency>
|
---|
109 | <groupId>javax.websocket</groupId>
|
---|
110 | <artifactId>javax.websocket-api</artifactId>
|
---|
111 | <version>1.1</version>
|
---|
112 | </dependency>
|
---|
113 |
|
---|
114 | <dependency>
|
---|
115 | <groupId>javax.servlet</groupId>
|
---|
116 | <artifactId>javax.servlet-api</artifactId>
|
---|
117 | <version>3.1.0</version>
|
---|
118 | </dependency>
|
---|
119 |
|
---|
120 | <!-- the core, which includes Streaming API, shared low-level abstractions
|
---|
121 | (but NOT data-binding) -->
|
---|
122 | <dependency>
|
---|
123 | <groupId>com.fasterxml.jackson.core</groupId>
|
---|
124 | <artifactId>jackson-core</artifactId>
|
---|
125 | <version>${jackson-2-version}</version>
|
---|
126 | </dependency>
|
---|
127 |
|
---|
128 | <!-- Just the annotations; use this dependency if you want to attach annotations
|
---|
129 | to classes without connecting them to the code. -->
|
---|
130 | <dependency>
|
---|
131 | <groupId>com.fasterxml.jackson.core</groupId>
|
---|
132 | <artifactId>jackson-annotations</artifactId>
|
---|
133 | <version>${jackson-2-version}</version>
|
---|
134 | </dependency>
|
---|
135 |
|
---|
136 | <!-- databinding; ObjectMapper, JsonNode and related classes are here -->
|
---|
137 | <dependency>
|
---|
138 | <groupId>com.fasterxml.jackson.core</groupId>
|
---|
139 | <artifactId>jackson-databind</artifactId>
|
---|
140 | <version>${jackson-2-version}</version>
|
---|
141 | </dependency>
|
---|
142 |
|
---|
143 | <!-- smile (binary JSON). Other artifacts in this group do other formats. -->
|
---|
144 | <dependency>
|
---|
145 | <groupId>com.fasterxml.jackson.dataformat</groupId>
|
---|
146 | <artifactId>jackson-dataformat-smile</artifactId>
|
---|
147 | <version>${jackson-2-version}</version>
|
---|
148 | </dependency>
|
---|
149 | <!-- JAX-RS provider -->
|
---|
150 | <dependency>
|
---|
151 | <groupId>com.fasterxml.jackson.jaxrs</groupId>
|
---|
152 | <artifactId>jackson-jaxrs-json-provider</artifactId>
|
---|
153 | <version>${jackson-2-version}</version>
|
---|
154 | </dependency>
|
---|
155 | <!-- Support for JAX-B annotations as additional configuration -->
|
---|
156 | <dependency>
|
---|
157 | <groupId>com.fasterxml.jackson.module</groupId>
|
---|
158 | <artifactId>jackson-module-jaxb-annotations</artifactId>
|
---|
159 | <version>${jackson-2-version}</version>
|
---|
160 | </dependency>
|
---|
161 |
|
---|
162 | <!-- embedded-tomcat for testing the server -->
|
---|
163 | <dependency>
|
---|
164 | <groupId>org.apache.tomcat.embed</groupId>
|
---|
165 | <artifactId>tomcat-embed-core</artifactId>
|
---|
166 | <version>${tomcat.version}</version>
|
---|
167 | <scope>test</scope>
|
---|
168 | </dependency>
|
---|
169 | <dependency>
|
---|
170 | <groupId>org.apache.tomcat.embed</groupId>
|
---|
171 | <artifactId>tomcat-embed-jasper</artifactId>
|
---|
172 | <version>${tomcat.version}</version>
|
---|
173 | <scope>test</scope>
|
---|
174 | </dependency>
|
---|
175 | <dependency>
|
---|
176 | <groupId>org.apache.tomcat</groupId>
|
---|
177 | <artifactId>tomcat-jasper</artifactId>
|
---|
178 | <version>${tomcat.version}</version>
|
---|
179 | <scope>test</scope>
|
---|
180 | </dependency>
|
---|
181 | <dependency>
|
---|
182 | <groupId>org.apache.tomcat</groupId>
|
---|
183 | <artifactId>tomcat-jasper-el</artifactId>
|
---|
184 | <version>${tomcat.version}</version>
|
---|
185 | <scope>test</scope>
|
---|
186 | </dependency>
|
---|
187 | <dependency>
|
---|
188 | <groupId>org.apache.tomcat</groupId>
|
---|
189 | <artifactId>tomcat-jsp-api</artifactId>
|
---|
190 | <version>${tomcat.version}</version>
|
---|
191 | <scope>test</scope>
|
---|
192 | </dependency>
|
---|
193 |
|
---|
194 | <dependency>
|
---|
195 | <groupId>org.apache.tomcat.embed</groupId>
|
---|
196 | <artifactId>tomcat-embed-core</artifactId>
|
---|
197 | <version>${tomcat.version}</version>
|
---|
198 | <scope>test</scope>
|
---|
199 | </dependency>
|
---|
200 | <dependency>
|
---|
201 | <groupId>org.apache.tomcat</groupId>
|
---|
202 | <artifactId>tomcat-websocket</artifactId>
|
---|
203 | <version>${tomcat.version}</version>
|
---|
204 | <scope>test</scope>
|
---|
205 | </dependency>
|
---|
206 |
|
---|
207 | <dependency>
|
---|
208 | <groupId>junit</groupId>
|
---|
209 | <artifactId>junit</artifactId>
|
---|
210 | <version>4.12</version>
|
---|
211 | <scope>test</scope>
|
---|
212 | </dependency>
|
---|
213 |
|
---|
214 | <dependency>
|
---|
215 | <groupId>org.mockito</groupId>
|
---|
216 | <artifactId>mockito-all</artifactId>
|
---|
217 | <version>1.9.5</version>
|
---|
218 | <scope>test</scope>
|
---|
219 | </dependency>
|
---|
220 | <dependency>
|
---|
221 | <groupId>tudelft.utilities</groupId>
|
---|
222 | <artifactId>junit</artifactId>
|
---|
223 | <version>1.0.2</version>
|
---|
224 | <scope>test</scope>
|
---|
225 | </dependency>
|
---|
226 |
|
---|
227 | </dependencies>
|
---|
228 |
|
---|
229 |
|
---|
230 | <build>
|
---|
231 | <!-- Don't specify finalName as the war number would mismatch the pom version -->
|
---|
232 |
|
---|
233 | <resources>
|
---|
234 | <resource>
|
---|
235 | <directory>src/main/webapp/partiesrepo</directory>
|
---|
236 | </resource>
|
---|
237 | </resources>
|
---|
238 |
|
---|
239 |
|
---|
240 | <plugins>
|
---|
241 | <!-- Copy the partiesrepo for testing purposes, otherwise the server can't
|
---|
242 | find the repo -->
|
---|
243 | <plugin>
|
---|
244 | <artifactId>maven-resources-plugin</artifactId>
|
---|
245 | <version>3.1.0</version>
|
---|
246 | <executions>
|
---|
247 | <execution>
|
---|
248 | <id>copy-resources</id>
|
---|
249 | <phase>validate</phase>
|
---|
250 | <goals>
|
---|
251 | <goal>copy-resources</goal>
|
---|
252 | </goals>
|
---|
253 | <configuration>
|
---|
254 | <outputDirectory>${basedir}/target/partiesrepo</outputDirectory>
|
---|
255 | <resources>
|
---|
256 | <resource>
|
---|
257 | <directory>src/main/webapp/partiesrepo</directory>
|
---|
258 | </resource>
|
---|
259 | </resources>
|
---|
260 | </configuration>
|
---|
261 | </execution>
|
---|
262 | </executions>
|
---|
263 | </plugin>
|
---|
264 | <plugin>
|
---|
265 | <artifactId>maven-war-plugin</artifactId>
|
---|
266 | <version>3.2.3</version>
|
---|
267 | <configuration>
|
---|
268 | <attachClasses>true</attachClasses>
|
---|
269 | </configuration>
|
---|
270 | </plugin>
|
---|
271 |
|
---|
272 | <plugin>
|
---|
273 | <groupId>org.apache.maven.plugins</groupId>
|
---|
274 | <artifactId>maven-enforcer-plugin</artifactId>
|
---|
275 | <version>3.0.0-M2</version>
|
---|
276 | <executions>
|
---|
277 | <execution>
|
---|
278 | <id>enforce</id>
|
---|
279 | <configuration>
|
---|
280 | <rules>
|
---|
281 | <dependencyConvergence />
|
---|
282 | </rules>
|
---|
283 | </configuration>
|
---|
284 | <goals>
|
---|
285 | <goal>enforce</goal>
|
---|
286 | </goals>
|
---|
287 | </execution>
|
---|
288 | </executions>
|
---|
289 | </plugin>
|
---|
290 | <plugin>
|
---|
291 | <groupId>org.apache.maven.plugins</groupId>
|
---|
292 | <artifactId>maven-source-plugin</artifactId>
|
---|
293 | <executions>
|
---|
294 | <execution>
|
---|
295 | <id>attach-sources</id>
|
---|
296 | <goals>
|
---|
297 | <goal>jar</goal>
|
---|
298 | </goals>
|
---|
299 | </execution>
|
---|
300 | </executions>
|
---|
301 | </plugin>
|
---|
302 |
|
---|
303 | <plugin>
|
---|
304 | <groupId>org.apache.maven.plugins</groupId>
|
---|
305 | <artifactId>maven-dependency-plugin</artifactId>
|
---|
306 | <!-- leave out version to help Eclipse workaround -->
|
---|
307 | <executions>
|
---|
308 | <execution>
|
---|
309 | <id>resource-dependencies</id>
|
---|
310 | <phase>process-test-resources</phase>
|
---|
311 | <goals>
|
---|
312 | <goal>copy-dependencies</goal>
|
---|
313 | </goals>
|
---|
314 | </execution>
|
---|
315 | </executions>
|
---|
316 | <configuration>
|
---|
317 | <outputDirectory>${project.build.directory}/jars</outputDirectory>
|
---|
318 | <overWriteReleases>false</overWriteReleases>
|
---|
319 | <overWriteSnapshots>true</overWriteSnapshots>
|
---|
320 | </configuration>
|
---|
321 | </plugin>
|
---|
322 |
|
---|
323 | <plugin>
|
---|
324 | <groupId>org.apache.maven.plugins</groupId>
|
---|
325 | <artifactId>maven-compiler-plugin</artifactId>
|
---|
326 | <version>3.8.0</version>
|
---|
327 | <configuration>
|
---|
328 | <source>1.8</source>
|
---|
329 | <target>1.8</target>
|
---|
330 | </configuration>
|
---|
331 | </plugin>
|
---|
332 |
|
---|
333 | <plugin>
|
---|
334 | <groupId>org.apache.maven.plugins</groupId>
|
---|
335 | <artifactId>maven-javadoc-plugin</artifactId>
|
---|
336 | <version>2.10.1</version>
|
---|
337 | <executions>
|
---|
338 | <execution>
|
---|
339 | <id>attach-javadocs</id>
|
---|
340 | <goals>
|
---|
341 | <goal>jar</goal>
|
---|
342 | </goals>
|
---|
343 | <configuration>
|
---|
344 | <additionalparam>${javadoc.opts}</additionalparam>
|
---|
345 | <additionalparam>-Xdoclint:none</additionalparam>
|
---|
346 | </configuration>
|
---|
347 | </execution>
|
---|
348 | </executions>
|
---|
349 | </plugin>
|
---|
350 |
|
---|
351 | <plugin>
|
---|
352 | <groupId>org.jfrog.buildinfo</groupId>
|
---|
353 | <artifactId>artifactory-maven-plugin</artifactId>
|
---|
354 | <version>2.6.1</version>
|
---|
355 | <executions>
|
---|
356 | <execution>
|
---|
357 | <id>build-info</id>
|
---|
358 | <goals>
|
---|
359 | <goal>publish</goal>
|
---|
360 | </goals>
|
---|
361 | <configuration>
|
---|
362 | <publisher>
|
---|
363 | <contextUrl>http://artifactory.ewi.tudelft.nl/artifactory</contextUrl>
|
---|
364 | <repoKey>libs-release</repoKey>
|
---|
365 | <username>wouter</username>
|
---|
366 | <password>${passwd}</password>
|
---|
367 | </publisher>
|
---|
368 | </configuration>
|
---|
369 | </execution>
|
---|
370 | </executions>
|
---|
371 | </plugin>
|
---|
372 |
|
---|
373 | <plugin>
|
---|
374 | <groupId>org.apache.maven.plugins</groupId>
|
---|
375 | <artifactId>maven-assembly-plugin</artifactId>
|
---|
376 | <!-- leave out version to help Eclipse workaround -->
|
---|
377 | <configuration>
|
---|
378 | <!-- get all project dependencies -->
|
---|
379 | <descriptorRefs>
|
---|
380 | <descriptorRef>jar-with-dependencies</descriptorRef>
|
---|
381 | </descriptorRefs>
|
---|
382 | <archive>
|
---|
383 | <manifest>
|
---|
384 | <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
---|
385 | <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
---|
386 | </manifest>
|
---|
387 | </archive>
|
---|
388 | </configuration>
|
---|
389 | <executions>
|
---|
390 | <execution>
|
---|
391 | <id>make-assembly</id>
|
---|
392 | <!-- bind to the packaging phase -->
|
---|
393 | <phase>package</phase>
|
---|
394 | <goals>
|
---|
395 | <goal>single</goal>
|
---|
396 | </goals>
|
---|
397 | </execution>
|
---|
398 | </executions>
|
---|
399 | </plugin>
|
---|
400 |
|
---|
401 |
|
---|
402 | <!-- Special plugin for the tomcat embedded stuff? -->
|
---|
403 | <plugin>
|
---|
404 | <groupId>org.codehaus.mojo</groupId>
|
---|
405 | <artifactId>appassembler-maven-plugin</artifactId>
|
---|
406 | <version>2.0.0</version>
|
---|
407 | <configuration>
|
---|
408 | <assembleDirectory>target</assembleDirectory>
|
---|
409 | <programs>
|
---|
410 | <program>
|
---|
411 | <mainClass>launch.Main</mainClass>
|
---|
412 | <name>webapp</name>
|
---|
413 | </program>
|
---|
414 | </programs>
|
---|
415 | </configuration>
|
---|
416 | <executions>
|
---|
417 | <execution>
|
---|
418 | <phase>package</phase>
|
---|
419 | <goals>
|
---|
420 | <goal>assemble</goal>
|
---|
421 | </goals>
|
---|
422 | </execution>
|
---|
423 | </executions>
|
---|
424 | </plugin>
|
---|
425 |
|
---|
426 | </plugins>
|
---|
427 |
|
---|
428 | <pluginManagement>
|
---|
429 | <plugins>
|
---|
430 | <plugin>
|
---|
431 | <groupId>org.eclipse.m2e</groupId>
|
---|
432 | <artifactId>lifecycle-mapping</artifactId>
|
---|
433 | <version>1.0.0</version>
|
---|
434 | <configuration>
|
---|
435 | <lifecycleMappingMetadata>
|
---|
436 | <pluginExecutions>
|
---|
437 | <pluginExecution>
|
---|
438 | <pluginExecutionFilter>
|
---|
439 | <groupId>org.jfrog.buildinfo</groupId>
|
---|
440 | <artifactId>artifactory-maven-plugin</artifactId>
|
---|
441 | <versionRange>[1.0.0,)</versionRange>
|
---|
442 | <goals>
|
---|
443 | <goal>publish</goal>
|
---|
444 | </goals>
|
---|
445 | </pluginExecutionFilter>
|
---|
446 | <action>
|
---|
447 | <ignore />
|
---|
448 | </action>
|
---|
449 | </pluginExecution>
|
---|
450 | </pluginExecutions>
|
---|
451 | </lifecycleMappingMetadata>
|
---|
452 | </configuration>
|
---|
453 | </plugin>
|
---|
454 | </plugins>
|
---|
455 | </pluginManagement>
|
---|
456 |
|
---|
457 |
|
---|
458 | </build>
|
---|
459 | </project>
|
---|