Commit 3861c344 authored by Misagh Moayyed's avatar Misagh Moayyed

added wrapper and jetty

parent 6105aed6
......@@ -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.
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment