forked from AlfrescoArchive/activiti-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
executable file
·441 lines (422 loc) · 18.3 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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
<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>
<name>Activiti Examples</name>
<description>BPM and workflow runtime Examples</description>
<groupId>org.activiti</groupId>
<artifactId>activiti-examples-root</artifactId>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<packaging>pom</packaging>
<version>7.0.0-SNAPSHOT</version>
<properties>
<!--configuration properties-->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<enforcer.failOnDuplicatedClasses>true</enforcer.failOnDuplicatedClasses>
<jdk.version>1.8</jdk.version>
<!-- JVM params for test execution -->
<argLine>-Duser.language=en</argLine>
<spring.boot.version>2.0.0.M2</spring.boot.version>
<spring.cloud.version>Finchley.BUILD-SNAPSHOT</spring.cloud.version>
<spring.cloud.stream.version>Elmhurst.BUILD-SNAPSHOT</spring.cloud.stream.version>
<!-- plugins -->
<maven-compiler-plugin.version>2.3.2</maven-compiler-plugin.version>
<maven-surefire-plugin.version>2.7.1</maven-surefire-plugin.version>
<maven-jar-plugin.version>2.3.2</maven-jar-plugin.version>
<maven-release-plugin>2.4.2</maven-release-plugin>
<maven.enforcer.plugin.version>1.4.1</maven.enforcer.plugin.version>
<jacoco.maven.plugin.version>0.7.9</jacoco.maven.plugin.version>
<extra-enforcer-rules.version>1.0-beta-6</extra-enforcer-rules.version>
<illegal-transitive-dependency-check.version>1.7.4</illegal-transitive-dependency-check.version>
<maven-failsafe-plugin.version>2.20</maven-failsafe-plugin.version>
<maven-source-plugin.version>2.1.1</maven-source-plugin.version>
</properties>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/libs-milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/libs-snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>http://repo.spring.io/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>http://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring.cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-dependencies</artifactId>
<version>${spring.cloud.stream.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-engine</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>activiti-microservice-client</module>
</modules>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<optimize>true</optimize>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<argLine>${surefireArgLine}</argLine>
<failIfNoTests>false</failIfNoTests>
<trimStackTrace>false</trimStackTrace>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<excludes>
<exclude>**/*TestCase.java</exclude>
<exclude>**/*IT.java</exclude>
</excludes>
<runOrder>alphabetical</runOrder>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<argLine>${failsafeArgLine}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.maven.plugin.version}</version>
<executions>
<!-- Unit tests configuration-->
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
<propertyName>surefireArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
</configuration>
</execution>
<!-- Integration tests configuration-->
<execution>
<id>pre-integration-test</id>
<phase>pre-integration-test</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
<propertyName>failsafeArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>post-integration-test</id>
<phase>post-integration-test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
<arguments>${arguments} -Psonatype-oss-release</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven.enforcer.plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>${extra-enforcer-rules.version}</version>
</dependency>
<dependency>
<groupId>de.is24.maven.enforcer.rules</groupId>
<artifactId>illegal-transitive-dependency-check</artifactId>
<version>${illegal-transitive-dependency-check.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>enforce-plugin-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requirePluginVersions>
</requirePluginVersions>
</rules>
</configuration>
</execution>
<execution>
<id>enforce-direct-dependencies</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<illegalTransitiveDependencyCheck
implementation="de.is24.maven.enforcer.rules.IllegalTransitiveDependencyCheck">
<regexIgnoredClasses combine.children="append">
<!-- The marshalling classes are generated by Errai during GWT compilation. These classes
usually contain references to other dependencies which are not part of the project
(transitive dependencies), which then results in the dependency check failure.
From the maintenance point of view, ignoring these generated classes seems like the
best option. -->
<!-- The enforcer is complaining about Predicate class after adding the dependency to Swagger.
However this class is never referenced directly in the project: we are adding it to ignore list
to avoid a dependency that's not necessary.-->
<regexIgnoredClass>com\.google\.common\.base\.Predicate</regexIgnoredClass>
</regexIgnoredClasses>
<suppressTypesFromJavaRuntime>true</suppressTypesFromJavaRuntime>
<useClassesFromLastBuild>true</useClassesFromLastBuild>
</illegalTransitiveDependencyCheck>
</rules>
</configuration>
</execution>
<execution>
<id>ban-blacklisted-dependencies</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes combine.children="append">
<!-- Ban blacklisted logging deps (we only use SLF4J + Logback) -->
<!-- In case of transitive dependency, exclude it and use 'org.slf4j:jcl-over-slf4j' instead -->
<exclude>commons-logging:commons-log*</exclude>
<!-- In case of transitive dependency, exclude it and use 'org.slf4j:log4j-over-slf4j' instead -->
<!--<exclude>log4j:log4j</exclude>-->
<!-- In case of transitive dependency, exclude it and use 'org.javassist:javassist' instead -->
<exclude>javassist:javassist</exclude>
</excludes>
</bannedDependencies>
</rules>
<fail>true</fail>
</configuration>
</execution>
<execution>
<id>ban-duplicated-classes</id>
<!-- Using phase=none as we don't want this execution as part of the default build. The phase
is specified in the "full" profile and thus the execution will only be activated when using that profile. -->
<phase>none</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<banDuplicateClasses>
<ignoreClasses>
<!-- Servlet API is bundled in way too many different dependencies, causing nightmares trying to
properly exclude everything. There were no real issues with this so far as mostly the APIs
are just duplicates of the exactly same sources. In ideal world, this get eventually fixed,
but it may very well not be worth the effort. -->
<ignoreClass>javax.servlet.*</ignoreClass>
<!-- Classes in javax.annotation package are just marker annotations used to aid the programmers.
These annotations do not influence the actual behavior of the code, so it's reasonable to
ignore them. Following dependencies contain these classes: 'com.google.code.findbugs:jsr305'
and 'com.google.code.findbugs:annotations'. -->
<ignoreClass>javax.annotation.*</ignoreClass>
<!-- Exactly the same case as for above 'javax.annotation.*' classes. Following dependencies contain
these classes: 'net.jcip:jcip-annotations' and 'com.google.code.findbugs:annotations'. -->
<ignoreClass>net.jcip.annotations.*</ignoreClass>
</ignoreClasses>
<dependencies>
</dependencies>
<findAllDuplicates>true</findAllDuplicates>
</banDuplicateClasses>
</rules>
<fail>${enforcer.failOnDuplicatedClasses}</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<checkstyleRules>
<module name="Checker">
<!-- Checks for whitespace. -->
<module name="FileTabCharacter">
<property name="severity" value="error"/>
<property name="eachLine" value="true"/>
</module>
<module name="TreeWalker">
<!-- Import settings: getting rid of redundant import, forbid star notation, defined order of imports. -->
<module name="RedundantImport"/>
<module name="AvoidStarImport">
<property name="excludes" value="org.junit.Assert,org.assertj.core.api.Assertions,org.mockito.Mockito"/>
<property name="allowClassImports" value="false"/>
<property name="allowStaticMemberImports" value="false"/>
</module>
<module name="CustomImportOrder">
<property name="customImportOrderRules"
value="STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE###STATIC"/>
<property name="sortImportsInGroupAlphabetically" value="true"/>
<property name="separateLineBetweenGroups" value="true"/>
</module>
<module name="NeedBraces">
<property name="tokens" value="LITERAL_IF, LITERAL_ELSE, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO"/>
</module>
<module name="EqualsHashCode"/>
</module>
</module>
</checkstyleRules>
<outputFile>${project.build.directory}/checkstyle.log</outputFile>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<includeResources>true</includeResources>
<includeTestResources>true</includeTestResources>
<consoleOutput>false</consoleOutput>
<logViolationsToConsole>${checkstyle.logViolationsToConsole}</logViolationsToConsole>
<failsOnError>false</failsOnError>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.boot.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<!-- Various information, not used by the build -->
<url>http://activiti.org</url>
<licenses>
<license>
<name>Apache v2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<organization>
<name>Alfresco</name>
<url>http://www.alfresco.com</url>
</organization>
<issueManagement>
<system>JIRA</system>
<url>https://activiti.atlassian.net/browse/ACT</url>
</issueManagement>
<ciManagement>
<system>Bamboo</system>
<url>http://bamboo.ci.codehaus.org/browse/ACT</url>
</ciManagement>
<scm>
<url>[email protected]:Activiti/activiti-examples.git</url>
<connection>scm:git:[email protected]:Activiti/activiti-examples.git</connection>
<developerConnection>scm:git:[email protected]:Activiti/activiti-examples.git</developerConnection>
</scm>
</project>