The POM for xxxx is missing, no dependency information available
来源:互联网 发布:很便宜的手账淘宝店铺 编辑:程序博客网 时间:2024/05/08 08:09
很久以前用Maven的时候基本都是一个工程,后来感觉太落伍了,就根据geoserver源码开始分模块对功能进行优化。后来有个新来的同事也碰到了这个问题,我就给他解决一下,顺便把以前的心得记录一下,日子久了,什么都容易忘。
用maven搭建多模块工程,这个过程我就不再赘述了,网上大把的帖子。这里引用一个感觉还不错:
http://www.cnblogs.com/quanyongan/archive/2013/05/28/3103243.html(转载借用)
首先建好工程,如图,一个父工程,三个子模块:qgg-web依赖qgg-core和qggservice
如果你要是在qgg-web上启动程序,就会报错,如下图
[WARNING] The POM for com.sdzx:qgg-core:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.sdzx:qgg-service:jar:0.0.1-SNAPSHOT is missing, no dependency information available
为什么呢,是你的用法错误,你这这里折腾一百回也会错误。有人说在只要把三个子模块mvn install一下就没有错误了,这就又衍生了一个问题,就是你在修改qgg-core以后,在qgg-web中引用qgg-core的类就会发生“找不到某个类或者找不到某个方法的错误。
正确的用法是在父工程的pom.xml上执行程序,如图
执行成功
2 0
- The POM for xxxx is missing, no dependency information available
- The POM for xxxx is missing, no dependency information available
- The POM for is missing, no dependency information available
- THE POM for ... is missing,no dependency information available
- maven中The pom for .........is missing,no depency information available
- The POM for 0.0.1-SNAPSHOT is missing, no dependency informat
- Auction-service:jar:0.0.1-SNAPSHOT is missing, no dependency information available
- SparkSQL: no typetag available for xxxx
- There is no tracking information for the current branch.
- there is no source code available for the current location
- There is No Source Code Available for the Current Location
- There is no source code available for the current location
- There is no source code available for the current location.
- 'dependencies.dependency.version' is missing for xxx
- The Run-time Type Information library for the Pocket PC 2003 SDK is available
- In company code XX, the number range 01 is missing for the year XXXX
- The POM for XXX is invalid, transitive dependencies (if any) will not be available
- The dependency `XXXX` is not used in any concrete target.
- doecker忘记root密码怎么办
- 使用 CSS 去掉 iPhone 网页上按钮的超大圆角默认样式
- 城市名称对应车牌的前缀的Json数据
- socket servlet websocket 概念 区别与联系
- hadoop笔记
- The POM for xxxx is missing, no dependency information available
- 回车键敲在文本框里来提交表单的实现
- 观察者模式(Observer)
- hadoop安装笔记
- noip模拟题11.17 距noip2016还剩一天
- ueditor图片上传,以及图片路径保存进数据库
- linux文件操作 nl显示行号
- MR--案列2
- android打开.jks文件,获取shai值和md5和alias