已解决
CAS源码工程搭建记录
来自网友在路上 158858提问 提问时间:2023-11-19 18:35:40阅读次数: 58
最佳答案 问答题库588位专家为你答疑解惑
CAS源码工程搭建
- 1.下载
- 2.gradle下载源改为阿里云,解决下载慢的问题
- 3.解决保存
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'.
查看全文
99%的人还看了
猜你感兴趣
版权申明
本文"CAS源码工程搭建记录":http://eshow365.cn/6-39501-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!
- 上一篇: 纯前端模板文件下载如何精确控制下载的文件名字
- 下一篇: 【算法萌新闯力扣】:旋转字符串