当前位置:编程学习 > JAVA >>

有关maven项目依赖的问题,求高人解答~

本人采用maven构建项目,带子模块的那种,在父项目上 maven package,所有模块都能成功,但如果在某一个子模块上 maven package就会提示,当前子模块依赖另外一个子模块找不到,提示如下:
Downloading: http://192.168.198.7:8081/nexus/content/groups/public/com/feinno/fdc-monitor/1.0.0/fdc-monitor-1.0.0.pom
Downloading: http://192.168.198.7:8081/nexus/content/groups/public/com/feinno/fdc-common/1.0.0/fdc-common-1.0.0.pom
[ERROR] Failed to execute goal on project fdc-compute: Could not resolve dependencies for project com.feinno:fdc-compute:war:1.0.0: Failed to collect dependencies for [com.feinno:fdc-monitor:jar:1.0.0 (compile), com.feinno:fdc-common:jar:1.0.0 (compile),: Could not transfer artifact com.feinno:fdc-monitor:pom:1.0.0 from/to (http://127.10.11.9:8081/nexus/content/groups/public/): Connection refused: no further information -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
   maven去远程仓库下载依赖的另外一个子模块了,不明白,为啥maven去下载呢?? maven dependencies jar --------------------编程问答-------------------- 还是你查查maven的原理吧。
毕竟自动导包软件没有人工操作那么智能,我使用maven的时候某些包甚至会被导错,需要额外的配置文件才可以。
顶一下,对于具体的maven的原理我也不是很清楚。
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,