4

在构建具有依赖项的 giraph jar 时,我们收到以下警告.. 真的不知道如何解决这些.. 我们已经尝试过

useProjectArtifact 为 false

unpack 为 true

两种剂量似乎都有效

任何建议如何解决这些...??

[WARNING] Failure to transfer asm:asm/maven-metadata.xml from file:../../local.repository/trunk was cached in the local repository, resolution will not be reattempted until the update interval of local.repository has elapsed or updates are forced. Original error: Could not transfer metadata asm:asm/maven-metadata.xml from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories WagonRepositoryConnectorFactory

[WARNING] Failure to transfer asm:asm/maven-metadata.xml from file:../../local.repository/trunk was cached in the local repository, resolution will not be reattempted until the update interval of local.repository has elapsed or updates are forced. Original error: Could not transfer metadata asm:asm/maven-metadata.xml from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories WagonRepositoryConnectorFactory
4

1 回答 1

0

这看起来像是连接问题、代理或防火墙,因此您可以制定以下解决方案:

  • 显式引用 ASM 依赖项。查看正确的版本并尝试将其添加到您的 pom ( http://mvnrepository.com/artifact/asm/asm ) 中。之后,执行mvn install以确保一切正常。

  • 如果它不起作用,您可以尝试手动下载依赖项并将其复制到本地存储库(本地文件夹“.m2”)中,可能位于“/.m2/asm/asm/”。不是最好的解决方案,但也许这可以解决您的问题。

希望能帮助到你!

于 2014-03-17T20:22:47.530 回答