2012-01-28 143 views
1

對於在本地存儲庫中安裝(手動)安裝的Maven依賴關係,可能會導致org.gradle.api.internal.artifacts.ivyservice.ModuleVersionNotFoundException?Gradle ModuleVersionNotFoundException對於本地存儲庫中的Maven依賴關係

在主控的build.gradle我已經定義:

repositories { 
    mavenLocal() 
} 

和子模塊的一個:

dependencies { 
compile group: 'fairPlayer.includes', name: 'lastfm-bindings', version: '160-SVN' 
} 

和我有

"lastfm-bindings-160-SVN.jar" 

"lastfm-bindings-160-SVN.pom" 

~\.m2\repository\fairPlayer\includes\lastfm-bindings\160-SVN\ 

我使用的是1.0 milestone7

的哪些錯誤?

回答

1

這意味着沒有找到依賴關係。您是否也有子項目的repositories聲明?

+0

groupId和dir都應該被命名爲「fairplayer」而不是「fairPlayer」。 Gradle似乎將groupId轉儲爲小寫,然後搜索工件。 – user961474 2012-01-28 17:56:35

相關問題