gpt4 book ai didi

java - 使用 Maven 构建 SOAPUI 失败

转载 作者:行者123 更新时间:2023-12-01 11:45:06 25 4
gpt4 key购买 nike

我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 也不在那里。很可能他们的本地 Artifact 中有这个 jar,但从来没有费心更新依赖项。

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

关于java - 使用 Maven 构建 SOAPUI 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29214610/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com