This repository has been archived by the owner on Nov 3, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpom.xml
113 lines (104 loc) · 4.93 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
<?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>
<artifactId>cas-mfa</artifactId>
<groupId>net.unicon</groupId>
<version>2.0.0-RC4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>cas-mfa-overlay</artifactId>
<name>CAS MFA Overlay</name>
<packaging>war</packaging>
<description>
This is intended to be an example of a local CAS implementation Maven overlay that incorporates the
Java and Web components in this project to deliver a working example of a local CAS implementation
making use of the additional multi-factor authentication capabilities.
</description>
<properties>
<cs.dir>${project.basedir}</cs.dir>
</properties>
<!-- Overlays are processed using a first-win strategy. We want to have the cas-mfa-web overlay processed first so that
any particular CAS files that are modified for the MFA functionality are copied to the work directory first. When the second
overlay is processed, it will ignore to overwrite the files that have already been copied and match the name. In other words:
- cas-mfa-web is an overlay to the local CAS overlay. - local CAS overlay is an overlay to the CAS original distribution. -->
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.3.6.v20151106</version>
<configuration>
<jettyXml>${cs.dir}/etc/jetty/jetty.xml,${cs.dir}/etc/jetty/jetty-ssl.xml,${cs.dir}/etc/jetty/jetty-https.xml</jettyXml>
<systemProperties>
<systemProperty>
<name>org.eclipse.jetty.annotations.maxWait</name>
<value>240</value>
</systemProperty>
</systemProperties>
<webApp>
<contextPath>/cas</contextPath>
<overrideDescriptor>${basedir}/etc/jetty/web.xml</overrideDescriptor>
</webApp>
<webAppConfig>
<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
</webAppConfig>
<!-- Works with remote debugging and mvn jetty:run-forked -->
<jvmArgs>-Xdebug -Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n</jvmArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>cas</warName>
<packagingExcludes>WEB-INF/lib/stax-api-1.0-2.jar</packagingExcludes>
<overlays>
<overlay>
<groupId>net.unicon</groupId>
<artifactId>cas-mfa-duo-web</artifactId>
</overlay>
<overlay>
<groupId>net.unicon</groupId>
<artifactId>cas-mfa-web</artifactId>
</overlay>
<overlay>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-webapp</artifactId>
<excludes>
<exclude>WEB-INF/cas.properties</exclude>
<exclude>WEB-INF/login-webflow.xml</exclude>
<exclude>WEB-INF/classes/log4j.xml</exclude>
</excludes>
</overlay>
</overlays>
</configuration>
</plugin>
</plugins>
<finalName>cas</finalName>
</build>
<dependencies>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-webapp</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>net.unicon</groupId>
<artifactId>cas-mfa-web</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-extension-clearpass</artifactId>
<version>${cas.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.unicon</groupId>
<artifactId>cas-mfa-duo-web</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
</dependencies>
</project>