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