maven 中maven dependencies中依赖出现了项目,无法打包 ,出现的错误如图。说明:依赖的项目为project-dao  打包的项目为project-service  都在project-parent中有依赖。

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building project-service 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.507s
[INFO] Finished at: Thu May 22 09:45:55 CST 2014
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project project-service: Could not resolve dependencies for project com.newhero.project:project-service:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [com.newhero.project:project-dao:jar:0.0.1-SNAPSHOT (compile?)]: Failed to read artifact descriptor for com.newhero.project:project-dao:jar:0.0.1-SNAPSHOT: Could not find artifact com.newhero.project:project-parent:pom:0.0.1-SNAPSHOT -> [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

解决方法:需要把parent工程,也就是project-parent工程先install一下,再试一下能不能打包project-service,不行的话再看看ERROR里的描述,找到描述语句的最后一个工程,把它install,这样就能打包project-service了。

最新文章

  1. Hadoop单机模式安装-(2)安装Ubuntu虚拟机
  2. ArcGIS中的VBA修复
  3. Linux下的Hello world
  4. redis cluster节点管理测试
  5. supervisor 配置
  6. scp 指定端口
  7. 生成Excel直接以流或字节形式发给客户端,无需在服务生成一个实体文件。
  8. Python实现kNN(k邻近算法)
  9. 《postfix MAIL服务搭建(第一篇):》RHEL6
  10. Redis是什么?
  11. NDK开发之获得域和方法描述符
  12. RedisTemplate.htm
  13. Hierarchical Storage structure
  14. 一,IL访问静态属性和字段
  15. Symfony3 更改生成CRUD目录步骤
  16. Pytorch学习笔记(一)Numpy SciPy MatPlotlib Tutorial
  17. 运用jieba库 寻找高频词
  18. MySQL环境变量的配置
  19. Java SE之Java中堆内存和栈内存[转/摘]
  20. Eclipse workspace 被占用问题

热门文章

  1. PAT 1011 World Cup Betting
  2. KM算法详解[转]
  3. [NOIP 2014TG D1T3] 飞扬的小鸟
  4. qt 调用zlib压缩与解压缩功能
  5. UltraEdit取消自动备份(.bak)
  6. python字符串内建函数
  7. bash 调试
  8. liunx 随笔集
  9. linux操作系统及命令Part 2
  10. bzoj1666