1
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
3
|
<parent>
|
4
|
<groupId>eu.dnetlib</groupId>
|
5
|
<artifactId>dnet-parent</artifactId>
|
6
|
<version>1.0.0-SNAPSHOT</version>
|
7
|
<relativePath></relativePath>
|
8
|
</parent>
|
9
|
<modelVersion>4.0.0</modelVersion>
|
10
|
<groupId>eu.dnetlib</groupId>
|
11
|
<artifactId>uoa-oauth-server</artifactId>
|
12
|
<version>1.0.0-SNAPSHOT</version>
|
13
|
<packaging>war</packaging>
|
14
|
|
15
|
|
16
|
<properties>
|
17
|
<servlet.port>8080</servlet.port>
|
18
|
<mujina-idp.version>3.1.0</mujina-idp.version>
|
19
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
20
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
21
|
<!-- all the versions in the oa-aas project -->
|
22
|
<dropwizard.version>0.4.2</dropwizard.version>
|
23
|
<flyway.version>2.1.1</flyway.version>
|
24
|
<hsqldb.version>2.2.8</hsqldb.version>
|
25
|
<junit.version>4.10</junit.version>
|
26
|
<tomcat-jdbc.version>7.0.29</tomcat-jdbc.version>
|
27
|
<spring.version>3.2.7.RELEASE</spring.version>
|
28
|
<spring-security.version>3.2.7.RELEASE</spring-security.version>
|
29
|
<spring-data-commons-core.version>1.3.0</spring-data-commons-core.version>
|
30
|
<openjpa.version>2.2.0</openjpa.version>
|
31
|
<commons-lang.version>2.6</commons-lang.version>
|
32
|
<commons-io.version>2.0.1</commons-io.version>
|
33
|
<jersey.version>1.12</jersey.version>
|
34
|
<commons-codec.version>1.4</commons-codec.version>
|
35
|
<coin-test.version>2.8.1</coin-test.version>
|
36
|
<servlet-api.version>3.0.1</servlet-api.version>
|
37
|
<slf4j.version>1.7.2</slf4j.version>
|
38
|
<commons-validator.version>1.4.0</commons-validator.version>
|
39
|
<hibernate-validator.version>4.3.0.Final</hibernate-validator.version>
|
40
|
<spring-security-opensaml.version>4.0.0</spring-security-opensaml.version>
|
41
|
<spring-data-jpa.version>1.1.0.RELEASE</spring-data-jpa.version>
|
42
|
<javax-inject.version>1</javax-inject.version>
|
43
|
<mockito.version>1.9.0</mockito.version>
|
44
|
<jackson.version>1.9.2</jackson.version>
|
45
|
<logback.version>1.0.6</logback.version>
|
46
|
<jetty-maven-plugin.version>8.1.4.v20120524</jetty-maven-plugin.version>
|
47
|
<selenium.version>2.32.0</selenium.version>
|
48
|
<cglib.version>2.2.2</cglib.version>
|
49
|
<jstl.version>1.2</jstl.version>
|
50
|
<jsp.version>2.1</jsp.version>
|
51
|
<mysql.version>5.1.20</mysql.version>
|
52
|
<coin-api.version>3.11.0</coin-api.version>
|
53
|
<project.version>1.3.6-SNAPSHOT</project.version>
|
54
|
|
55
|
</properties>
|
56
|
<repositories>
|
57
|
<repository>
|
58
|
<snapshots>
|
59
|
<enabled>false</enabled>
|
60
|
</snapshots>
|
61
|
<releases>
|
62
|
<enabled>true</enabled>
|
63
|
<updatePolicy>never</updatePolicy>
|
64
|
</releases>
|
65
|
<id>openconext-releases</id>
|
66
|
<name>OpenConext public releases repository</name>
|
67
|
<url>https://build.surfconext.nl/repository/public/releases</url>
|
68
|
</repository>
|
69
|
<repository>
|
70
|
<snapshots>
|
71
|
<enabled>true</enabled>
|
72
|
</snapshots>
|
73
|
<releases>
|
74
|
<enabled>false</enabled>
|
75
|
<updatePolicy>never</updatePolicy>
|
76
|
</releases>
|
77
|
<id>openconext-snapshots</id>
|
78
|
<name>OpenConext public snapshots repository</name>
|
79
|
<url>https://build.surfconext.nl/repository/public/snapshots</url>
|
80
|
</repository>
|
81
|
</repositories>
|
82
|
|
83
|
<pluginRepositories>
|
84
|
<pluginRepository>
|
85
|
<snapshots>
|
86
|
<enabled>false</enabled>
|
87
|
</snapshots>
|
88
|
<releases>
|
89
|
<enabled>true</enabled>
|
90
|
<updatePolicy>never</updatePolicy>
|
91
|
</releases>
|
92
|
<id>openconext-releases</id>
|
93
|
<name>OpenConext public releases repository</name>
|
94
|
<url>https://build.surfconext.nl/repository/public/releases</url>
|
95
|
</pluginRepository>
|
96
|
</pluginRepositories>
|
97
|
|
98
|
|
99
|
<dependencies>
|
100
|
|
101
|
<dependency>
|
102
|
<groupId>com.unboundid</groupId>
|
103
|
<artifactId>unboundid-ldapsdk</artifactId>
|
104
|
<version>2.3.6</version>
|
105
|
</dependency>
|
106
|
|
107
|
<dependency>
|
108
|
<groupId>nl.surfnet.apis</groupId>
|
109
|
<artifactId>apis-authorization-server</artifactId>
|
110
|
<version>1.3.6-SNAPSHOT</version>
|
111
|
</dependency>
|
112
|
|
113
|
<dependency>
|
114
|
<groupId>com.sun.jersey</groupId>
|
115
|
<artifactId>jersey-servlet</artifactId>
|
116
|
<version>${jersey.version}</version>
|
117
|
</dependency>
|
118
|
|
119
|
|
120
|
<dependency>
|
121
|
<groupId>org.apache.tomcat</groupId>
|
122
|
<artifactId>tomcat-jdbc</artifactId>
|
123
|
<version>7.0.29</version>
|
124
|
</dependency>
|
125
|
<dependency>
|
126
|
<groupId>javax.servlet</groupId>
|
127
|
<artifactId>javax.servlet-api</artifactId>
|
128
|
<version>3.1.0</version>
|
129
|
</dependency>
|
130
|
|
131
|
<dependency>
|
132
|
<groupId>javax.servlet.jsp.jstl</groupId>
|
133
|
<artifactId>jstl-api</artifactId>
|
134
|
<version>1.2</version>
|
135
|
</dependency>
|
136
|
|
137
|
|
138
|
<dependency>
|
139
|
<groupId>javax.servlet</groupId>
|
140
|
<artifactId>jsp-api</artifactId>
|
141
|
<version>2.0</version>
|
142
|
</dependency>
|
143
|
|
144
|
<dependency>
|
145
|
<groupId>mysql</groupId>
|
146
|
<artifactId>mysql-connector-java</artifactId>
|
147
|
<version>5.1.20</version>
|
148
|
</dependency>
|
149
|
<dependency>
|
150
|
<groupId>postgresql</groupId>
|
151
|
<artifactId>postgresql</artifactId>
|
152
|
<version>9.1-901.jdbc4</version>
|
153
|
</dependency>
|
154
|
|
155
|
<dependency>
|
156
|
<groupId>com.sun.jersey.contribs</groupId>
|
157
|
<artifactId>jersey-spring</artifactId>
|
158
|
<version>1.12</version>
|
159
|
<exclusions>
|
160
|
<exclusion>
|
161
|
<groupId>org.springframework</groupId>
|
162
|
<artifactId>spring</artifactId>
|
163
|
</exclusion>
|
164
|
<exclusion>
|
165
|
<groupId>org.springframework</groupId>
|
166
|
<artifactId>spring-core</artifactId>
|
167
|
</exclusion>
|
168
|
<exclusion>
|
169
|
<groupId>org.springframework</groupId>
|
170
|
<artifactId>spring-web</artifactId>
|
171
|
</exclusion>
|
172
|
<exclusion>
|
173
|
<groupId>org.springframework</groupId>
|
174
|
<artifactId>spring-beans</artifactId>
|
175
|
</exclusion>
|
176
|
<exclusion>
|
177
|
<groupId>org.springframework</groupId>
|
178
|
<artifactId>spring-context</artifactId>
|
179
|
</exclusion>
|
180
|
<exclusion>
|
181
|
<groupId>org.springframework</groupId>
|
182
|
<artifactId>spring-aop</artifactId>
|
183
|
</exclusion>
|
184
|
</exclusions>
|
185
|
</dependency>
|
186
|
|
187
|
|
188
|
<dependency>
|
189
|
<groupId>com.sun.jersey</groupId>
|
190
|
<artifactId>jersey-client</artifactId>
|
191
|
<version>1.12</version>
|
192
|
</dependency>
|
193
|
|
194
|
|
195
|
<!-- SPRING DEPENDENCIES -->
|
196
|
|
197
|
<dependency>
|
198
|
<groupId>org.surfnet.coin</groupId>
|
199
|
<artifactId>spring-security-opensaml</artifactId>
|
200
|
<version>${spring-security-opensaml.version}</version>
|
201
|
</dependency>
|
202
|
<dependency>
|
203
|
<groupId>org.springframework.data</groupId>
|
204
|
<artifactId>spring-data-jpa</artifactId>
|
205
|
<version>${spring-data-jpa.version}</version>
|
206
|
</dependency>
|
207
|
<dependency>
|
208
|
<groupId>org.springframework</groupId>
|
209
|
<artifactId>spring-beans</artifactId>
|
210
|
<version>${spring.version}</version>
|
211
|
</dependency>
|
212
|
<dependency>
|
213
|
<groupId>org.springframework</groupId>
|
214
|
<artifactId>spring-web</artifactId>
|
215
|
<version>${spring.version}</version>
|
216
|
</dependency>
|
217
|
<dependency>
|
218
|
<groupId>org.springframework</groupId>
|
219
|
<artifactId>spring-webmvc</artifactId>
|
220
|
<version>${spring.version}</version>
|
221
|
</dependency>
|
222
|
<dependency>
|
223
|
<groupId>org.springframework</groupId>
|
224
|
<artifactId>spring-jdbc</artifactId>
|
225
|
<version>${spring.version}</version>
|
226
|
</dependency>
|
227
|
<dependency>
|
228
|
<groupId>org.springframework</groupId>
|
229
|
<artifactId>spring-context</artifactId>
|
230
|
<version>${spring.version}</version>
|
231
|
</dependency>
|
232
|
|
233
|
<dependency>
|
234
|
<groupId>org.springframework</groupId>
|
235
|
<artifactId>spring-core</artifactId>
|
236
|
<version>${spring.version}</version>
|
237
|
</dependency>
|
238
|
<dependency>
|
239
|
<groupId>org.springframework</groupId>
|
240
|
<artifactId>spring-tx</artifactId>
|
241
|
<version>${spring.version}</version>
|
242
|
</dependency>
|
243
|
<dependency>
|
244
|
<groupId>org.springframework</groupId>
|
245
|
<artifactId>spring-orm</artifactId>
|
246
|
<version>${spring.version}</version>
|
247
|
</dependency>
|
248
|
<dependency>
|
249
|
<groupId>org.springframework</groupId>
|
250
|
<artifactId>spring-test</artifactId>
|
251
|
<version>${spring.version}</version>
|
252
|
<scope>test</scope>
|
253
|
</dependency>
|
254
|
<dependency>
|
255
|
<groupId>org.springframework.data</groupId>
|
256
|
<artifactId>spring-data-commons-core</artifactId>
|
257
|
<version>1.3.0.RELEASE</version>
|
258
|
</dependency>
|
259
|
|
260
|
<dependency>
|
261
|
<groupId>javax.servlet.jsp</groupId>
|
262
|
<artifactId>javax.servlet.jsp-api</artifactId>
|
263
|
<version>2.3.0</version>
|
264
|
</dependency>
|
265
|
|
266
|
|
267
|
<!-- LDAP -->
|
268
|
<dependency>
|
269
|
<groupId>xml-apis</groupId>
|
270
|
<artifactId>xml-apis</artifactId>
|
271
|
<version>1.4.01</version>
|
272
|
</dependency>
|
273
|
|
274
|
<!-- SPRING CONFIG -->
|
275
|
<dependency>
|
276
|
<groupId>cglib</groupId>
|
277
|
<artifactId>cglib</artifactId>
|
278
|
<version>${cglib.version}</version>
|
279
|
</dependency>
|
280
|
<dependency>
|
281
|
<groupId>javax.inject</groupId>
|
282
|
<artifactId>javax.inject</artifactId>
|
283
|
<version>${javax-inject.version}</version>
|
284
|
</dependency>
|
285
|
<dependency>
|
286
|
<groupId>org.hibernate</groupId>
|
287
|
<artifactId>hibernate-validator</artifactId>
|
288
|
<version>${hibernate-validator.version}</version>
|
289
|
</dependency>
|
290
|
<dependency>
|
291
|
<groupId>com.yammer.dropwizard</groupId>
|
292
|
<artifactId>dropwizard-auth</artifactId>
|
293
|
<version>${dropwizard.version}</version>
|
294
|
</dependency>
|
295
|
<dependency>
|
296
|
<groupId>com.yammer.dropwizard</groupId>
|
297
|
<artifactId>dropwizard-views</artifactId>
|
298
|
<version>${dropwizard.version}</version>
|
299
|
</dependency>
|
300
|
<dependency>
|
301
|
<groupId>com.yammer.dropwizard</groupId>
|
302
|
<artifactId>dropwizard-client</artifactId>
|
303
|
<version>${dropwizard.version}</version>
|
304
|
</dependency>
|
305
|
|
306
|
|
307
|
<!-- JUNIT -->
|
308
|
<dependency>
|
309
|
<groupId>junit</groupId>
|
310
|
<artifactId>junit</artifactId>
|
311
|
<version>${junit.version}</version>
|
312
|
<scope>test</scope>
|
313
|
</dependency>
|
314
|
|
315
|
|
316
|
<!-- Begin Selenium -->
|
317
|
<dependency>
|
318
|
<groupId>org.seleniumhq.selenium</groupId>
|
319
|
<artifactId>selenium-firefox-driver</artifactId>
|
320
|
<version>2.32.0</version>
|
321
|
<scope>test</scope>
|
322
|
</dependency>
|
323
|
<dependency>
|
324
|
<groupId>org.seleniumhq.selenium</groupId>
|
325
|
<artifactId>selenium-support</artifactId>
|
326
|
<version>2.32.0</version>
|
327
|
<scope>test</scope>
|
328
|
</dependency>
|
329
|
<dependency>
|
330
|
<groupId>org.seleniumhq.selenium</groupId>
|
331
|
<artifactId>selenium-htmlunit-driver</artifactId>
|
332
|
<version>2.32.0</version>
|
333
|
<scope>test</scope>
|
334
|
</dependency>
|
335
|
<!-- End Selenium -->
|
336
|
|
337
|
|
338
|
<dependency>
|
339
|
<groupId>org.apache.httpcomponents</groupId>
|
340
|
<artifactId>httpclient</artifactId>
|
341
|
<version>4.2</version>
|
342
|
<classifier>tests</classifier>
|
343
|
<scope>test</scope>
|
344
|
</dependency>
|
345
|
|
346
|
<dependency>
|
347
|
<groupId>nl.surfnet.apis</groupId>
|
348
|
<artifactId>apis-resource-server-library</artifactId>
|
349
|
<version>1.3.6-SNAPSHOT</version>
|
350
|
</dependency>
|
351
|
|
352
|
|
353
|
<!-- LOGGING -->
|
354
|
|
355
|
<!-- <dependency> -->
|
356
|
<!-- <groupId>ch.qos.logback</groupId> -->
|
357
|
<!-- <artifactId>logback-classic</artifactId> -->
|
358
|
<!-- <version>1.3.6-SNAPSHOT</version> -->
|
359
|
<!-- </dependency> -->
|
360
|
<dependency>
|
361
|
<groupId>org.slf4j</groupId>
|
362
|
<artifactId>log4j-over-slf4j</artifactId>
|
363
|
<version>${slf4j.version}</version>
|
364
|
</dependency>
|
365
|
<dependency>
|
366
|
<groupId>org.slf4j</groupId>
|
367
|
<artifactId>jcl-over-slf4j</artifactId>
|
368
|
<version>${slf4j.version}</version>
|
369
|
</dependency>
|
370
|
<dependency>
|
371
|
<groupId>org.slf4j</groupId>
|
372
|
<artifactId>jul-to-slf4j</artifactId>
|
373
|
<version>${slf4j.version}</version>
|
374
|
</dependency>
|
375
|
<!-- <dependency> -->
|
376
|
<!-- <groupId>commons-logging</groupId> -->
|
377
|
<!-- <artifactId>commons-logging</artifactId> -->
|
378
|
<!-- <version> ${slf4j.version}</version> -->
|
379
|
<!-- </dependency> -->
|
380
|
<!-- <dependency> -->
|
381
|
<!-- <groupId>log4j</groupId> -->
|
382
|
<!-- <artifactId>log4j</artifactId> -->
|
383
|
<!-- <version> ${slf4j.version}</version> -->
|
384
|
<!-- </dependency> -->
|
385
|
</dependencies>
|
386
|
|
387
|
<profiles>
|
388
|
|
389
|
<!-- Profile for integration tests. Enable with -Pintegration This profile
|
390
|
enables the maven failsafe plugin with its standard configuration. This means
|
391
|
that test classes **TestIT.java will be run and **Test.java will be skipped.
|
392
|
Prior to run ning the tests, a Jetty container is started by the jetty-maven-plugin. -->
|
393
|
<profile>
|
394
|
<id>integration</id>
|
395
|
<activation>
|
396
|
<activeByDefault>false</activeByDefault>
|
397
|
<property>
|
398
|
<name>integration</name>
|
399
|
</property>
|
400
|
</activation>
|
401
|
<build>
|
402
|
<plugins>
|
403
|
<plugin>
|
404
|
<artifactId>maven-failsafe-plugin</artifactId>
|
405
|
<version>2.12</version>
|
406
|
<executions>
|
407
|
<execution>
|
408
|
<goals>
|
409
|
<goal>integration-test</goal>
|
410
|
<goal>verify</goal>
|
411
|
</goals>
|
412
|
</execution>
|
413
|
</executions>
|
414
|
</plugin>
|
415
|
<plugin>
|
416
|
<groupId>org.mortbay.jetty</groupId>
|
417
|
<artifactId>jetty-maven-plugin</artifactId>
|
418
|
<version>8.1.4.v20120524</version>
|
419
|
<!-- 8.1.4.v20120524 -->
|
420
|
<configuration>
|
421
|
<scanIntervalSeconds>0</scanIntervalSeconds>
|
422
|
<webAppConfig>
|
423
|
<contextPath>/</contextPath>
|
424
|
<extraClasspath>${basedir}/src/test/resources/</extraClasspath>
|
425
|
</webAppConfig>
|
426
|
<connectors>
|
427
|
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
428
|
<port>${servlet.port}</port>
|
429
|
<maxIdleTime>60000</maxIdleTime>
|
430
|
</connector>
|
431
|
</connectors>
|
432
|
<daemon>true</daemon>
|
433
|
<scanIntervalSeconds>0</scanIntervalSeconds>
|
434
|
<stopKey>foo</stopKey>
|
435
|
<stopPort>9966</stopPort>
|
436
|
<contextXml>${basedir}/src/test/resources/jetty-context.xml</contextXml>
|
437
|
</configuration>
|
438
|
<executions>
|
439
|
<execution>
|
440
|
<id>start-jetty</id>
|
441
|
<phase>pre-integration-test</phase>
|
442
|
<goals>
|
443
|
<goal>run</goal>
|
444
|
</goals>
|
445
|
</execution>
|
446
|
<execution>
|
447
|
<id>stop-jetty</id>
|
448
|
<phase>post-integration-test</phase>
|
449
|
<goals>
|
450
|
<goal>stop</goal>
|
451
|
</goals>
|
452
|
</execution>
|
453
|
</executions>
|
454
|
</plugin>
|
455
|
</plugins>
|
456
|
</build>
|
457
|
</profile>
|
458
|
|
459
|
<!-- extra profile to use a headless selenium driver instead of default
|
460
|
(firefox). -->
|
461
|
<profile>
|
462
|
<id>selenium-headless</id>
|
463
|
<activation>
|
464
|
<activeByDefault>false</activeByDefault>
|
465
|
</activation>
|
466
|
<properties>
|
467
|
<selenium.webdriver>htmlunit</selenium.webdriver>
|
468
|
</properties>
|
469
|
</profile>
|
470
|
|
471
|
</profiles>
|
472
|
|
473
|
|
474
|
<build>
|
475
|
<!--<finalName>oauth</finalName>-->
|
476
|
<plugins>
|
477
|
|
478
|
<!-- Specific jetty-maven-plugin configuration for running Jetty during
|
479
|
development. None of its goals are run in a normal build lifecycle. -->
|
480
|
<plugin>
|
481
|
<groupId>org.mortbay.jetty</groupId>
|
482
|
<artifactId>jetty-maven-plugin</artifactId>
|
483
|
<version>8.1.4.v20120524</version>
|
484
|
<dependencies>
|
485
|
<dependency>
|
486
|
<groupId>org.surfnet.coin</groupId>
|
487
|
<artifactId>mujina-idp</artifactId>
|
488
|
<type>war</type>
|
489
|
<version>3.1.0</version>
|
490
|
</dependency>
|
491
|
<dependency>
|
492
|
<groupId>nl.surfnet.apis</groupId>
|
493
|
<artifactId>apis-openconext-mock-war</artifactId>
|
494
|
<type>war</type>
|
495
|
<version>1.3.6-SNAPSHOT</version>
|
496
|
</dependency>
|
497
|
</dependencies>
|
498
|
<configuration>
|
499
|
<contextHandlers>
|
500
|
<contextHandler implementation="org.eclipse.jetty.webapp.WebAppContext">
|
501
|
<contextPath>/mujina-idp</contextPath>
|
502
|
<war>
|
503
|
${settings.localRepository}/org/surfnet/coin/mujina-idp/3.1.0/mujina-idp-3.1.0.war
|
504
|
</war>
|
505
|
<extraClasspath>${basedir}/src/test/resources/</extraClasspath>
|
506
|
</contextHandler>
|
507
|
<contextHandler implementation="org.eclipse.jetty.webapp.WebAppContext">
|
508
|
<contextPath>/openconext-mock</contextPath>
|
509
|
<war>
|
510
|
${settings.localRepository}/nl/surfnet/apis/apis-openconext-mock-war/1.3.6-SNAPSHOT/apis-openconext-mock-war-1.3.6-SNAPSHOT.war
|
511
|
</war>
|
512
|
<extraClasspath>${basedir}/src/test/resources/</extraClasspath>
|
513
|
</contextHandler>
|
514
|
</contextHandlers>
|
515
|
|
516
|
<webAppConfig>
|
517
|
<contextPath>/</contextPath>
|
518
|
<extraClasspath>${basedir}/src/test/resources/</extraClasspath>
|
519
|
</webAppConfig>
|
520
|
<connectors>
|
521
|
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
522
|
<port>${servlet.port}</port>
|
523
|
<host>0.0.0.0</host>
|
524
|
</connector>
|
525
|
</connectors>
|
526
|
<reload>manual</reload>
|
527
|
<stopKey>stopauthserver</stopKey>
|
528
|
<stopPort>9280</stopPort>
|
529
|
<useTestClasspath>true</useTestClasspath>
|
530
|
<contextXml>${basedir}/src/test/resources/jetty-context.xml</contextXml>
|
531
|
</configuration>
|
532
|
</plugin>
|
533
|
</plugins>
|
534
|
</build>
|
535
|
</project>
|