source: pom.xml@ 24

Last change on this file since 24 was 24, checked in by bart, 4 years ago

minor fixes to improve extendability

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