我正在尝试建立一个项目compile 'org.odlabs.wiquery:wiquery-core:1.5.6'
。
取决于jackson-mapper-asl
。
此依赖项在org.odlabs.wiquery:wiquery-core
父pom.xml
中声明。版本声明如下:<jackson.version>[1.8,1.8.6],[1.9,1.9.7]</jackson.version>
因此,我收到错误:
:ui-components:compileJava
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':ui-components:compile'.
> Could not resolve org.codehaus.jackson:jackson-mapper-asl:[1.8,1.8.6],[1.9,1.9.7].
Required by:
com.app:ui-components:1.5.8 > org.odlabs.wiquery:wiquery-core:1.5.6
> Illegal character in path at index 70: http://repo1.maven.org/maven2/org/codehaus/jackson/jackson-mapper-asl/[1.8,1.8.6],[1.9,1.9.7]/jackson-mapper-asl-[1.8,1.8.6],[1.9,1.9.7].pom
有没有办法解决?
最佳答案
最后使用Peter Niedwerwieser的建议只是为了添加jar依赖项。还添加了所需的 transient 依赖项。
关于gradle - Gradle无法使用声明为pom.xml的多个版本解决依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21317516/