【问题标题】:Project build error: Non-resolvable parent POM for com.smartbear.soapui:soapui:[unknown-version]项目构建错误:com.smartbear.soapui:soapui:[unknown-version] 的不可解析父 POM
【发布时间】:2016-08-10 06:09:07
【问题描述】:

我正在尝试创建可以执行 SOAPUI 测试用例的简单 MAVEN 项目。

我正在尝试使用 SOAPUI 网站中提到的 pom.xml。以下是链接:

http://smartbearsoftware.com/repository/maven2/com/smartbear/soapui/soapui/5.2.1/

在 POM.xml 中我得到以下异常:

Project build error: Non-resolvable parent POM for com.smartbear.soapui:soapui:[unknown-version]: Failure to find com.smartbear.soapui:soapui-project:pom:
 5.2.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has 
 elapsed or updates are forced and 'parent.relativePath' points at wrong local POM

正如错误消息所说,我认为它找不到父存储库。

【问题讨论】:

  • 您在 pom 文件中的某处使用了错误的依赖项等,没有版本:com.smartbear.soapui:soapui:[unknown-version] ?
  • @khmarbaise 感谢您的回复。我为此添加了版本。还是一样的问题
  • 删除本地仓库$HOME/.m2/repository/com/smartbear/soapui中的文件夹并重建...
  • 还是一样的问题..

标签: maven soapui


【解决方案1】:

您要查找的依赖项在 http://smartbearsoftware.com/repository/maven2/ maven 存储库中,但不在 https://repo.maven.apache.org/maven2/ 中(至少现在,也许将来会添加到另一个存储库中)。

从这个意义上说,您显示的错误非常清楚:

... 在https://repo.maven.apache.org/maven2 中找不到 com.smartbear.soapui:soapui-project:pom:5.2.1 ...

要解决您的问题,您必须在 POM.xml 或 maven 设置中添加 smartbear 存储库,以解决所需的依赖关系。例如,添加POM.xml 只需使用<repositories> 节点,如下所示:

<project>
...
  <repositories>
    <repository>
      <id>smartbear</id>
      <name>smartbear repository</name>
      <url>http://smartbearsoftware.com/repository/maven2</url>
    </repository>
  </repositories>
...

您可以查看有关配置额外 maven 存储库的更多信息here

【讨论】:

    猜你喜欢
    • 2017-04-16
    • 2019-03-31
    • 1970-01-01
    • 1970-01-01
    • 2020-07-09
    • 2017-12-02
    • 1970-01-01
    相关资源
    最近更新 更多