使用 Maven 构建 SOAPUI 失败

SOAPUI build with maven failed

我 git 克隆 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

为什么?这是否意味着编辑忘记放它所以这是他们的错误而不是我做错了什么?如何解决这个问题?联系编辑 ?

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

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

两次,只是为了确定我猜。这个 jar 在 Maven Central.

确实不可用

他们的整个项目只指定了一个自定义存储库 - their own(错误中也提到) - 而且这个 jar 也不存在。他们很可能在他们的本地工件中有这个 jar,并且从不费心更新依赖项。

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