【问题标题】:Maven 3 warnings: Failure to transfer asm:asm/maven-metadata.xmlMaven 3 警告:传输 asm:asm/maven-metadata.xml 失败
【发布时间】:2012-12-24 15:07:49
【问题描述】:

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

使用ProjectArtifact为假

解压为真

似乎都有效

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

[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

【问题讨论】:

  • 代理后面?防火墙?
  • 你更改了 settings.xml 吗?

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


【解决方案1】:

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

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

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

希望对您有所帮助!

【讨论】:

    猜你喜欢
    • 2017-08-20
    • 2015-12-16
    • 1970-01-01
    • 2012-06-14
    • 1970-01-01
    • 1970-01-01
    • 2018-04-08
    • 2011-05-06
    • 1970-01-01
    相关资源
    最近更新 更多