source: pom.xml@ 34

Last change on this file since 34 was 34, checked in by bart, 3 years ago

Reduced memory need of websockets.

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