2015-09-15 204 views
1

我使用Hadoop和配置單元的依賴性開發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' 

的依賴關係,但我面臨以下錯誤,我無法化解美妙的事情是,如果我建使用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 

回答

1

由於黑客可以使用

repositories { 
    mavenCentral() 

    maven { 
     url "http://conjars.org/repo" 
    } 
} 
1

您需要添加所建議的黑客在你的build.gradle文件

repositories { 
    mavenCentral() 

    maven { 
     url "http://conjars.org/repo" 
    } 
}