• CAS源码工程搭建记录


    1.下载

    git clone -b 5.3.x https://gitee.com/mirrors/CAS.git
    
    • 1

    如果下载的是压缩包,导入工程会保存,因为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
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    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'.
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
  • 相关阅读:
    vue学习总结
    htop安装使用
    【华为 ICT & HCIA & eNSP 习题汇总】——题目集17
    PGL图学习项目合集&数据集分享&技术归纳业务落地技巧[系列十]
    Appium —— 初识移动APP自动化测试框架Appium
    神奇的 SQL ,高级处理之 Window Functions → 打破我们的局限!
    2022Java后端实习春招面试题整理(含答案) 备战秋招
    【SQL每日一练】分组过滤练习题
    【CentOS7】安装docker
    “高级前端开发技术探索路由的使用及Node安装使用“
  • 原文地址:https://blog.csdn.net/xx244/article/details/134486251