source: pom.xml@ 29

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

Major update. Changes in json serialization, maven dependencies and BOA. Fix in stand-alone runner.

File size: 10.2 KB
RevLine 
[29]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.0</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.0.53</tomcat.version>
22 <geniusweb.version>2.0.0</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>junit</groupId>
136 <artifactId>junit</artifactId>
137 <version>4.12</version>
138 <scope>test</scope>
139 </dependency>
140
141 <dependency>
142 <groupId>javax.servlet</groupId>
143 <artifactId>javax.servlet-api</artifactId>
144 <version>3.1.0</version>
145 <scope>provided</scope>
146 </dependency>
147
148 </dependencies>
149
150 <build>
151 <!-- Don't specify finalName as the war number would mismatch the pom version -->
152
153
154 <resources>
155 <resource>
156 <directory>src/main/webapp/log</directory>
157 </resource>
158 </resources>
159
160
161 <plugins>
162 <!-- Copy the log dir to have good place for logging -->
163 <plugin>
164 <artifactId>maven-resources-plugin</artifactId>
165 <version>3.1.0</version>
166 <executions>
167 <execution>
168 <id>copy-resources</id>
169 <phase>validate</phase>
170 <goals>
171 <goal>copy-resources</goal>
172 </goals>
173 <configuration>
174 <outputDirectory>${basedir}/target/log</outputDirectory>
175 <resources>
176 <resource>
177 <directory>src/main/webapp/log</directory>
178 </resource>
179 </resources>
180 </configuration>
181 </execution>
182 </executions>
183 </plugin>
184 <plugin>
185 <artifactId>maven-war-plugin</artifactId>
186 <version>3.2.3</version>
187 <configuration>
188 <attachClasses>true</attachClasses>
189 </configuration>
190 </plugin>
191 <plugin>
192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-enforcer-plugin</artifactId>
194 <version>3.0.0-M2</version>
195 <executions>
196 <execution>
197 <id>enforce</id>
198 <configuration>
199 <rules>
200 <dependencyConvergence />
201 </rules>
202 </configuration>
203 <goals>
204 <goal>enforce</goal>
205 </goals>
206 </execution>
207 </executions>
208 </plugin>
209 <plugin>
210 <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-source-plugin</artifactId>
212 <version>3.2.1</version>
213 <executions>
214 <execution>
215 <id>attach-sources</id>
216 <goals>
217 <goal>jar</goal>
218 </goals>
219 </execution>
220 </executions>
221 </plugin>
222
223 <!-- Includes version nr in war to enable getImplementationVersion() -->
224 <plugin>
225 <artifactId>maven-war-plugin</artifactId>
226 <version>2.2</version>
227 <configuration>
228 <archive>
229 <manifest>
230 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
231 </manifest>
232 </archive>
233 </configuration>
234 </plugin>
235
236 <plugin>
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-dependency-plugin</artifactId>
239 <!-- leave out version to help Eclipse workaround -->
240 <executions>
241 <execution>
242 <id>resource-dependencies</id>
243 <phase>process-test-resources</phase>
244 <goals>
245 <goal>copy-dependencies</goal>
246 </goals>
247 </execution>
248 </executions>
249 <configuration>
250 <outputDirectory>${project.build.directory}/jars</outputDirectory>
251 <overWriteReleases>false</overWriteReleases>
252 <overWriteSnapshots>true</overWriteSnapshots>
253 </configuration>
254 </plugin>
255
256 <plugin>
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-compiler-plugin</artifactId>
259 <version>3.8.0</version>
260 <configuration>
261 <source>1.8</source>
262 <target>1.8</target>
263 </configuration>
264 </plugin>
265
266 <plugin>
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-javadoc-plugin</artifactId>
269 <version>2.10.1</version>
270 <executions>
271 <execution>
272 <id>attach-javadocs</id>
273 <goals>
274 <goal>jar</goal>
275 </goals>
276 <configuration>
277 <additionalparam>${javadoc.opts}</additionalparam>
278 <additionalparam>-Xdoclint:none</additionalparam>
279 </configuration>
280 </execution>
281 </executions>
282 </plugin>
283
284 <plugin>
285 <groupId>org.jfrog.buildinfo</groupId>
286 <artifactId>artifactory-maven-plugin</artifactId>
287 <version>3.2.3</version>
288 <executions>
289 <execution>
290 <id>build-info</id>
291 <goals>
292 <goal>publish</goal>
293 </goals>
294 <configuration>
295 <publisher>
296 <contextUrl>http://artifactory.ewi.tudelft.nl/artifactory</contextUrl>
297 <repoKey>libs-release</repoKey>
298 <username>wouter</username>
299 <password>${passwd}</password>
300 </publisher>
301 </configuration>
302 </execution>
303 </executions>
304 </plugin>
305
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-assembly-plugin</artifactId>
309 <version>2.4.1</version>
310 <configuration>
311 <!-- get all project dependencies -->
312 <descriptorRefs>
313 <descriptorRef>jar-with-dependencies</descriptorRef>
314 </descriptorRefs>
315 <archive>
316 <manifest>
317 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
318 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
319 </manifest>
320 </archive>
321 </configuration>
322 <executions>
323 <execution>
324 <id>make-assembly</id>
325 <!-- bind to the packaging phase -->
326 <phase>package</phase>
327 <goals>
328 <goal>single</goal>
329 </goals>
330 </execution>
331 </executions>
332 </plugin>
333
334
335 <!-- Special plugin for the tomcat embedded stuff? -->
336 <plugin>
337 <groupId>org.codehaus.mojo</groupId>
338 <artifactId>appassembler-maven-plugin</artifactId>
339 <version>2.0.0</version>
340 <configuration>
341 <assembleDirectory>target</assembleDirectory>
342 <programs>
343 <program>
344 <mainClass>launch.Main</mainClass>
345 <name>webapp</name>
346 </program>
347 </programs>
348 </configuration>
349 <executions>
350 <execution>
351 <phase>package</phase>
352 <goals>
353 <goal>assemble</goal>
354 </goals>
355 </execution>
356 </executions>
357 </plugin>
358
359 </plugins>
360
361 <pluginManagement>
362 <plugins>
363 <plugin>
364 <groupId>org.eclipse.m2e</groupId>
365 <artifactId>lifecycle-mapping</artifactId>
366 <version>1.0.0</version>
367 <configuration>
368 <lifecycleMappingMetadata>
369 <pluginExecutions>
370 <pluginExecution>
371 <pluginExecutionFilter>
372 <groupId>org.jfrog.buildinfo</groupId>
373 <artifactId>artifactory-maven-plugin</artifactId>
374 <versionRange>[1.0.0,)</versionRange>
375 <goals>
376 <goal>publish</goal>
377 </goals>
378 </pluginExecutionFilter>
379 <action>
380 <ignore />
381 </action>
382 </pluginExecution>
383 </pluginExecutions>
384 </lifecycleMappingMetadata>
385 </configuration>
386 </plugin>
387 </plugins>
388 </pluginManagement>
389 </build>
390</project>
Note: See TracBrowser for help on using the repository browser.