-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpom.xml
354 lines (329 loc) · 12 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.justdavis.karl.jessentials</groupId>
<artifactId>jessentials-parent</artifactId>
<version>6.0.0</version>
</parent>
<groupId>com.justdavis.karl.rpstourney</groupId>
<artifactId>rps-tourney-parent</artifactId>
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>rps-tourney-parent</name>
<description>The parent POM for the "Rock-Paper-Scissors Tourney" games.</description>
<url>https://github.com/karlmdavis/rps-tourney</url>
<organization>
<name>Karl M. Davis</name>
</organization>
<licenses>
<license>
<name>GNU Affero General Public License v3.0</name>
<url>http://spdx.org/licenses/AGPL-3.0</url>
</license>
</licenses>
<prerequisites>
<maven>3.0</maven>
</prerequisites>
<modules>
<module>rps-tourney-service-api</module>
<module>rps-tourney-service-client</module>
<module>rps-tourney-service-app</module>
<module>rps-tourney-console</module>
<module>rps-tourney-webapp</module>
<module>rps-tourney-benchmarks</module>
<module>rps-tourney-deployment</module>
</modules>
<scm>
<!-- URL format taken from http://www.sonatype.com/people/2009/09/maven-tips-and-tricks-using-github/ -->
<connection>scm:git:git@github.com:karlmdavis/rps-tourney.git</connection>
<developerConnection>scm:git:git@github.com:karlmdavis/rps-tourney.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/karlmdavis/rps-tourney</url>
</scm>
<issueManagement>
<!-- There doesn't seem to be any tooling support for this yet, but it
doesn't hurt to include it. -->
<system>GitHub Issues</system>
<url>https://github.com/karlmdavis/rps-tourney/issues</url>
</issueManagement>
<ciManagement>
<system>jenkins</system>
<url>https://justdavis.com/jenkins/job/rps-tourney/</url>
</ciManagement>
<distributionManagement>
<repository>
<id>justdavis.com-nexus</id>
<url>https://justdavis.com/nexus/repository/opensource-releases/</url>
</repository>
<snapshotRepository>
<id>justdavis.com-nexus</id>
<url>https://justdavis.com/nexus/repository/opensource-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<properties>
<!-- The path to the parent POM's `dev` directory'. Needs to be redefined in each project, so that POM
inheritance doesn't goof it up. -->
<rps.dev.path>${project.basedir}/dev</rps.dev.path>
<!-- The version of the Spring Framework artifacts to use. This property
isn't used directly here, but is rather intended for use in child projects. -->
<spring.version>${dependency.springframework.version}</spring.version>
<!-- The version of Hibernate to use. This property isn't used directly
here, but is rather intended for use in child projects. -->
<hibernate.version>5.2.12.Final</hibernate.version>
<!-- The version of the Apache CXF artifacts to use across the modules. -->
<cxf.version>3.2.1</cxf.version>
<!-- The version of the Jackson artifacts to use across the modules. -->
<jackson.version>2.9.0</jackson.version>
<!-- The version of Jetty to use in ITs across all the modules. -->
<jetty.version>9.2.24.v20180105</jetty.version>
<!-- The default number of parallel forks to use for running the ITs. Note
that "C" stands for "core", but also seems to include hyperthreaded cores. -->
<forkCount.its>0.25C</forkCount.its>
<!-- Configure Sonar such that the coverage reports for all modules' unit
and integration tests are stored in a single file in the parent project.
The JaCoCo configuration for tests also needs to point to this location. -->
<sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.justdavis.karl.rpstourney</groupId>
<artifactId>rps-tourney-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.justdavis.karl.rpstourney</groupId>
<artifactId>rps-tourney-service-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.justdavis.karl.rpstourney</groupId>
<artifactId>rps-tourney-service-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<!-- Used for all sorts of misc. things. -->
<groupId>com.justdavis.karl.jessentials</groupId>
<artifactId>jessentials-misc</artifactId>
<version>[4.0.1-SNAPSHOT,]</version>
</dependency>
<dependency>
<!-- Used to provision and manage Tomcat server instances, for integration
tests and such. -->
<groupId>com.justdavis.karl.jessentials</groupId>
<artifactId>jessentials-tomcat</artifactId>
<version>[1.0.0-SNAPSHOT,]</version>
</dependency>
<dependency>
<!-- Logback can be used as the logging target/backend for SLF4J: all
logging events would be sent to it, if this dependency is included. -->
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
</dependency>
<dependency>
<!-- Many/most of this project's modules currently use various Spring
libraries. This BOM will help prevent version conflicts between them. -->
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>${spring.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<!-- JDBC drivers for the PostgreSQL open source RDBMS. This version supports
Java 8 and above and PostgreSQL 8.2 and above. -->
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.6.0</version>
</dependency>
<dependency>
<!-- An in-memory embedded SQL DB. Used as a fast and easy-to-provision
DB for manual development testing, as well as unit/integration tests. -->
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.4.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<!-- Used to manage Git hook scripts for developers. -->
<groupId>com.rudikershaw.gitbuildhook</groupId>
<artifactId>git-build-hook-maven-plugin</artifactId>
<version>3.4.1</version>
</plugin>
<plugin>
<!-- Used to format and verify the format of source files. -->
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.30.0</version>
<configuration>
<pom>
<!-- Format Maven POMs. -->
<sortPom>
<nrOfIndentSpace>-1</nrOfIndentSpace>
</sortPom>
<trimTrailingWhitespace></trimTrailingWhitespace>
<endWithNewline></endWithNewline>
</pom>
<java>
<!-- Format Java files. -->
<includes>
<include>rps-tourney-*/**/*.java</include>
</includes>
<!-- TODO: consider adding in <cleanthat /> after JDK/plugin upgrade. -->
<eclipse>
<file>${rps.dev.path}/eclipse-formatter-java.xml</file>
</eclipse>
<trimTrailingWhitespace></trimTrailingWhitespace>
<endWithNewline></endWithNewline>
</java>
<formats>
<format>
<!-- Format JavaScript files. -->
<includes>
<include>src/main/webapp/resources/js/*.js</include>
</includes>
<eclipseWtp>
<type>JS</type>
</eclipseWtp>
<trimTrailingWhitespace></trimTrailingWhitespace>
<endWithNewline></endWithNewline>
</format>
<format>
<!-- Format XML files. -->
<includes>
<include>src/**/*.xml</include>
</includes>
<eclipseWtp>
<type>XML</type>
<files>
<file>${rps.dev.path}/eclipse-formatter-xml.prefs</file>
</files>
</eclipseWtp>
<trimTrailingWhitespace></trimTrailingWhitespace>
<endWithNewline></endWithNewline>
</format>
</formats>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<!-- Disable GPG signing of JARs as we're no longer deploying them to Maven Central (and the
signing isn't needed or working for CI). -->
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<configuration>
<!-- This setting is marked as experimental, but should prevent partial
installs in multi-module builds and releases. -->
<installAtEnd>true</installAtEnd>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<!-- This setting is marked as experimental, but should prevent partial
deploys in multi-module builds and releases. -->
<deployAtEnd>true</deployAtEnd>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<!-- Write all JaCoCo data to the same file, shared by all modules and all
tests (both unit and integration). -->
<destFile>${sonar.jacoco.reportPath}</destFile>
<append>true</append>
<!-- Used by the report goal. -->
<dataFile>${sonar.jacoco.reportPath}</dataFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<!-- Run the ITs in parallel by default, using a separate fork for
each runner. To override this, specify a value of "1" for the 'forkCount.its'
property on the command line. -->
<forkCount>${forkCount.its}</forkCount>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
<plugin>
<!-- The Cargo plugin can deploy, run, undeploy, etc. WARs. -->
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.6.6</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<!-- All modules will have the same version/lifecycle. -->
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
<executions>
<execution>
<!-- Undoing the config in the parent POM. -->
<id>default</id>
<goals>
<goal>perform</goal>
</goals>
<configuration>
<pomFileName>pom.xml</pomFileName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<!-- Used to manage Git hook scripts for developers. -->
<groupId>com.rudikershaw.gitbuildhook</groupId>
<artifactId>git-build-hook-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>install</goal>
</goals>
<configuration>
<installHooks>
<!-- Will install/update the developer's local Git hooks, as part of the
build process. -->
<pre-commit>../.github/git-hook-pre-commit.sh</pre-commit>
</installHooks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Used to format and verify the format of source files. -->
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<!-- Use this plugin to run the formatter on every build, which will
auto-format source files per the configuation above. Note that we
have a Git pre-commit hook that will verify this formatting. -->
<goal>apply</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>