gradle - Gradle无法使用声明为pom.xml的多个版本解决依赖关系

标签 gradle

我正在尝试建立一个项目compile 'org.odlabs.wiquery:wiquery-core:1.5.6'

取决于jackson-mapper-asl
此依赖项在org.odlabs.wiquery:wiquery-corepom.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/

相关文章:

android - Gradle:Android支持版本冲突

android - 为什么我的 Flutter 应用程序无法运行?漏洞!源单元中的阶段 'semantic analysis' 中的异常 '_BuildScript_' 不支持的类文件主要版本 60

android - 错误:Could not initialize class org. gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader

hibernate - 无法使用Spring Boot + GORM + Gradle设置NamingStrategy

groovy - 包括gradle中的依赖

android - 基于构建类型和风格的 Gradle 依赖关系

java - 如何持久化实体类中的数据并与数据传输对象结合?

安卓工作室 : How to change Kotlin version that is used for building with Gradle

java - Spring STS 3.6.1 和 Gradle 插件

android - 检查 kapt 是否使用增量注释处理