Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Khalid Ali
cas-server
Commits
3861c344
Commit
3861c344
authored
Nov 08, 2015
by
Misagh Moayyed
Browse files
added wrapper and jetty
parent
6105aed6
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3861c344
...
...
@@ -10,23 +10,36 @@ Generic CAS maven war overlay to exercise the latest versions of CAS 4.x line. T
# Recommended Requirements
*
JDK 1.7+
*
Apache Maven 3+
*
Servlet container supporting Servlet 3+ spec (e.g. Apache Tomcat 7+)
# Configuration
The
`etc`
directory contains the sample configuration files that would need to be copied to an external file system location (
`/etc/cas`
by default)
and configured to satisfy local CAS installation needs. Current files are:
The
`etc`
directory contains the configuration files that need to be copied to
`/cas/etc`
.
Current files are:
*
`cas.properties`
*
`log4j2.xml`
# Build
```
bash
mvnw clean package
`
```
# Deployment
## Maven
*
Execute
`mvn clean package`
*
Deploy resultant
`target/cas.war`
to a Servlet container of choice.
## Embedded Jetty
*
Create a Java keystore at
`/etc/cas/jetty/thekeystore`
with the password
`changeit`
.
*
Import your CAS server certificate inside this keystore.
```
bash
mvnw jetty:run-forked
```
CAS will be available at:
## Ant
*
`http://cas.server.name:8080/cas`
*
`https://cas.server.name:8443/cas`
*
Define
`CATALINA_HOME`
and
`MAVEN_HOME`
*
Execute
`ant deploy`
## External
Deploy resultant
`target/cas.war`
to a Servlet container of choice.
pom.xml
View file @
3861c344
...
...
@@ -10,6 +10,11 @@
<build>
<plugins>
<plugin>
<groupId>
com.rimerosolutions.maven.plugins
</groupId>
<artifactId>
wrapper-maven-plugin
</artifactId>
<version>
0.0.4
</version>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
...
...
@@ -37,7 +42,25 @@
<target>
1.7
</target>
</configuration>
</plugin>
<plugin>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-maven-plugin
</artifactId>
<version>
${maven-jetty-plugin.version}
</version>
<configuration>
<jettyXml>
${basedir}/etc/jetty/jetty.xml,${basedir}/etc/jetty/jetty-ssl.xml,${basedir}/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>
<jvmArgs>
-Xdebug -Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n
</jvmArgs>
</configuration>
</plugin>
</plugins>
<finalName>
cas
</finalName>
</build>
...
...
@@ -54,6 +77,7 @@
<properties>
<cas.version>
4.1.1
</cas.version>
<maven-jetty-plugin.version>
9.3.3.v20150827
</maven-jetty-plugin.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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment