CAS源码工程搭建记录

CAS源码工程搭建

1.下载

复制代码
git clone -b 5.3.x https://gitee.com/mirrors/CAS.git

如果下载的是压缩包,导入工程会保存,因为builder.gradle的第20行开始有取git信息,如果是下载的zip会报错。如图:

2.gradle下载源改为阿里云,解决下载慢的问题

调整 CAS\gradle\wrapper\gradle-wrapper.properties文件内容

复制代码
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
#distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-bin.zip
distributionUrl=https\://mirrors.aliyun.com/macports/distfiles/gradle/gradle-4.8-bin.zip?spm=a2c6h.25603864.0.0.25cf260185Qb5V
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

3.解决保存

导入过程提示以下错误

复制代码
A problem occurred configuring root project 'cas-server'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve io.spring.gradle:propdeps-plugin:0.0.10.RELEASE.
     Required by:
         project :
      > Could not resolve io.spring.gradle:propdeps-plugin:0.0.10.RELEASE.
         > Could not get resource 'https://jcenter.bintray.com/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      > Could not resolve io.spring.gradle:propdeps-plugin:0.0.10.RELEASE.
         > Could not get resource 'https://maven.eveoh.nl/content/repositories/releases/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
            > Could not HEAD 'https://maven.eveoh.nl/content/repositories/releases/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      > Could not resolve io.spring.gradle:propdeps-plugin:0.0.10.RELEASE.
         > Could not get resource 'https://plugins.gradle.org/m2/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
            > Could not HEAD 'https://plugins.gradle.org/m2/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      > Could not resolve io.spring.gradle:propdeps-plugin:0.0.10.RELEASE.
         > Could not get resource 'https://repo.spring.io/plugins-release/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
            > Could not HEAD 'https://repo.spring.io/plugins-release/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
相关推荐
庄周的大鱼12 分钟前
分析@TransactionalEventListener注解失效
java·spring·springboot·事务监听器·spring 事件机制·事务注解失效解决
史蒂芬_丁34 分钟前
C++深度拷贝例子
java·开发语言·c++
云烟成雨TD1 小时前
Spring AI Alibaba 1.x 系列【4】ReAct 范式与 ReactAgent 核心设计
java·人工智能·spring
「QT(C++)开发工程师」1 小时前
C++11三大核心特性深度解析:类型特征、时间库与原子操作
java·c++·算法
乐分启航1 小时前
SliMamba:十余K参数量刷新SOTA!高光谱分类的“降维打击“来了
java·人工智能·深度学习·算法·机器学习·分类·数据挖掘
yoothey2 小时前
Java字节流与字符流核心笔记(问答+考点复盘)
java·开发语言·笔记
black方块cxy3 小时前
实现一个输入框多个ip以逗号分隔最多20组,且ip不能重复
java·服务器·前端
23.3 小时前
【Java】char字符类型的UTF-16编码解析
java·开发语言·面试
怒放吧德德3 小时前
Spring Boot实战:InfluxDB 2.x简单教程
java·spring boot·后端
indexsunny4 小时前
互联网大厂Java面试实战:核心技术与业务场景深度解析
java·spring boot·hibernate·security·microservices·interview