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