2012-12-10 159 views
1

获取最新的谷歌驱动的API我有加解析器ivysettings.xml由常春藤

<ibiblio name="google-api-services" root="http://mavenrepo.google-api-java-client.googlecode.com/hg" m2compatible="true" /> 

却得到了一个错误

module not found: com.google.apis#google-api-services-drive;v2-rev13-1.8.0-beta 

回答

0

它解决了对我很好.....也许是有你的ivysettings文件有问题吗?

以下示例配置Google API服务回购和Maven Central。

<ivysettings> 
    <settings defaultResolver="repos" /> 
    <resolvers> 
     <chain name="repos"> 
      <ibiblio name="central" m2compatible="true"/> 
      <ibiblio name="google-api-services" m2compatible="true" root="http://mavenrepo.google-api-java-client.googlecode.com/hg"/> 
     </chain> 
    </resolvers> 
</ivysettings> 
+0

是的,我重写默认设置,但忘了包括股份解析器 – atu0830

+0

@ atu0830也http://stackoverflow.com/questions/4836011/use-public-maven-repository-with-ivy/4837149#4837149见 –