本文主要是介绍window运行gradle build -- --stacktrace出现找不到文件framework-4.3.0.BUILD-SNAPSHOT-schema.zip异常,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
转载http://stackoverflow.com/questions/34916981/build-spring-framework-source-code-encounter-an-error
编辑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 != keyFile xsdFile = subproject.sourceSets.main.resources.find {it.path.endsWith(schemas.get(key).replaceAll('\\/','\\\\'))}assert xsdFile != nullinto (shortName) {from xsdFile.path}}}}
后重新执行命令
这篇关于window运行gradle build -- --stacktrace出现找不到文件framework-4.3.0.BUILD-SNAPSHOT-schema.zip异常的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!