Generic CAS maven war overlay to excercise the latest versions of CAS as well as the latest features of cas-addons
This overlay could be freely used as a starting template for local CAS maven war overlays.
<cas.version>3.5.2</cas.version>
<cas-addons.version>1.10</cas-addons.version>- Apache Maven 3
- Web Server (i.e. Apache Tomcat 7)
- Apache Ant (Optional)
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.
- Set
CATALINA_HOMEto the location of the Tomcat directory (i.e./apps/tomcat) - Set
M2_HOMEto the location of the Maven directory (i.e.apps/maven) - Execute
ant deploy
The ant build automatically invokes maven to produce the cas.war file. It then copies the cas.xml context fragment to Tomcat, pointing to the location of the web application file removing the need to copy the web application to the webapps directory.
- Set
CATALINA_HOMEto the location of the Tomcat directory (i.e./apps/tomcat) - Modify the
cas.xmlfile to point to the location ofcas.warfile. (i.e./apps/unicon-cas-overlay/target/cas.war) - Execute
deploy.sh
Tomcat is shutdown first. The build automatically invokes maven to produce the cas.war file. It then copies the cas.xml context fragment to Tomcat, pointing to the location of the web application file removing the need to copy the web application to the webapps directory. Finally, tomcat is restarted to load the webapp.
- Execute
mvn clean package - Modify the
cas.xmlfile to point to the location ofcas.warfile. (i.e./apps/unicon-cas-overlay/target/cas.war) - Copy the file over to
$CATALINA_HOME/conf/Catalina/localhost - Restart tomcat.