> I would like to build CAS from source so that I can add some additional > debugging to troubleshoot an issue with the pac4j SAML2 client support > for version 5.2.x. > > I did > > git clone [email protected]:apereo/cas.git cas-server > cd cas-server > git checkout 5.2.x > ./gradlew war --parallel -x test -x javadoc -x check > > The build completed successfully. > > I was then able to do > > sudo cp \ > > ./webapp/cas-server-webapp/build/libs/cas-server-webapp-5.2.4-SNAPSHOT.war \ > /var/lib/tomcat8/webapps/cas.war > > restart Tomcat 8.5 > > and see the CAS server start up and access /cas/login. > > I need, however, to add the module for pac4j support and for the JSON > service registry. > > I see on this page > > https://apereo.github.io/cas/developer/Build-Process-5X.html > > the text > > "To test the functionality provided by a given CAS module, execute the > following steps: > > Add the module reference to the build script (i.e. build.gradle) of web > application you intend to run (i.e Web App, Management Web App, etc)" > > and the example > > implementation project(":support:cas-server-support-modulename") > > I did add the line > > implementation project(":support:cas-server-support-json-service-registry") > > to the file > > webapp/build.gradle > > but when I copied over the war file and restarted Tomcat the configured > JSON service registry was not recognized. > > What step am I missing to add the JSON service registry support to the > war file I build from source?
Apologies for answering my own post, but for the archives... A correct recipe for building version 5.2.x from source with support for the JSON service registry and the pac4j SAML functionality is git clone [email protected]:apereo/cas.git cas-server cd cas-server git checkout 5.2.x Then edit the file webapp/cas-server-webapp/build.gradle and add the lines dependencies { implementation project(path: ":support:cas-server-support-json-service-registry") implementation project(path: ":support:cas-server-support-pac4j-webflow") } Then execute ./gradlew war --parallel -x test -x javadoc -x check sudo cp ./webapp/cas-server-webapp/build/libs/cas-server-webapp-5.2.4-SNAPSHOT.war /var/lib/tomcat8/webapps/cas.war After restarting Tomcat8 the code built from source will be in effect. Thanks, Scott K -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/20180325200932.jtmbs3jckk7v5g2d%40paprika.local.
