Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gradle 渐变依赖项解析错误,<;排除组织:模块=";l:ame="*&引用;类型="*_Gradle - Fatal编程技术网

Gradle 渐变依赖项解析错误,<;排除组织:模块=";l:ame="*&引用;类型="*

Gradle 渐变依赖项解析错误,<;排除组织:模块=";l:ame="*&引用;类型="*,gradle,Gradle,使用Gradle 1.10为web应用程序项目运行“war”任务时,当我包含对cxf bundle 2.6.13的依赖项时,出现以下错误: Could not resolve all dependencies for configuration ':runtime'. Could not resolve <exclude org: module="l:ame="*" type="*. Required by: :gradle_dep_issue_example:unspeci

使用Gradle 1.10为web应用程序项目运行“war”任务时,当我包含对cxf bundle 2.6.13的依赖项时,出现以下错误:

Could not resolve all dependencies for configuration ':runtime'.
Could not resolve      <exclude org: module="l:ame="*" type="*.
Required by:
  :gradle_dep_issue_example:unspecified > org.apache.cxf:cxf-bundle:2.6.13
java.lang.IllegalArgumentException (no error message)

这个问题最终只影响了gradle 1.10版。我用版本1.8和1.11进行了测试,两个版本都没有这个问题

参考资料中没有包含这样一个问题的bug修复,所以我假设这是在解决一个看似无关的问题时修复的

解决方案是将我的所有项目升级为使用gradle 1.11

apply plugin: 'war'

repositories {
  mavenCentral()
}

dependencies {
  compile 'org.apache.cxf:cxf-bundle:2.6.13'
}

task downloadRuntimeDeps(type: Copy){
  from configurations.runtime
  into new File(getBuildDir(), "/runtime-deps/")
}