2015-09-21 18 views
1

我gradle這個構建失敗,因爲從artifactory的錯誤:搖籃無法下載從本地artifactory的對外依存度應下載表格mavenCentral

FAILURE: Build failed with an exception. 

* What went wrong: 

Could not resolve all dependencies for configuration ':PublishService:compile'. 
> Could not resolve org.geotools:gt-wfs:9.0. 
    Required by: 
     infraview_gradle:PublishService:0-SNAPSHOT > net.infraview:infraview_context:0-SNAPSHOT 
     infraview_gradle:PublishService:0-SNAPSHOT > net.infraview:infraview_srv_masterdata:0-SNAPSHOT 
> Could not HEAD 'http://beast:8082/artifactory/libs-snapshot-local/org/geotools/gt-wfs/9.0/gt-wfs-9.0.pom'. Received status code 409 from server: Conflict 

的geotools神器是不是在我的「庫 - 快照 - 本地」 - artifactory。

爲什麼gradle這個嘗試下載是從那裏?

當我粘貼請求

http://beast:8082/artifactory/libs-snapshot-local/org/geotools/gt-wfs/9.0/gt-wfs-9.0.pom 

到瀏覽器中,我得到:

"message" : "The repository 'libs-snapshot-local' rejected the artifact 'libs-snapshot-local:org/geotools/gt-wfs/9.0/gt-wfs-9.0.pom' due to its snapshot/release handling policy." 

爲什麼artifactory的抱怨「快照發布的處理政策」,雖然這個罐子是不是在artifactory的中第一個地方?

這是一個gradle這個或artifactory的問題?

+4

僞影'org.geotools:GT-WFS:9.0'顯然是一個_release_僞像,而不是一個一個_snapshot_。它真的不屬於快照回購! – Seelenvirtuose

+0

是的,那是真的。奇怪的是我在快照庫中找不到這個工件。因此我無法刪除它。 –

回答

0

好吧,我知道了。有其中包含的罐子artifactory的旁邊的「庫快照釋放」另一回購。

感謝您的評論。