-
Notifications
You must be signed in to change notification settings - Fork 242
/
pom.xml
361 lines (344 loc) · 12.8 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
<?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>org.kie</groupId>
<artifactId>kie-parent</artifactId>
<version>7.75.0-SNAPSHOT</version>
</parent>
<groupId>org.drools</groupId>
<artifactId>drools-wb</artifactId>
<packaging>pom</packaging>
<name>Drools Workbench</name>
<description>Drools Workbench</description>
<properties>
<checkstyle.header.template><![CDATA[
^\/\*$\n^
\* Copyright \d\d\d\d Red Hat, Inc\. and\/or its affiliates\.$\n^
\*$\n^
\* Licensed under the Apache License, Version 2\.0 \(the "License"\);$\n^
\* you may not use this file except in compliance with the License\.$\n^
\* You may obtain a copy of the License at$\n^
\*$\n^
\* http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0$\n^
\*$\n^
\* Unless required by applicable law or agreed to in writing, software$\n^
\* distributed under the License is distributed on an "AS IS" BASIS,$\n^
\* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$\n^
\* See the License for the specific language governing permissions and$\n^
\* limitations under the License\.$\n^
\*\/$
]]>
</checkstyle.header.template>
<checkstyle.failOnViolation>true</checkstyle.failOnViolation>
<checkstyle.logViolationsToConsole>true</checkstyle.logViolationsToConsole>
<jacoco.haltOnFailure>false</jacoco.haltOnFailure>
<spotbugs.failOnViolation>true</spotbugs.failOnViolation>
<!-- JaCoCo coverage data file location. Using a single file for appending in the project's root directory makes it
possible to measure cross-module test coverage -->
<!--suppress UnresolvedMavenProperty -->
<code.coverage.disabled>false</code.coverage.disabled>
<!-- The version greater than 1.0.0.GA is not compatible with GWT 2.8.x -->
<version.javax.validation>1.0.0.GA</version.javax.validation>
</properties>
<repositories>
<!-- Bootstrap repository to locate the parent pom when the parent pom has not been build locally. -->
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</snapshots>
</repository>
</repositories>
<modules>
<module>drools-wb-services</module>
<module>drools-wb-screens</module>
<module>drools-wb-webapp</module>
<module>drools-wb-extensions</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.errai.bom</groupId>
<artifactId>errai-internal-bom</artifactId>
<version>${version.org.jboss.errai}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.uberfire</groupId>
<artifactId>uberfire-bom</artifactId>
<version>${version.org.kie}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.kie.soup</groupId>
<artifactId>kie-soup-bom</artifactId>
<version>${version.org.kie}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-bom</artifactId>
<version>${version.org.kie}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-bom</artifactId>
<version>${version.org.kie}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-dmn-bom</artifactId>
<version>${version.org.kie}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.kie.uberfire</groupId>
<artifactId>kie-uberfire-extensions-bom</artifactId>
<version>${version.org.kie}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-core</artifactId>
<version>${version.org.powermock}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<!--Fix translations from Zanata -->
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<configuration>
<includes>
<include>**/*_de.properties</include>
<include>**/*_es.properties</include>
<include>**/*_fr.properties</include>
<include>**/*_ja.properties</include>
<include>**/*_pt_BR.properties</include>
<include>**/*_zh_CN.properties</include>
</includes>
<excludes>
<exclude>**/ErraiApp.properties</exclude>
</excludes>
<replacements>
<replacement>
<token>''</token>
<value>'</value>
</replacement>
<replacement>
<token>'</token>
<value>''</value>
</replacement>
</replacements>
</configuration>
</plugin>
<!-- Zanata - translations -->
<plugin>
<groupId>org.zanata</groupId>
<artifactId>zanata-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${basedir}</directory>
<includes>
<include>.errai/**</include>
<include>.niogit/**</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<!-- Temporary workaround for https://issues.jboss.org/browse/ERRAI-1101. Needs to stay here until
we find a general solution (e.g. moving all localized code to Errai TranslationService. -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>create-default-i18n-resource</id>
<phase>process-resources</phase>
<configuration>
<target>
<copy todir="${project.build.directory}/classes"
includeemptydirs="false" failonerror="false" quiet="true">
<fileset dir="${project.build.directory}/classes"/>
<globmapper from="*Constants.properties" to="*Constants_default.properties"/>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze-only</id>
<phase>verify</phase> <!-- it is anyway the default -->
<goals>
<goal>analyze-only</goal>
</goals>
<configuration>
<verbose>true</verbose>
<!-- The following lines are the original configuration of the replaced IllegalTransitiveCheck rule.
We are keeping them here because we want to recreate them as similar as possible, even if they follow a different semantics -->
<!--
<regexIgnoredClass>org\.jboss\.errai\.marshalling\.server\.impl\.ServerMarshallingFactory.*</regexIgnoredClass>
<regexIgnoredClass>io\.fabric8\.kubernetes.*</regexIgnoredClass>
<regexIgnoredClass>io\.fabric8\.openshift.*</regexIgnoredClass>
<regexIgnoredClass>com\.sun\.net\.httpserver\..+</regexIgnoredClass>
<regexIgnoredClass>javax\..+</regexIgnoredClass>
<regexIgnoredClass>org\.w3c\.dom\..+</regexIgnoredClass>
<regexIgnoredClass>org\.xml\.sax\..+</regexIgnoredClass>
-->
<ignoredUsedUndeclaredDependencies>
<!-- List of dependencies that will be ignored if they are used but undeclared. -->
<!-- For the moment being, manually add one-by-one. Next step will be to identify a pattern
equivalent to the regexp used previously -->
<dependency>
org.gwtbootstrap3:gwtbootstrap3
</dependency>
<dependency>
javax.*
</dependency>
<dependency>
org.slf4j:*
</dependency>
<dependency>
org.uberfire:uberfire-nio2-model
</dependency>
<dependency>
org.jboss.errai:*
</dependency>
<dependency>
org.apache.lucene:lucene-core
</dependency>
<dependency>
commons-io:*
</dependency>
<dependency>
org.jgroups:*
</dependency>
<dependency>
org.apache.commons:*
</dependency>
</ignoredUsedUndeclaredDependencies>
<ignoredUnusedDeclaredDependencies>
<dependency>
<!-- We have to skip'em all for two reasons:
1) some/most of them are inherited, not explicitly declared, so they should be "excluded" from inherited dependency,
2) some/most of them are required at runtime by showcases, so it is not possible to detect them at build time
Please remember primary scope of this configuration it is to (try to) avoid code breakage if inheritance tree changes.
-->
*:*
</dependency>
</ignoredUnusedDeclaredDependencies>
<failOnWarning>true</failOnWarning>
<!-- other configurations here -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>run-code-coverage</id>
<properties>
<jacoco.excludes>*Lexer</jacoco.excludes>
</properties>
<dependencies>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.agent</artifactId>
<classifier>runtime</classifier>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${version.jacoco.plugin}</version>
<configuration>
<append>true</append>
<dataFile>${jacoco.exec.file}</dataFile>
<excludes>
<exclude>${jacoco.excludes}</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>default-instrument</id>
<goals>
<goal>instrument</goal>
</goals>
</execution>
<execution>
<id>default-restore-instrumented-classes</id>
<goals>
<goal>restore-instrumented-classes</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<jacoco-agent.destfile>${jacoco.exec.file}</jacoco-agent.destfile>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<skip>${code.coverage.disabled}</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>