2014-02-21 35 views
1

我有以下JAR,我的項目需要,所以我把它添加到我的pom.xml ...爲什麼Maven的不是找不到這個罐子

<dependency> 
     <groupId>org.reficio</groupId> 
     <artifactId>soap-builder</artifactId> 
     <version>1.0.0-SNAPSHOT</version> 
     <exclusions> 
      <exclusion> 
       <groupId>org.apache.ws.commons.schema</groupId> 
       <artifactId>XmlSchema</artifactId> 
      </exclusion> 
     </exclusions> 
    </dependency> 

但是,當我運行Maven它試圖從不同的回購下載並最終失敗。它只創建一個「lastUpdated」文件,其內容如下。

http\://repository.jboss.org/nexus/content/groups/public-jboss/.lastUpdated=1392941827625 
http\://www.terracotta.org/download/reflector/releases/.lastUpdated=1392941828195 

有沒有人有任何建議?這個JAR根本不在那裏嗎?

謝謝。

+0

你是哪裏人指定的任何資源庫那是嗎?因爲它不在maven中央。 –

回答

4

此文件不在Maven Central(或其他默認回購)中,因此Maven不會自動找到它。該reficio/soap-ws page on Github解釋:

soap-ws尚未位於中央Maven回購,因此你還需要額外的存儲庫添加到您的配置。

<repositories> 
    <repository> 
     <id>reficio</id> 
     <url>http://repo.reficio.org/maven/</url> 
    </repository> 
</repositories> 
+0

是的,這是我失蹤。謝謝! – AbuMariam

相關問題