Maven 3警告:无法传输asm:asm / maven-metadata.xml

时间:2013-01-10 09:18:20

标签: maven-2 maven-3 pom.xml maven-assembly-plugin

在构建带有依赖关系的giraph jar时,我们会收到以下警告..真的不知道如何解决这些问题..我们已经尝试过了

useProjectArtifact为false

解包为真

剂量似乎都起作用

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

[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

1 个答案:

答案 0 :(得分:0)

这看起来像连接问题,代理或防火墙,因此您可以勾选此解决方案:

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

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

希望它有所帮助!