forked from CESNET/perun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
471 lines (415 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
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
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
<?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>
<!-- PERUN -->
<groupId>cz.metacentrum</groupId>
<artifactId>perun</artifactId>
<version>3.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- PERUN MODULES -->
<modules>
<module>perun-base</module>
<module>perun-auditparser</module>
<module>perun-core</module>
<module>perun-cabinet</module>
<module>perun-tasks-lib</module>
<module>perun-controller</module>
<module>perun-rpc-lib</module>
<module>perun-registrar-lib</module>
<module>perun-ldapc</module>
<module>perun-rpc</module>
<module>perun-notification</module>
<module>perun-dispatcher</module>
<module>perun-engine</module>
<module>perun-web-gui</module>
<module>perun-voot</module>
<module>perun-auditer-exporter</module>
<module>perun-ldapc-initializer</module>
<module>perun-oidc</module>
</modules>
<!-- common environmental and version properties-->
<properties>
<!-- USE UTF-8 in whole project -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- by default we build devel version of perun and do tests -->
<perun.build.type>devel</perun.build.type>
<maven.test.skip>false</maven.test.skip>
<!-- perun configuration files location -->
<perun.conf>/etc/perun/</perun.conf>
<perun.jdbc>file:${perun.conf}jdbc.properties</perun.jdbc>
<perun.ldapc>file:${perun.conf}perun-ldapc.properties</perun.ldapc>
<perun.log>/var/log/perun/</perun.log>
<!-- libraries versions -->
<org.springframework.version>3.1.4.RELEASE</org.springframework.version>
<junit.version>4.11</junit.version>
<log4j.version>1.5.8</log4j.version>
<!-- by default we run perun in memory -->
<spring.profiles.default>default</spring.profiles.default>
</properties>
<!-- DEFAULT MAVEN BUILD SETTINGS
- child modules inherits settings (e.g. version, encoding), not plugin usage itself
- to explicitly use one of listed plugins in module just specify groupId and artifactId in it's plugins section for each plugin
- child module can override any setting of plugin by defining value in child module (or it's profile)
- beware, that default action on plugins configurations, executions etc. is MERGE !!
- if merged values are defined in both (parent and child module), than module value if used
-->
<build>
<!-- by default we build + install artifact in local repository -->
<defaultGoal>install</defaultGoal>
<!-- Common plugin settings is inherited by child modules -->
<pluginManagement>
<plugins>
<!-- mvn clean - cleans output folder (target) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</plugin>
<!-- mvn compile - compile as Java 1.7 app in UTF-8 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<verbose>false</verbose>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- mvn install - build artifact and install it in local repository (.m2 folder) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
</plugin>
<!-- mvn javadoc - creates javadoc from source (we do append spring javadoc if found) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration>
<detectLinks/>
<links>
<link>http://static.springsource.org/spring/docs/3.0.x/javadoc-api/</link>
</links>
</configuration>
</plugin>
<!-- mvn source:jar - packages sources -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
</plugin>
<!-- mvn jar:jar - creates final jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
</plugin>
<!-- mvn jar:jar - creates final war -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
</plugin>
<!-- mvn shade - creates shaded jar (1 jar containing e.g. core + spring) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
</plugin>
<!-- plugin used to apply jUnit tests settings in maven and to generate report (target/surefire-reports)-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
<configuration>
<!-- disable logging for maven's tests / Test in you IDE will log normally -->
<argLine>-Dlog4j.configuration=</argLine>
<testFailureIgnore>false</testFailureIgnore>
<skip>false</skip>
</configuration>
</plugin>
<!-- Copy dependencies plug-in -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
</plugin>
<!-- Executing plug-in: mvn exec:java -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
</plugin>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.codehaus.gmaven
</groupId>
<artifactId>
gmaven-plugin
</artifactId>
<versionRange>
[1.4,)
</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
gwt-maven-plugin
</artifactId>
<versionRange>
[2.5.1,)
</versionRange>
<goals>
<goal>i18n</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<versionRange>
[2.4,)
</versionRange>
<goals>
<goal>exploded</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
eu.somatik.serviceloader-maven-plugin
</groupId>
<artifactId>
serviceloader-maven-plugin
</artifactId>
<versionRange>
[1.0.2,)
</versionRange>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<executions>
<execution>
<id>checkstyle</id>
<phase>compile</phase>
<goals>
<goal>checkstyle</goal>
</goals>
<configuration>
<failsOnError>false</failsOnError>
</configuration>
</execution>
</executions>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<includes>**/*</includes>
<resourceIncludes>**/*</resourceIncludes>
<sourceDirectories>
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
<sourceDirectory>./perun-utils</sourceDirectory>
<sourceDirectory>./perun-apps</sourceDirectory>
<sourceDirectory>./perun-php</sourceDirectory>
</sourceDirectories>
</configuration>
</plugin>
</plugins>
</build>
<!-- DEFAULT MAVEN DEPENDENCY SETTINGS
- child modules inherits settings (e.g. version, scope), not dependency itself
- to explicitly use one of listed dependencies in module just specify groupId and artifactId in it's dependencies section
- child module can override any setting by defining value in child module (or it's profile)
- beware, that default action on dependency configuration is MERGE !!
- if merged values are defined in both (parent and child module), than module value if used
-->
<dependencyManagement>
<dependencies>
<!-- FIXME - needed in compile scope for running in local tomcat (mvn jetty:run on perun-rpc) and tests, so include it -->
<!-- FIXME - produciton profile overrides it by setting scope to "provided" -->
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-dbcp</artifactId>
<version>7.0.28</version>
</dependency>
<!-- DBs -->
<!-- PostgreSQL driver -->
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901.jdbc4</version>
</dependency>
<!-- Oracle jdbc driver -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc7</artifactId>
<version>12.1.0.2.0</version>
</dependency>
<!-- Oracle internationalization -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>orai18n</artifactId>
<version>12.1.0.2.0</version>
</dependency>
<!-- SQL Lite -->
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.7.2</version>
</dependency>
<!-- Mysql -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.31</version>
</dependency>
<!--HSQL-->
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.3.2</version>
</dependency>
<!-- SPRING -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${org.springframework.version}</version>
<exclusions>
<!-- Exclude Commons Logging in favor of SLF4j -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${org.springframework.version}</version>
<exclusions>
<!-- Exclude Commons Logging in favor of SLF4j -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${org.springframework.version}</version>
<scope>test</scope>
</dependency>
<!-- TESTS -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<!-- LOGGING -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${log4j.version}</version>
</dependency>
<!-- OTHERS -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.6.9</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.7.4</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.7.4</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- Perun project info -->
<name>perun</name>
<description>Identity and Access Management System</description>
<organization>
<name>CESNET, z.s.p.o.</name>
<url>http://www.cesnet.cz/</url>
</organization>
<inceptionYear>2010</inceptionYear>
<url>http://perun.cesnet.cz/web/</url>
<scm>
<connection>scm:git:https://github.com/CESNET/perun.git</connection>
<url>scm:git:https://github.com/CESNET/perun.git</url>
<developerConnection>scm:git:https://github.com/CESNET/perun.git</developerConnection>
<tag>HEAD</tag>
</scm>
</project>