当前位置: 首页 > article >正文

CAS源码工程搭建记录

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'.


http://www.kler.cn/a/132953.html

相关文章:

  • MySql 日期周处理方式
  • Prometheus面试内容整理-生态系统和集成
  • 牛客挑战赛77
  • day-83 最少翻转次数使二进制矩阵回文 II
  • ISP是什么?
  • 计算机视觉在自动驾驶汽车中的应用
  • 深度学习YOLO图像视频足球和人体检测 - python opencv 计算机竞赛
  • Django+vue前后端分离实战--vue后台管理系统--vue环境安装项目创建
  • Kotlin语言实现单击任意TextVIew切换一个新页面,并且实现颜色变换
  • 计算Qt中的QAudioOutput缓冲区未播放的音频字节数对应时长
  • centos 6.10 安装 perl 5.14
  • 设计测试用例的6种基本原则
  • MATLAB基础应用精讲-【数模应用】神经网络
  • Kafka、RocketMQ、RabbitMQ的比较总结Kafka、RocketMQ、RabbitMQ的比较总结
  • 一起Talk Android吧(第五百五十三回:解析Retrofit返回的数据)
  • 浅尝:iOS的CoreGraphics和Flutter的Canvas
  • HarmonyOS开发Java与ArkTS如何抉择
  • 【数据预处理2】数据预处理——数据标准化
  • C# using语句使用介绍
  • 【音视频基础】AVI文件格式
  • 反转链表,剑指offer,力扣
  • 无线WiFi安全渗透与攻防(六)之WEP破解-Gerix-wifi-cracker自动化破解WEP加密
  • 组合模式 rust和java的实现
  • 【机器学习9】前馈神经网络
  • 利用 Pandoc + ChatGPT 优雅地润色论文,并保持 Word 公式格式:Pandoc将Word和LaTeX文件互相转化
  • 开源情报 (OSINT)