forked from NarrativeCompany/narrative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
339 lines (332 loc) · 17.6 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
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.narrative</groupId>
<artifactId>narrative-platform</artifactId>
<packaging>pom</packaging>
<version>1.5.4</version>
<name>Narrative Platform</name>
<description>Narrative Platform parent pom</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version>
<relativePath/>
</parent>
<properties>
<spring.boot.version>2.0.4.RELEASE</spring.boot.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<tomcat.version>8.5.31</tomcat.version>
<sonar.exclusions>**/*.js</sonar.exclusions>
<!-- Library versions for dependencies not in the Spring Boot BOM -->
<mapstruct.version>1.3.0.Beta1</mapstruct.version>
<lombok.version>1.18.6</lombok.version>
<spock.version>1.1-groovy-2.4</spock.version>
<jmockit.version>1.42</jmockit.version>
<powermock.version>1.7.1</powermock.version>
<junit.jupiter.version>5.3.1</junit.jupiter.version>
<junit.surefire-provider.version>1.3.1</junit.surefire-provider.version>
<surefire.junit47.version>2.22.0</surefire.junit47.version>
<spring.session.version>2.0.5.RELEASE</spring.session.version>
<jool.version>0.9.13</jool.version>
<!-- Keep Redisson version and Netty version in sync -->
<redisson.version>3.10.0-3</redisson.version>
<!-- bl: 4.1.27.Final is the netty version that netty-socketio uses, so this has to stay in sync with that. -->
<netty.version>4.1.27.Final</netty.version>
<findbugs.version>3.0.1</findbugs.version>
</properties>
<modules>
<module>core</module>
<module>shared</module>
<module>reputation</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.4.0.905</version>
</plugin>
<!-- Mandatory plugins for using Spock -->
<plugin>
<!-- The gmavenplus plugin is used to compile Groovy code. To learn more about this plugin,
visit https://github.com/groovy/GMavenPlus/wiki -->
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<goals>
<goal>addTestSources</goal>
<goal>compileTests</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<fork>true</fork>
<!-- bw: Necessary for meminitial/maxmem to take effect -->
<meminitial>256m</meminitial>
<!-- Crank up max heap to accomodate large spikes during Lombok AST processing -->
<maxmem>2048m</maxmem>
<source>1.8</source>
<target>1.8</target>
<compilerArguments>
<Xmaxerrs>2500</Xmaxerrs>
</compilerArguments>
<!-- bl: maven detects changes every time you run package instead of supporting incremental compiles.
it's counter-intuitive, but you have to set userIncrementalCompilation to false in order for
incremental compiles to work. refer: https://issues.apache.org/jira/browse/MCOMPILER-209 -->
<useIncrementalCompilation>false</useIncrementalCompilation>
<!-- Since we have multiple annotation processors, define order of init/processing here.
### For some reason, Mapstruct must occur *before* Lombok which is counter-intuitive.
### Please do not change annotation processor order unless you know what you are doing. -->
<annotationProcessorPaths>
<path>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate.version}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${mapstruct.version}</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<!-- Enable generation of custom configuration property metadata so Intellij can resolve custom properties -->
<path>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring.boot.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<!-- Copy the spring-configuration-metadata.json to the location expected by IntelliJ -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>copy-spring-configuration-metadata</id>
<phase>compile</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes/META-INF</outputDirectory>
<resources>
<resource>
<directory>exploded/WEB-INF/classes/META-INF</directory>
<includes>
<include>spring-configuration-metadata.json</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo.jspc</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>2.0-alpha-3-groupee-2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<trimSpaces>true</trimSpaces>
<enablePooling>false</enablePooling>
<!-- bl: the default package name is "jsp" but we want to customize it so that the package name
matches up with the package name used by our InternalJspRunner so that it doesn't have to
compile JSPs, as well. we'll be able to use pre-compiled JSPs for email JSPs, -->
<packageName>org.apache.jsp</packageName>
</configuration>
<executions>
<execution>
<id>jspc</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo.jspc</groupId>
<artifactId>jspc-compiler-tomcat8</artifactId>
<version>2.0-alpha-3-groupee-2</version>
</dependency>
<dependency>
<groupId>commons-el</groupId>
<artifactId>commons-el</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<!-- bl: we need this to compile with tomcat-jasper, not tomcat-embed-jasper.
tomcat-embed-jasper apparently uses a version of jasper that is incompatible
with the actual JSP runtime. don't ask me how or why that makes sense. -->
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jasper</artifactId>
<version>${tomcat.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>com.groupee</groupId>
<artifactId>tagPlugins</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.6.1</version>
<!-- bw: A newer version is available -->
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<webXml>${project.basedir}/target/jspweb.xml</webXml>
<webappDirectory>exploded</webappDirectory>
<archive>
<manifestEntries>
<!-- This is the version of the build. -->
<Implementation-Version>${project.version}${env.BUILD_SUFFIX}</Implementation-Version>
<!-- This is the build number passed in from Jenkins. This should also correspond to a Docker image ID. -->
<Implementation-JenkinsBuild>${env.JENKINS_BUILD_ID}</Implementation-JenkinsBuild>
<!-- This is the git branch the build is from. -->
<Implementation-Branch>${env.GIT_BRANCH}</Implementation-Branch>
<!-- This is the Git Commit ID (full 40-character SHA-1). -->
<Implementation-Revision>${env.GIT_SHA}</Implementation-Revision>
<!-- This is the date/time the build was made, in an epoch second value -->
<Implementation-Date>${env.BUILD_DATE}</Implementation-Date>
</manifestEntries>
</archive>
<webResources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<targetPath>/WEB-INF/classes</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>tagPlugins</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<!-- bl: upgraded bamboo to use Maven 3, which caused this plugin to stop working. trying to change this from fullName to classifier to see if that works. -->
<classifier>tagPlugins</classifier>
<includes>
<include>**/org/narrative/common/util/tags/plugins/*.class</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/exploded</directory>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<!-- bl: this is an attempt to fix broken builds due to error:
Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
refer: https://stackoverflow.com/a/50661649 -->
<useSystemClassLoader>false</useSystemClassLoader>
<useFile>false</useFile>
<trimStackTrace>false</trimStackTrace>
<!-- This is needed to make JMockit play nice with Spock since there is no init hook for JMockit -->
<argLine>
-javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
</argLine>
<includes>
<include>**/*Test.java</include>
<include>**/*Spec.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M2</version>
<executions>
<execution>
<id>enforce</id>
<configuration>
<rules>
<dependencyConvergence/>
</rules>
</configuration>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>