forked from camunda/camunda-bpm-platform
/
pom.xml
329 lines (285 loc) · 13.7 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
<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>org.camunda.bpm.wildfly</groupId>
<artifactId>camunda-wildfly</artifactId>
<version>7.15.0-SNAPSHOT</version>
</parent>
<artifactId>camunda-wildfly-modules</artifactId>
<packaging>jar</packaging>
<name>Camunda Platform - Wildfly Modules</name>
<properties>
<org.jboss.shrinkwrap.resolver.version>1.0.0-beta-5</org.jboss.shrinkwrap.resolver.version>
<version.jackson>2.12.1</version.jackson>
<version.jackson.databind>${version.jackson}</version.jackson.databind>
<version.jackson.annotations>${version.jackson}</version.jackson.annotations>
<!-- generate a bom of compile time dependencies for the license book.
Note: Every compile time dependency will end up in the license book. Please
declare only dependencies that are actually needed -->
<skip-third-party-bom>false</skip-third-party-bom>
</properties>
<dependencies>
<dependency>
<groupId>org.camunda.bpm.wildfly</groupId>
<artifactId>camunda-wildfly-subsystem</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</exclusion>
<exclusion>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.camunda.bpm.identity</groupId>
<artifactId>camunda-identity-ldap</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-json-jackson</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-xml-dom</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-connect</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-http-client</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-soap-http-client</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${version.jackson}</version>
</dependency>
<!-- script engine dependencies -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
</dependency>
<!-- template engine dependencies -->
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.template-engines</groupId>
<artifactId>camunda-template-engines-freemarker</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<dependencyfilesets scopes="compile" />
<mkdir dir="target/modules" />
<!-- copy all files -->
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/main/\3" handledirsep="yes" />
</copy>
<delete dir="target/modules/org/camunda/bpm" />
<!-- copy all files again, but this only matches fox files and this treatment makes is maven 2/3 compatible => timestamped snapshot -->
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<mapper>
<chainedmapper>
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/main/\3" handledirsep="yes" />
<regexpmapper from="^(org.camunda.bpm.*)/((camunda-[A-Za-z-]*)[0-9\.]*).*.jar$$" to="\1/\3${project.version}.jar" handledirsep="yes" />
</chainedmapper>
</mapper>
</copy>
<delete dir="target/modules/org/camunda/spin" />
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<mapper>
<chainedmapper>
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/main/\3" handledirsep="yes" />
<regexpmapper from="^(org.camunda.spin.*)/((camunda-[A-Za-z-]*)[0-9\.]*).*.jar$$" to="\1/\3${version.camunda.spin}.jar" handledirsep="yes" />
</chainedmapper>
</mapper>
</copy>
<delete dir="target/modules/org/camunda/connect" />
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<mapper>
<chainedmapper>
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/main/\3" handledirsep="yes" />
<regexpmapper from="^(org.camunda.connect.*)/((camunda-[A-Za-z-]*)[0-9\.]*).*.jar$$" to="\1/\3${version.camunda.connect}.jar" handledirsep="yes" />
</chainedmapper>
</mapper>
</copy>
<delete dir="target/modules/org/camunda/commons" />
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<mapper>
<chainedmapper>
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/main/\3" handledirsep="yes" />
<mapper>
<regexpmapper from="^(org.camunda.commons.*)\/((camunda-commons-(utils|logging)-[A-Za-z-]*)[0-9\.]*).*.jar$$" to="\1/\3${version.camunda.commons}.jar" handledirsep="yes" />
<regexpmapper from="^(org.camunda.commons.*)\/((camunda-commons-typed-values-)[0-9\.]*).*.jar$$" to="\1/\3${project.version}.jar" handledirsep="yes" />
</mapper>
</chainedmapper>
</mapper>
</copy>
<delete dir="target/modules/org/camunda/template-engines" />
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<mapper>
<chainedmapper>
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/main/\3" handledirsep="yes" />
<regexpmapper from="^(org.camunda.template-engines.*)/((camunda-[A-Za-z-]*)[0-9\.]*).*.jar$$" to="\1/\3${version.camunda.template-engines}.jar" handledirsep="yes" />
</chainedmapper>
</mapper>
</copy>
<delete dir="target/modules/org/camunda/feel" />
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<mapper>
<chainedmapper>
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/main/\3" handledirsep="yes" />
<regexpmapper from="^(org.camunda.feel.feel-engine.*)/(([A-Za-z-]*)[0-9\.]*).*.jar$$" to="\1/\3${version.feel-scala}-scala-shaded.jar" handledirsep="yes" />
</chainedmapper>
</mapper>
</copy>
<!-- copy jackson dependencies to slot -->
<delete dir="target/modules/com/fasterxml/jackson" />
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<mapper>
<chainedmapper>
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/${version.jackson}/\3" handledirsep="yes" />
<regexpmapper from="^(com.fasterxml.jackson.*/.*.jar)$$" to="\1" handledirsep="yes" />
</chainedmapper>
</mapper>
</copy>
<delete dir="target/modules/com/fasterxml/jackson/core/jackson-databind" />
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<mapper>
<chainedmapper>
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/${version.jackson.databind}/\3" handledirsep="yes" />
<regexpmapper from="^(com.fasterxml.jackson.core.jackson-databind/.*.jar)$$" to="\1" handledirsep="yes" />
</chainedmapper>
</mapper>
</copy>
<delete dir="target/modules/com/fasterxml/jackson/core/jackson-annotations" />
<copy todir="target/modules" flatten="false">
<fileset refid="maven.project.dependencies" />
<mapper>
<chainedmapper>
<regexpmapper from="^(.*)/([^/]+)/([^/]*)$$" to="\1/${version.jackson.annotations}/\3" handledirsep="yes" />
<regexpmapper from="^(com.fasterxml.jackson.core.jackson-annotations/.*.jar)$$" to="\1" handledirsep="yes" />
</chainedmapper>
</mapper>
</copy>
<copy todir="target/modules" flatten="false">
<fileset dir="src/main/modules" />
</copy>
<replace dir="target/modules" token="@project.version@" value="${project.version}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.camunda.commons@" value="${version.camunda.commons}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.camunda.spin@" value="${version.camunda.spin}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.camunda.connect@" value="${version.camunda.connect}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.camunda.template-engines@" value="${version.camunda.template-engines}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.freemarker@" value="${version.freemarker}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.jackson@" value="${version.jackson}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.jackson.databind@" value="${version.jackson.databind}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.jackson.annotations@" value="${version.jackson.annotations}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.h2@" value="${version.h2}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.mybatis@" value="${version.mybatis}">
<include name="**/module.xml" />
</replace>
<replace dir="target/modules" token="@version.feel-scala@" value="${version.feel-scala}">
<include name="**/module.xml" />
</replace>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>prepare-package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<outputDirectory>${project.build.directory}/modules/org/joda/time/2.1/</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<classesDirectory>${project.build.directory}/modules/</classesDirectory>
</configuration>
</plugin>
</plugins>
</build>
</project>