CAS部署Gradle-Overlay

参考:https://apereo.github.io/cas/development/installation/Maven-Overlay-Installation.html
这是最简单部署CAS的方法了,之后再更新如何从源码编译。。。

下载模板工程
地址:https://github.com/apereo/cas-gradle-overlay-template/tree/4.2

## 编译

bash
./gradlew[.bat] clean build

制作war文件

bash
./gradlew[.bat] clean build explodeWar

把制作完的war放到tomcat下的webapp即可
配置在etc/cas

需要定制化覆盖对应内容即可,结构如下

├── src
│ ├── main
│ │ ├── java
│ │ │ └── edu
│ │ │ └── vt
│ │ │ └── middleware
│ │ │ └── cas
│ │ │ ├── audit
│ │ │ │ ├── CompactSlf4jAuditTrailManager.java
│ │ │ ├── authentication
│ │ │ │ └── principal
│ │ │ │ └── UsernamePasswordCredentialsToPrincipalResolver.java
│ │ │ ├── services
│ │ │ │ └── JsonServiceRegistryDao.java
│ │ │ ├── util
│ │ │ │ └── X509Helper.java
│ │ │ └── web
│ │ │ ├── HelpController.java
│ │ │ ├── flow
│ │ │ │ ├── AbstractForgottenCredentialAction.java
│ │ │ └── util
│ │ │ ├── ProtocolParameterAuthority.java

定制之后重新执行上面的命令即可

1 Comments
  1. Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.

Leave a Reply