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