【问题标题】:dependency resolution issue in gradlegradle中的依赖解析问题
【发布时间】:2023-03-29 01:07:01
【问题描述】:

我使用hadoop和hive在gradle中开发项目,下面是项目的依赖项

org.apache.hive:hive-common:1.2.1'
     'org.apache.hive:hive-service:1.2.1'
    'org.apache.hive:hive-metastore:1.2.1'
     'org.apache.derby:derby:10.11.1.1'
     'org.apache.hive:hive-jdbc:1.2.1'

但是我遇到了以下我无法解决的错误 错误:

Could not resolve all dependencies for configuration ':compile'.
> Could not find org.pentaho:pentaho-aggdesigner-algorithm:5.1.5-jhyde.
  Searched in the following locations:
      https://jcenter.bintray.com/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom
      https://jcenter.bintray.com/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
  Required by:
      :HiveUnit:unspecified > org.apache.hive:hive-service:1.2.1 > org.apache.hive:hive-exec:1.2.1 > org.apache.calcite:calcite-core:1.2.0-incubating

【问题讨论】:

    标签: gradle-plugin


    【解决方案1】:

    您需要在 build.gradle 文件中添加建议的 hack

    repositories {
        mavenCentral()
    
        maven {
            url "http://conjars.org/repo"
        }
    }
    

    【讨论】:

    【解决方案2】:

    因为黑客可以使用

    repositories {
        mavenCentral()
    
        maven {
            url "http://conjars.org/repo"
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-05-01
      • 2017-04-10
      • 1970-01-01
      • 1970-01-01
      • 2019-03-08
      • 2021-07-31
      • 2019-04-24
      相关资源
      最近更新 更多