gradle编译spring源码遇到的错误
来源:互联网 发布:科比历年数据统计 编辑:程序博客网 时间:2024/05/01 14:50
gradle编译spring源码出现 Failed to capture snapshot of input files for task 'distZip' property 'source' d uring up-to-date ch.........的错误
解决方案:打开spring源码中的build.gradle,将
task schemaZip(type: Zip) { group = "Distribution" baseName = "spring-framework" classifier = "schema" description = "Builds -${classifier} archive containing all " + "XSDs for deployment at http://springframework.org/schema." duplicatesStrategy 'exclude' moduleProjects.each { subproject -> def Properties schemas = new Properties(); subproject.sourceSets.main.resources.find { it.path.endsWith("META-INF/spring.schemas") }?.withInputStream { schemas.load(it) } for (def key : schemas.keySet()) { def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1') assert shortName != key File xsdFile = subproject.sourceSets.main.resources.find { it.path.endsWith(schemas.get(key)) } assert xsdFile != null into (shortName) { from xsdFile.path } } } }
替换为
task schemaZip(type: Zip) { group = "Distribution" baseName = "spring-framework" classifier = "schema" description = "Builds -${classifier} archive containing all " + "XSDs for deployment at http://springframework.org/schema." duplicatesStrategy 'exclude' moduleProjects.each { subproject -> def Properties schemas = new Properties(); subproject.sourceSets.main.resources.find { it.path.endsWith("META-INF\\spring.schemas") }?.withInputStream { schemas.load(it) } for (def key : schemas.keySet()) { def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1') assert shortName != key File xsdFile = subproject.sourceSets.main.resources.find { it.path.endsWith(schemas.get(key).replaceAll('\\/','\\\\')) } assert xsdFile != null into (shortName) { from xsdFile.path } } } }
0 0
- gradle编译spring源码遇到的错误
- Gradle对Spring源码编译
- Android 源码编译遇到的几个错误
- gradle安装及编译spring源码
- Gradle编译Spring源码,并导入Eclipse
- Android5.0.1源码编译,android5.1.1源码编译遇到的编译错误如何解决?
- 转载:Ubuntu11.04 编译Android2.3源码 遇到的错误
- 编译Android源码过程中遇到的错误
- tensorflow 源码编译安装以及遇到的一些错误
- 编译遇到的错误
- 遇到的编译错误
- 遇到的编译错误
- Spring遇到的错误
- gradle编译时遇到的问题
- gradle编译遇到的坑,持续更新
- gradle打包遇到的错误汇总
- 编译android源码遇到错误处理
- 编译源码遇到的问题
- 学习笔记
- 操作系统
- NOIP 2014 day1
- 数据结构之堆
- c++ 智能指针及 循环引用问题
- gradle编译spring源码遇到的错误
- Scala Cookbook翻译 Chapter 1.Strings 第二部分
- leetcode Submission Details
- 使用java连接hive,并执行hive语句详解
- mysql定义字符为utf-8格式
- hadoop完全分布式安装
- SVN操作心得
- csu 1804 有向无环图
- WebView---学习笔记