使用maven的SOAPUI构建失败

时间:2015-03-23 15:51:25

标签: java maven soapui

我git clone soapui 5.1.2,已安装maven 3.3.1并按照说明https://github.com/SmartBear/soapui尝试使用

构建soapui
mvn clean install

最后我在截图

中遇到了这个错误
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] SoapUI project ..................................... SUCCESS [01:05 min]
    [INFO] SoapUI ............................................. FAILURE [02:16 min]
    [INFO] SoapUI Maven plugin ................................ SKIPPED
    [INFO] SoapUI installer ................................... SKIPPED
    [INFO] SoapUI Maven plugin tester ......................... SKIPPED
    [INFO] SoapUI system test ................................. SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 03:21 min
    [INFO] Finished at: 2015-03-23T16:44:23+01:00
    [INFO] Final Memory: 13M/217M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project soapui: Could not resolve dependencies
     for project com.smartbear.soapui:soapui:jar:5.2.0-SNAPSHOT: Could not find arti
    fact org.sonatype.install4j:i4jruntime:jar:5.1.14 in smartbear-sweden-repository
     (http://www.soapui.org/repository/maven2) -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please rea
    d the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
    lutionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command

    [ERROR]   mvn <goals> -rf :soapui

我的连接很好。但我无法在http://www.soapui.org/repository/maven2/

中看到org.sonatype.install4j:i4jruntime:jar:5.1.14

为什么?这是否意味着编辑忘了把它放在一边,这样他们就错了,而不是我做错了什么?如何解决这个问题?联系编辑?

1 个答案:

答案 0 :(得分:1)

根据错误,问题出在soapui/pom.xml。他们正在引用:

<dependency>
    <groupId>org.sonatype.install4j</groupId>
    <artifactId>i4jruntime</artifactId>
    <version>5.1.14</version>
</dependency>

两次,只是为了确定我猜。这个罐确实不在Maven Central

他们的整个项目只有一个自定义存储库 - their own(也在错误中提到) - 而且这个jar也不存在。他们有可能在他们的本地神器中使用这个jar,并且从不打扰更新依赖项。

请记住,Maven只是一个工具,就像任何工具一样,如果你使用错误,它会做错事。您可以从他们的pom中删除依赖项并查看项目是否构建,或者在Internet上搜索此jar并手动将其放在本地存储库中。