Before building the management webapp, the build must be configured to include the same service registry persistence method as the CAS server. This is accomplished by adding a dependency to the Maven project object model. For this project, that means adding the JSON service registry.

Add the JSON service registry to the project object model

Just as we did for the CAS server, edit the file pom.xml in the cas-management-overlay directory on the master build server (casdev-master) and locate the dependencies section (around line 69), which should look something like this:

<dependencies>
    <dependency>
        <groupId>org.apereo.cas</groupId>
        <artifactId>cas-management-webapp</artifactId>
        <version>${cas.version}</version>
        <type>war</type>
    </dependency>
</dependencies>

Insert a new dependency for the JSON service registry:

<dependencies>
    <dependency>
        <groupId>org.apereo.cas</groupId>
        <artifactId>cas-management-webapp</artifactId>
        <version>${cas.version}</version>
        <type>war</type>
    </dependency>
    <dependency>
        <groupId>org.apereo.cas</groupId>
        <artifactId>cas-server-support-json-service-registry</artifactId>
        <version>${cas.version}</version>
    </dependency>
</dependencies>

Build the webapp

Run Maven to build the webapp according to the project object model:

casdev-master# ./mvnw clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cas-management-overlay 1.0
[INFO] ------------------------------------------------------------------------
(lots of diagnostic output...check for errors)
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.841 s
[INFO] Finished at: YYYY-MM-DDTHH:MM:SS-00:00
[INFO] Final Memory: 29M/72M
[INFO] ------------------------------------------------------------------------
casdev-master#  

References