zoukankan      html  css  js  c++  java
  • Spring源码阅读 ------------------- SpringFrameWork 5.2 +IDEA 部署其他坑位问题(二)

    一、地址下jar包无法下载问题

      报错信息:

         Could not get resource ‘https://plugins.gradle.org/m2/org/asciidoctor/org.asciidoctor.jvm.convert.gradle.plugin/asciidoctor-gradle-jvm-2.4.0.jar

      解决方案:

       (1)把下载地址复制放入迅雷中,下载jar包

       (2)在本地包库搜索名字,将包粘贴到没有下载成功的路径下.重新执行gradle

    二、jar包版本不全问题

      报错信息:

         POM relocation to an other version number is not fully supported in Gradle : xml-apis:xml-apis:2.0.2 relocated to xml-apis:xml-apis:1.0.b2.

      解决方案:

        修改引入方式,修改bulid.gradle,搜索configurations.all,添加如下内容:

    1     configurations.all {
    2         resolutionStrategy {
    3             force 'xml-apis:xml-apis:1.4.01'
    4         }
    5     }
    View Code

    三、IDEA编译17小时无法完成编译

         解决方案:

              (1)修改gradle配置文件(例如:D:softwareprogrammegradle-5.6.4-allgradle-5.6.4init.d),将下载源指向阿里云服务器

              (2)进入gradle启动编译服务内,修改如下文件:

     1 allprojects {
     2     repositories {
     3        def REPOSITORY_URL = 'http://maven.aliyun.com/nexus/content/groups/public/'
     4         all { ArtifactRepository repo ->
     5             if(repo instanceof MavenArtifactRepository){
     6                 def url = repo.url.toString()
     7                 if (url.startsWith('https://repo1.maven.org/maven2') || url.startsWith('https://jcenter.bintray.com/')) {
     8                     project.logger.lifecycle "Repository ${repo.url} replaced by $REPOSITORY_URL."
     9                     remove repo
    10                 }
    11             }
    12         }
    13         maven {
    14             url REPOSITORY_URL
    15         }
    16     }
    17 }
    View Code

                 如图:

    四、header.mismatch [SpringHeader]及ant:checkstyle类报错问题

        解决:

              (1)移除测试模块在build.gradle

              (2)编译其他springframework模块,成功后再加入spring-ztest

              (3)springframework其他模块编译成功,此问题可以忽略,直接运行RunApplication

  • 相关阅读:
    171. Excel Sheet Column Number (Easy)
    349. Intersection of Two Arrays (Easy)
    453. Minimum Moves to Equal Array Elements (Easy)
    657. Judge Route Circle (Easy)
    CSS笔记
    保存页面状态
    UI开发总结
    ubuntu 下配置munin
    反向代理配置
    JavaScript 高级程序设计第二版
  • 原文地址:https://www.cnblogs.com/liuyangfirst/p/13613439.html
Copyright © 2011-2022 走看看