-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
207 lines (188 loc) · 7.92 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
<?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">
<!--
Local build identity
-->
<modelVersion>4.0.0</modelVersion>
<groupId>edu.pdx.sso</groupId>
<artifactId>psu-cas</artifactId>
<packaging>war</packaging>
<!-- version is [selected CAS version].[PSU CAS local version].[maven build profile] -->
<version>${cas.version}.${psu-cas.version}.${project.activeProfiles[0].id}</version>
<!-- the tag is name, but the meaning is more like "sub-title" -->
<name>Local CAS overlay for Portland State University</name>
<description>
Local theme overlay and some custom configurations for JASIG CAS.
</description>
<organization>
<name>Portland State University - Office of Information Technologies</name>
<url>https://github.com/psu-oit-cis-unixteam</url>
</organization>
<!-- Centralize these values for later re-use -->
<properties>
<cas.version>3.4.10</cas.version>
<hibernate.version>3.5.6-Final</hibernate.version>
<log4j.version>1.0</log4j.version>
<rpm-maven.version>2.1-alpha-2</rpm-maven.version>
<!-- NOTE: This is the local package version, increment for changes
Local version Format:
$psu-major.$psu-incremental -->
<psu-cas.version>0.1</psu-cas.version>
<psu-cas.prefix>/var/lib/tomcat5/webapps</psu-cas.prefix>
<!-- In EL tomcat.version is like tomcat{5,6,7},
the full version is like {5,6,7}.\d.\d -->
<tomcat.version>tomcat5</tomcat.version>
<tomcat.version.minimum>5.5.0</tomcat.version.minimum>
</properties>
<!-- Maven plugins -->
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>cas-${project.version}</warName>
</configuration>
</plugin>
<plugin>
<!-- produce an rpm as a side effect to producing a .war -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>${rpm-maven.version}</version>
<executions>
<execution>
<goals>
<goal>rpm</goal>
</goals>
</execution>
</executions>
<!-- Details for the RPM -->
<configuration>
<copyright>http://www.jasig.org/cas/license</copyright>
<distribution>PSU CAS</distribution>
<group>Applications/Internet</group>
<targetVendor>unknown</targetVendor> <!-- is this right for el*? -->
<packager>${env.USER}</packager>
<prefix>${psu-cas.prefix}</prefix>
<defineStatements>
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
</defineStatements>
<!-- RPM dep management -->
<provides>
<provide>${project.artifactId}</provide>
</provides>
<requires>
<require>${tomcat.version} > ${tomcat.version.minimum}</require>
</requires>
<!-- the %files section of the spec, more-or-less -->
<mappings>
<mapping>
<directory>${psu-cas.prefix}/cas</directory>
<username>tomcat</username>
<groupname>tomcat</groupname>
<sources>
<source>
<location>target/${project.artifactId}-${project.version}</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/etc/cas</directory>
<configuration>true</configuration>
<username>root</username>
<groupname>tomcat</groupname>
<sources>
<softlinkSource>
<location>${psu-cas.prefix}/cas/WEB-INF</location>
</softlinkSource>
</sources>
</mapping>
</mappings>
</configuration>
</plugin>
</plugins>
</build>
<!-- Required packages to build psu cas -->
<dependencies>
<!-- Core JASIG CAS -->
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-core</artifactId>
<version>${cas.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-webapp</artifactId>
<version>${cas.version}</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<!-- LDAP support -->
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-support-ldap</artifactId>
<version>${cas.version}</version>
<scope>runtime</scope>
</dependency>
<!-- extended log4j logging support -->
<dependency>
<groupId>log4j</groupId>
<artifactId>apache-log4j-extras</artifactId>
<version>${log4j.version}</version>
<scope>runtime</scope>
</dependency>
<!-- Hibernate support for Ticket/Service registries -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>${hibernate.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>production</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<!-- JBOSS/shared ticket state support for production -->
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-integration-jboss</artifactId>
<version>${cas.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>development</id>
<build>
<resources>
<resource>
<!-- ignore the jboss ticket cache config in devel -->
<directory>src/main/webapp/WEB-INF/classes</directory>
<excludes>
<exclude>jbossTicketCacheReplicationConfig.xml</exclude>
</excludes>
</resource>
</resources>
</build>
</profile>
</profiles>
<!-- Get the afforementioned dependencies from where?? -->
<repositories>
<repository>
<id>ja-sig</id>
<url>http://oss.sonatype.org/content/repositories/releases/</url>
</repository>
</repositories>
</project>