2012-12-10 195 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見 –