2

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

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'

但我面临以下错误,我无法解决奇妙的事情是,如果我使用 maven 构建项目并在 maven 项目中添加相同的依赖项,它的工作正常,请让我知道与 gradle 错误相关的问题:

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
4

2 回答 2

3

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

repositories {
    mavenCentral()

    maven {
        url "http://conjars.org/repo"
    }
}
于 2016-11-09T15:48:30.883 回答
1

因为可以使用 hack

repositories {
    mavenCentral()

    maven {
        url "http://conjars.org/repo"
    }
}
于 2015-12-29T17:13:45.763 回答