簡體   English   中英

用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>

兩次,以確保我猜得到。 這個罐子確實在Maven Central中不可用。

他們的整個項目僅指定了一個自定義存儲庫- 他們自己的存儲庫(錯誤中也提到了)-而且這個jar也不存在。 很有可能他們在本地工件中有這個jar,並且從來沒有打擾過更新依賴項。

請記住,Maven只是一個工具,就像其他任何工具一樣,如果使用不正確,它將做錯事情。 您可以從他們的pom中刪除該依賴項,然后查看該項目是否生成,或者在Internet上搜索此jar,然后將其手動放置在本地存儲庫中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM