pom.xml 22.9 KB
Newer Older
1
2
3
<?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"
4
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
6
7
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.bonitasoft.distrib</groupId>
8
        <artifactId>bonita-distrib</artifactId>
9
        <version>7.12.0-SNAPSHOT</version>
10
    </parent>
11
    <artifactId>bonita-war</artifactId>
12
    <packaging>war</packaging>
13

14
15
16
17
18
19
20
21
22
23
24
25
26
27
    <properties>
        <deploy_plugin_skip>true</deploy_plugin_skip>
        <folder_frontend_web_resources>${project.build.directory}/bonita-frontend</folder_frontend_web_resources>
        <folder_frontend_web_config_files>${project.build.directory}/bonita-frontend-config</folder_frontend_web_config_files>
        <!-- Required to filter the web.xml file -->
        <enable.engine.http.api.start />
        <enable.engine.http.api.end />
        <enable.engine.listener.start />
        <enable.engine.listener.end />
        <!-- Required to filter the VERSION file -->
        <build.year>${maven.build.timestamp}</build.year>
        <maven.build.timestamp.format>yyyy</maven.build.timestamp.format>
    </properties>

28
    <dependencies>
29
        <!-- jboss-logging and activation are already present in /lib/bonita (dependency of tomcat-jta) -->
30
31
32
33
34
35
        <!-- TODO review dependency order between console and engine as this could change dependencies resolution -->
        <dependency>
            <groupId>org.bonitasoft.console</groupId>
            <artifactId>console-server</artifactId>
            <version>${bonita.web.version}</version>
            <type>jar</type>
36
37
38
39
40
            <exclusions>
                <exclusion>
                    <artifactId>activation</artifactId>
                    <groupId>javax.activation</groupId>
                </exclusion>
41
42
43
44
45
46
47
48
49
                <exclusion>
                    <!-- replaced by javax.xml.stream:stax-api -->
                    <artifactId>stax-api</artifactId>
                    <groupId>stax</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>jakarta.activation-api</artifactId>
                    <groupId>jakarta.activation</groupId>
                </exclusion>
50
            </exclusions>
51
52
        </dependency>

53
54
55
56
        <dependency>
            <groupId>org.bonitasoft.engine</groupId>
            <artifactId>bonita-server</artifactId>
            <version>${bonita.engine.version}</version>
57
58
59
60
61
62
63
64
65
            <exclusions>
                <exclusion>
                    <artifactId>jboss-logging</artifactId>
                    <groupId>org.jboss.logging</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>activation</artifactId>
                    <groupId>javax.activation</groupId>
                </exclusion>
66
67
68
69
                <exclusion>
                    <artifactId>jta</artifactId>
                    <groupId>javax.transaction</groupId>
                </exclusion>
70
            </exclusions>
71
72
        </dependency>
    </dependencies>
73

74
75
76
77
78
79
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
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
                    <archive>
                        <addMavenDescriptor>false</addMavenDescriptor>
                    </archive>
                    <!-- Avoid error because the slf4j log impl is only available in the Tomcat 'root' classloader
                    java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/catalina/loader/ParallelWebappClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of java/net/URLClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature
                        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:418)
                        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
                        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
                    -->
                    <packagingExcludes>WEB-INF/lib/slf4j-api-*.jar</packagingExcludes>

                    <webResources>
                        <resource>
                            <filtering>true</filtering>
                            <targetPath/>
                            <directory>${folder_frontend_web_config_files}</directory>
                            <includes>
                                <include>WEB-INF/web.xml</include>
                                <include>VERSION</include>
                            </includes>
                        </resource>
                        <resource>
                            <filtering>false</filtering>
                            <targetPath/>
                            <directory>${folder_frontend_web_resources}</directory>
                            <excludes>
                                <exclude>META-INF/**</exclude>
                            </excludes>
                        </resource>
                    </webResources>
110
111
112
113
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
114
                <artifactId>maven-dependency-plugin</artifactId>
115
116
                <executions>
                    <execution>
117
118
                        <id>get-bonita-frontend-resources</id>
                        <phase>prepare-package</phase>
119
                        <goals>
120
                            <goal>unpack</goal>
121
122
                        </goals>
                        <configuration>
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
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.bonitasoft.console</groupId>
                                    <artifactId>console-client</artifactId>
                                    <version>${bonita.web.version}</version>
                                    <type>war</type>
                                    <overWrite>false</overWrite>
                                    <outputDirectory>${folder_frontend_web_resources}</outputDirectory>
                                    <excludes>WEB-INF/web.xml,WEB-INF/lib/**</excludes>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.web</groupId>
                                    <artifactId>bonita-portal-js</artifactId>
                                    <version>${bonita.web.version}</version>
                                    <classifier>app</classifier>
                                    <type>zip</type>
                                    <overWrite>false</overWrite>
                                    <outputDirectory>${folder_frontend_web_resources}</outputDirectory>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.console</groupId>
                                    <artifactId>console-server</artifactId>
                                    <version>${bonita.web.version}</version>
                                    <type>war</type>
                                    <overWrite>false</overWrite>
                                    <outputDirectory>${folder_frontend_web_resources}</outputDirectory>
                                    <excludes>WEB-INF/web.xml,WEB-INF/lib/**</excludes>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.console</groupId>
                                    <artifactId>i18n</artifactId>
                                    <version>${bonita.web.version}</version>
                                    <type>jar</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${folder_frontend_web_resources}/WEB-INF/classes/i18n</outputDirectory>
                                </artifactItem>
                            </artifactItems>
160
161
162
                        </configuration>
                    </execution>
                    <execution>
163
164
                        <id>get-bonita-frontend-config-files</id>
                        <phase>prepare-package</phase>
165
166
167
168
169
170
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
171
172
173
174
175
                                    <groupId>org.bonitasoft.console</groupId>
                                    <artifactId>console-server</artifactId>
                                    <version>${bonita.web.version}</version>
                                    <type>jar</type>
                                    <classifier>sources</classifier>
176
                                    <overWrite>true</overWrite>
177
                                    <outputDirectory>${folder_frontend_web_config_files}</outputDirectory>
178
179
180
181
182
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                    <execution>
183
184
                        <id>get-bonita-la-resources</id>
                        <phase>prepare-package</phase>
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.bonitasoft.distrib</groupId>
                                    <artifactId>looknfeel</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>less</classifier>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>bonita-portal-theme.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.distrib</groupId>
                                    <artifactId>looknfeel</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>css</classifier>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>bonita-portal-theme-css.zip</destFileName>
                                </artifactItem>
208
                                <!-- Custom pages -->
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
                                <artifactItem>
                                    <groupId>org.bonitasoft.distrib</groupId>
                                    <artifactId>groovy-page-example</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>bonita-groovy-page-example.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.distrib</groupId>
                                    <artifactId>html-page-example</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>bonita-html-page-example.zip</destFileName>
                                </artifactItem>
225
226
227
228
229
230
231
232
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>user-tasks-list</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>bonita-task-list-page.zip</destFileName>
                                </artifactItem>
233
                                <artifactItem>
234
                                    <groupId>org.bonitasoft.distrib</groupId>
235
                                    <artifactId>task-autogenerated-form</artifactId>
236
237
238
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
239
                                    <destFileName>task-autogenerated-form.zip</destFileName>
240
241
                                </artifactItem>
                                <artifactItem>
242
                                    <groupId>org.bonitasoft.distrib</groupId>
243
244
245
246
247
                                    <artifactId>process-autogenerated-form</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>process-autogenerated-form.zip</destFileName>
248
                                </artifactItem>
249
                                <artifactItem>
250
251
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>layout-living-application</artifactId>
252
253
254
255
256
257
258
259
260
261
262
263
264
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>bonita-default-layout.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.distrib</groupId>
                                    <artifactId>bootstrap-default-theme</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>bonita-bootstrap-default-theme.zip</destFileName>
                                </artifactItem>
265
266
                                <artifactItem>
                                    <groupId>org.bonitasoft.distrib</groupId>
267
                                    <artifactId>bonita-theme</artifactId>
268
269
270
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
271
                                    <destFileName>bonita-theme.zip</destFileName>
272
                                </artifactItem>
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
                                <artifactItem>
                                    <groupId>org.bonitasoft.distrib</groupId>
                                    <artifactId>api-extension-example</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>api-extension-example.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.distrib</groupId>
                                    <artifactId>api-extension-viewer</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>api-extension-viewer.zip</destFileName>
                                </artifactItem>
289
290
291
292
293
294
295
296
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>page-process-list</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>page-process-list.zip</destFileName>
                                </artifactItem>
297
298
299
300
301
302
303
304
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>page-tenant-status</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>page-tenant-status.zip</destFileName>
                                </artifactItem>
305
306
307
308
309
310
311
312
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>form-case-overview</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>case-autogenerated-overview.zip</destFileName>
                                </artifactItem>
313
314
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
315
                                    <artifactId>page-admin-install-export-organization</artifactId>
316
317
318
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
319
                                    <destFileName>page-admin-install-export-organization.zip</destFileName>
320
                                </artifactItem>
321
322
323
324
325
326
327
328
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>layout-bonita</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>layout-bonita.zip</destFileName>
                                </artifactItem>
329
330
331
332
333
334
335
336
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>page-application-home</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>bonita-home-page.zip</destFileName>
                                </artifactItem>
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
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>page-admin-application-details</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>page-admin-application-details.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>page-admin-application-list</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>page-admin-application-list.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>page-admin-bdm</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>page-admin-bdm.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>page-admin-case-list</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>page-admin-case-list.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>page-admin-process-details</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>page-admin-process-details.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.bonitasoft.web.pages</groupId>
                                    <artifactId>page-admin-user-details</artifactId>
                                    <version>${project.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <destFileName>page-admin-user-details.zip</destFileName>
                                </artifactItem>
385
                            </artifactItems>
386
                            <outputDirectory>${folder_frontend_web_resources}/WEB-INF/classes</outputDirectory>
387
388
389
390
391
392
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
393
394


395
</project>