• 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
  • 相关阅读:
    LeetCode刷题(10)
    Spring Cloud Gateway中的GlobalFilter:构建强大的API网关过滤器
    Java项目:SSM汽车维修管理系统源码
    经典算法之折半查找(Binary Search)
    【BurpSuite】插件开发学习之J2EEScan - 汇总篇(主动+被动1-76)
    养老院人员定位管理系统解决方案
    一些c语言零碎小知识
    计算机视觉,算法应用自定义数据集制作
    [附源码]SSM计算机毕业设计教室用电控制系统JAVA
    2022-11-19 关于代码设计的思考
  • 原文地址:https://blog.csdn.net/xx244/article/details/134486251