Maven打包报错
maven打包,報(bào)錯(cuò)信息如下:
[ERROR] ? The project com.boImpl:[unknown-version] ..\pom.xml) has 1 error
[ERROR] ? ? Non-resolvable parent POM for com.boImpl:[unknown-version]: Failure to find com.parent:pom:1.0.0 in http://maven.aliyun.com/nexus/was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 11 -> [Help 2]
意思是說:在本地存儲(chǔ)庫中緩存了父POM,而relativePath指向錯(cuò)誤的本地POM。
解決辦法:在pom.xml的<parent> </parent>下加入relativePath指向父POM:
?<relativePath>../mei-parent/pom.xml</relativePath>
?
總結(jié)
- 上一篇: linux 内存查看 kvm,Linux
- 下一篇: k8s iptable升级到ipvs