I want to learn and build cas(central authentication system) using maven.
and followed this tutorial:
https://wiki.jasig.org/display/CASUM/Best+Practice+-+Setting+Up+CAS+Locally+using+the+Maven+WAR+Overlay+Method
to get a cas.war. This war works fine, I can successfully jump to CAS login page via:https://localhost:8443/cas/login
Then I want to try CAS java client using CAS RESTFul API.Following this wonderful tutorial: Working Java REST Client Example to access CAS REST API
The first step in this tutorial is to add a restful dependency in cas's pom.xml, so I need to recompile pom.xml using maven, adding the dependency I need, the pom.xml is now as follows:
<?xml version="1.0" encoding="UTF-8"?>
http://maven.apache.org/xsd/maven-4.0.0.xsd "> 4.0.0 edu.university.cas local-cas war 1.0-SNAPSHOT
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>cas</warName>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-webapp</artifactId>
<version>${cas.version}</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-integration-restlet</artifactId>
<version>${cas.version}</version>
<type>jar</type>
</dependency>
</dependencies>
<properties>
<cas.version>3.5.2</cas.version>
</properties>
<repositories>
<repository>
<id>ja-sig</id>
<url>http://oss.sonatype.org/content/repositories/releases/ </url>
</repository>
</repositories>
However, this time when I use the war I get, I can't jump to login page, the page stucks, nothing pops out.
I wonder what I've done wrong here. Or where can I get pom.xml for cas server including restful dependecy?