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