forked from danilopez/iws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
424 lines (411 loc) · 17.5 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
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.iaeste.iws</groupId>
<artifactId>iws</artifactId>
<packaging>pom</packaging>
<version>1.2-SNAPSHOT</version>
<name>IWS</name>
<description>IntraWeb Services</description>
<modules>
<module>iws-api</module>
<module>iws-common</module>
<module>iws-persistence</module>
<module>iws-core</module>
<module>iws-ejb</module>
<module>iws-ws</module>
<module>iws-ear</module>
<module>iws-ws-client</module>
<module>iws-client</module>
</modules>
<scm>
<connection>scm:git:https://github.com/IWSDevelopers/iws.git</connection>
</scm>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/IWSDevelopers/iws/issues</url>
</issueManagement>
<developers>
<developer>
<id>kim</id>
<name>Kim Nørregaard Jensen</name>
<email>kim@dawn.dk</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
</developer>
<developer>
<id>pavel</id>
<name>Pavel Fiala</name>
<email>fiala_pavel@centrum.cz</email>
<roles>
<role>developer</role>
</roles>
</developer>
<developer>
<id>michl</id>
<name>Michael Pickelbauer</name>
<email>michael.pickelbauer@gmail.com</email>
<roles>
<role>developer</role>
</roles>
</developer>
<developer>
<id>matej</id>
<name>Matej Kosco</name>
<email>matej.kosco@gmail.com</email>
<roles>
<role>developer</role>
</roles>
</developer>
<developer>
<id>martin</id>
<name>Martin Eisfeld</name>
<email>martin.eisfeld@gmx.net</email>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- We are using Spring & Hibernate for our testing, so we can
create EntityManager instances to use. However, there is a
problem in the combination of Spring & Hibernate, which is
causing test errors as we cannot create the initial setup,
which we need to run the tests.
Problem is present when upgrading to either us the JEE 7
framework, which includes JPA 2.1 or upgrading one or more
of the frameworks; Spring & Hibernate to later versions.
Until such time when it can be investigated what is
causing the problems, we're going to stay with these
versions, after all - it is not affecting production
code. -->
<!--<hibernate.version>5.1.0.Final</hibernate.version>-->
<hibernate.version>4.1.6.Final</hibernate.version>
<!-- Plese don't upgrade from 3.2.x; it leads to test problems. -->
<!--<spring.version>4.2.6.RELEASE</spring.version>-->
<spring.version>3.2.15.RELEASE</spring.version>
<!-- The ${argLine} is important to have here, as we otherwise cannot
pass the JaCoCo Agent settings through SureFire. -->
<argLine>-Xmx1024m</argLine>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.6.201602180812</version>
</plugin>
<plugin>
<!-- See: https://github.com/trautonen/coveralls-maven-plugin -->
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.1.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<debug>false</debug>
<encoding>${project.build.sourceEncoding}</encoding>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- The surefire plugin supports running the execution of
the JUnit tests in parallel, and with various options
set. Although the "advertized" advantage is to speed up
the test suite, is more or less crap, there is another
advantage to running things in parallel. And that is
to see how the system handles multiple threads that
accesses it at the same time - in other words, how
thread-safe is the system.
Since each thread needs to build the Spring beans
required by the tests, it means that the overall
testing takes significantly longer and will eat more
memory. If it makes the system too slow, please reduce
the number of threads in the threadCount below. But
note, that those changes should not be committed.
Spring seems to have a problem with the in-memory
database and running tests in parallel. Hence, these
tests are not enabled by default. The setting is here
merely to show how to configure it. An alternative to
running the tests in parallel using Maven, is to use
IntelliJ's forkmode for JUnit tests.
One major problem with the SureFire plugin is, that
it uses the argLine to set information, which clashes
with JaCoCo which also uses the argLine, and getting
both to play nice together is problematic!
Parallel supports 'classes', 'methods' or 'both' -->
<parallel>none</parallel>
<threadCount>5</threadCount>
</configuration>
<goals>
<goal>test</goal>
</goals>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<goals>
<goal>test-jar</goal>
</goals>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>jar</id>
<phase>deploy</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>coverage</id>
<properties>
<!-- To integrate testing with SonarQube.com, the key & host
for the server must be given via "-Dsonar..." options -->
<!--<sonar.host.url>http://localhost:9000</sonar.host.url>-->
<sonar.language>java</sonar.language>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<!-- To ensure that we have a combined report for all modules, we need
to tell JaCoCo, to use a common file. -->
<sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
<sonar.jacoco.itReportPath>${project.basedir}/../target/jacoco-it.exec</sonar.jacoco.itReportPath>
<!-- Sonar is by default analyzing everything. But Generated Code is beyond our
control, so having error reports from this is just annoying.
Legend: * - zero or more characters
** - zero or more directories -->
<sonar.exclusions>file:**/generated*/**</sonar.exclusions>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<includes>
<include>net.iaeste.iws.*</include>
</includes>
<destFile>${project.basedir}/../target/jacoco.exec</destFile>
<append>true</append>
</configuration>
<executions>
<execution>
<id>agent-for-ut</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>iws-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>iws-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>iws-persistence</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>iws-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>iws-ejb</artifactId>
<version>${project.version}</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>iws-ws</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>iws-ws-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>iws-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.21</version>
<scope>test</scope>
</dependency>
<!-- Some of the third-part libraries needed for the Client tests,
uses Log4J. We therefore use Log4J also to make sure we can
disable the logging of these, as it is noise. -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.21</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.2.4.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.4.1208.jre7</version>
</dependency>
<dependency>
<!-- For our in-memory testing, we're using HSQLDB -->
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.3.4</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>gsbase</groupId>
<artifactId>gsbase</artifactId>
<version>2.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>