【问题标题】:Maven Build gets Failed saying Could not assemble p2 repository: Mirroring failed: No repository found atMaven 构建失败,说无法组装 p2 存储库:镜像失败:找不到存储库
【发布时间】:2018-09-14 06:52:27
【问题描述】:

我有一个用于构建 Eclipse 插件的 Maven 构建,该插件在执行期间会偶尔挂起

--- tycho-p2-repository-plugin:1.1.0:assemble-repository (default-assemble-repository) @ com.sample.product ---

否则构建将失败并显示以下错误。

 [ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:1.1.0:assemble-repository (default-assemble-repository) on project p2:Could not assemble p2 repository: Mirroring failed: No repository found at file:/C:/Users/obuli/.m2/repository/.

我正在使用以下 maven 目标和选项

clean deploy -Dtycho.localArtifacts=ignore

我已经搜索了这个问题并登陆了这个Bug,它说tycho 0.26.0 中有一个错误但我目前正在使用Tycho version 1.1.0 由于问题非常零星,我无法确定根本原因。请让我在这里缺少什么。

【问题讨论】:

    标签: maven eclipse-rcp tycho p2


    【解决方案1】:

    我也间歇性地遇到过这个问题。分别运行mvn cleanmvn deploy一次后,mvn clean deploy也开始工作了。

    现在我似乎无法重新创建原始问题,即使使用 git clean -xfd 并从本地和远程存储库中删除所有快照。

    我只能猜测早期构建中的一些剩余文件没有被mvn clean deploy 清理,而是被mvn clean 清理,这些剩余文件一定破坏了构建。

    【讨论】:

      猜你喜欢
      • 2018-10-25
      • 2016-10-09
      • 1970-01-01
      • 2022-08-14
      • 1970-01-01
      • 2022-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多