qingshangyijiuzai 2016-02-28 16:37 采纳率: 0%
浏览 9083

maven多模块项目,构建子模块失败

初学maven,构建多模块项目时,父模块能正常构建,子模块构建时产生如下异常:
整体目录

我更新过本地仓库:D:\maven_repository,原本是没有配置parent标签的relativePath属性,eclipse自动就给出了错误提示,配了后,错误提示消失了,个人分析,“relativePath”的配置是正确的,但是还是无法正确构建成功。不知道有没有前辈有遇到过该问题或者有该情况解决办法,万望“拔刀相助”,不吝赐教,小弟这厢先谢过啦!
工作空间目录如下:工作空间目录
尝试过在Eclipse中通过clean install 之执行过:指令操作
构建子模块时,控制台完整的异常信息如下:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.jikexueyuan:helloweb-entity:1.0-SNAPSHOT: Failure to find com.jikexueyuan:helloweb-parent:pom:1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]

[ERROR] The project com.jikexueyuan:helloweb-entity:1.0-SNAPSHOT (D:\TrueTimeWorkspace\helloweb\modules\helloweb-entity\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.jikexueyuan:helloweb-entity:1.0-SNAPSHOT: Failure to find com.jikexueyuan:helloweb-parent:pom:1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 11 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

  • 写回答

2条回答

  • devmiao 2016-03-08 05:02
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧