排除无法解决的maven依赖关系

时间:2015-08-04 15:17:05

标签: java maven

我是maven的新人,所以忍受。看起来外部依赖关系的依赖关系不再解析并且构建失败。我甚至无法对内部项目进行更改,因此需要进行本地修复。解决这个问题的最佳方法是什么? .m2 / settings.xml中的东西?

[INFO] Building <internal-project>
[INFO] ------------------------------------------------------------------------
Downloading: http://m2.modularity.net.au/snapshots/net/modularity/modularity-parent/1.0.8-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata net.modularity:modularity-parent:1.0.8-SNAPSHOT/maven-metadata.xml from/to modularity-snapshots (http://m2.modularity.net.au/snapshots): m2.modularity.net.au: nodename nor servname provided, or not known
Downloading: http://m2.modularity.net.au/snapshots/net/modularity/modularity-parent/1.0.8-SNAPSHOT/modularity-parent-1.0.8-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] <internal-project> ................................... SUCCESS [  1.274 s]
[INFO] <internal-project> ............................... FAILURE [  0.665 s]
[INFO] <internal-project> ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.104 s
[INFO] Finished at: 2015-08-04T15:12:27+01:00
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project <internal-project>: Could not resolve dependencies for project <internal-project>: Failed to collect dependencies at <internal-project> -> <internal-project> -> <internal-project> -> org.semanticdesktop.aperture:aperture-core:jar:1.5.1-SNAPSHOT -> net.fortuna.mstor:mstor:jar:0.9.13-20100823122854: Failed to read artifact descriptor for net.fortuna.mstor:mstor:jar:0.9.13-20100823122854: Could not transfer artifact net.modularity:modularity-parent:pom:1.0.8-SNAPSHOT from/to modularity-snapshots (http://m2.modularity.net.au/snapshots): m2.modularity.net.au: Unknown host m2.modularity.net.au -> [Help 1]

1 个答案:

答案 0 :(得分:0)

  
    

如果您有jar,可以直接将其安装到本地.m2文件夹中,以便maven不需要下载它 - Alessandro Da Rugna

  

我最后还是这样做了。谢谢亚历山德罗和其他人!