有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java为什么Maven找不到这个jar

我的项目需要以下JAR,因此我将其添加到pom中。xml

<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时,它试图从各种回购协议下载,最终失败了。它只创建内容如下的“LastUpdate”文件

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

有人有什么建议吗?这个罐子不在了吗

谢谢


共 (1) 个答案

  1. # 1 楼答案

    该人工制品不在Maven Central(或其他默认回购协议)中,因此Maven不会自动找到它。该^{} page on Github说明:

    soap-ws is not yet located in the central maven repo, thus you also have to add an additional repository to your config.

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