2014-02-21 31 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

相关问题