forked from AtlasOfLivingAustralia/ala-cas-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
238 lines (225 loc) · 7.33 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
<?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 ">
<parent>
<groupId>au.org.ala</groupId>
<artifactId>ala-parent-pom</artifactId>
<version>5</version>
<!--<relativePath>../ala-parent-pom/pom.xml</relativePath>-->
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>au.org.ala</groupId>
<artifactId>ala-cas</artifactId>
<packaging>war</packaging>
<version>2.0.11-SNAPSHOT</version>
<prerequisites>
<maven>3.0.5</maven>
</prerequisites>
<scm>
<connection>scm:git:https://github.com/AtlasOfLivingAustralia/ala-cas-2.0.git</connection>
<developerConnection>scm:git:git@github.com:AtlasOfLivingAustralia/ala-cas-2.0.git</developerConnection>
<url>https://github.com/AtlasOfLivingAustralia/ala-cas-2.0</url>
<tag>HEAD</tag>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<!--<warName>cas</warName>-->
<overlays>
<overlay>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-webapp</artifactId>
<excludes>
<exclude>WEB-INF/cas.properties</exclude>
<exclude>WEB-INF/classes/log4j.xml</exclude>
</excludes>
</overlay>
</overlays>
</configuration>
</plugin>
</plugins>
<finalName>cas</finalName>
<!-- NOTE: this is to set the top.jsp's: <meta name="app.version" content="${version}" />
to this war's version (for example: 2.0.2, or 2.0.3-SNAPSHOT), it work as
follows: 1. mvn resources:resources extracts the version number from this
pom.xml and stores the value in ./target/classes/ala-cas-build.properties
2. fmt taglib is used to read/use the value from cas/WEB-INF/classes/ala-cas-build.properties
on runtime in top.jsp -->
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/ala-cas-build.properties</include>
</includes>
</resource>
</resources>
</build>
<dependencies>
<dependency>
<groupId>au.org.ala</groupId>
<artifactId>ala-header-and-tails</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-webapp</artifactId>
<version>${cas.version}</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<!-- TODO: cas-server-webapp-support BUG workaround - https://issues.jasig.org/browse/CAS-1380
- https://github.com/Jasig/cas/pull/382 the old spring dependencies are required
to workaround the bug without them cas-server-webapp-support throws an exception
on cas.war deploy and won't start. - FURTHER: as of cas-4.0.4 the spring-web
version of this workaround has to be 3.2.9.RELEASE or you get a nasty silent
crash on runtime, with no errors, exceptions, info when you attempt to access
cas login page. -->
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-webapp-support</artifactId>
<version>${cas.version}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.9.RELEASE</version>
</dependency>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-support-jdbc</artifactId>
<version>${cas.version}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.1</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.35</version>
<scope>runtime</scope>
</dependency>
<!-- TODO: review the use of commons-codec, newer jre version might support
base64, no need for an external lib? -->
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<!-- NOTE: older version of JSON.org is used because the newer version
20141113 was throwing Throwable: "Exception:org/json/JSONArray : Unsupported
major.minor version 52.0 (unable to load class org.json.JSONArray)" (or we
can build our own from https://github.com/douglascrockford/JSON-java and
upload it into ALA maven repo) -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20140107</version>
<type>jar</type>
</dependency>
<!-- TODO: review the use of saml in source code and (most likely REMOVE
this dependency) -->
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-support-saml</artifactId>
<version>${cas.version}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-core</artifactId>
<version>${cas.version}</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-support-generic</artifactId>
<version>${cas.version}</version>
<type>jar</type>
<scope>runtime</scope>
</dependency>
<!-- NOTE: cas-server-integration-restlet/restlet, is required/used by
ALA mobile apps -->
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-integration-restlet</artifactId>
<version>${cas.version}</version>
<type>jar</type>
</dependency>
<!-- TODO: verify which pac4j modules we really need -->
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-support-pac4j</artifactId>
<version>${cas.version}</version>
</dependency>
<dependency>
<groupId>org.pac4j</groupId>
<artifactId>pac4j-core</artifactId>
<version>${pac4j.version}</version>
</dependency>
<dependency>
<groupId>org.pac4j</groupId>
<artifactId>pac4j-oauth</artifactId>
<version>${pac4j.version}</version>
</dependency>
</dependencies>
<properties>
<cas.version>4.0.4</cas.version>
<pac4j.version>1.7.2</pac4j.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>ala-nexus</id>
<name>ALA Nexus Repository</name>
<url>http://nexus.ala.org.au/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>sonatype-releases</id>
<url>http://oss.sonatype.org/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>sonatype-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>jasig-developer-repo</id>
<name>Jasig developer repository</name>
<url>http://developer.jasig.org/repo/content/groups/m2-legacy/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</project>