window运行gradle build -- --stacktrace出现找不到文件framework-4.3.0.BUILD-SNAPSHOT-schema.zip异常
2016-05-19 09:08
573 查看
转载http://stackoverflow.com/questions/34916981/build-spring-framework-source-code-encounter-an-error
编辑build.gradle文件
替换成
编辑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).replaceAll('\\/','\\\\')) } assert xsdFile != null into (shortName) { from xsdFile.path } } } } 后重新执行命令
相关文章推荐
- hdu 1159Common Subsequence(dp 最大不连续的子序列)
- android Activity runOnUiThread() 方法使用
- UICollectionView-网格视图
- 02.LoT.UI 前后台通用框架分解系列之——灵活的菜单栏
- AdapterView.AdapterContextMenuInfo
- 01.LoT.UI 前后台通用框架分解系列之——小图片背景全屏显示(可自动切换背景)
- complex类 序列化时 IsRequired = true 问题
- Android异步更新UI的四种方式
- 更换证书后 打包异常 "UUID not found"/ "xxxx描述文件 not found"
- 125_ListView和UI卡顿
- hibernateTransactionManager 与REQUIRES_NEW的问题
- 2016 UESTC Training for Search Algorithm & String(A B C E I K)
- POJ 1947-Rebuilding Roads-(树形DP)
- 用JS代码怎么实现两个文本框的Value相乘
- UITableView 抽取及控制器的调用整合
- Query采用each方法遍历
- Exception in thread "main" org.hibernate.QueryException: illegal attempt to dereference collection
- LeetCode 334. Increasing Triplet Subsequence
- codeforces D. Maximum Value
- 347. Top K Frequent Elements