Maven:Non-resolvable parent POM: Failure to find錯誤
使用Maven編譯淘寶的TimeTunnel專案時遇到如下錯誤:
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.taobao:timetunnel-client:0.2.0-SNAPSHOT (E:\MyWork\TimeTunnel\time
lient\java\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.taobao:timetunnel:pom:0.2.0-SNAPS
ttp://192.168.169.48:6677/nexus/content/groups/public/ was cached in the local repository, r
n will not be reattempted until the update interval of nexus has elapsed or updates are forc
parent.relativePath' points at wrong local POM @ line 4, column 10 -> [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 follow
cles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
由提示可知是parent.relativePath出錯。解決辦法如下:
<parent>
<artifactId>timetunnel</artifactId>
<groupId>com.taobao</groupId>
<version>0.2.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<groupId>com.taobao</groupId>
<artifactId>timetunnel-client</artifactId>
<version>0.2.0-SNAPSHOT</version>
由<relativePath>../../pom.xml</relativePath>指定正確的父pom路徑,預設為../pom.xml。
詳細資訊:
The relative path of the parent pom.xml file within the check out. If not specified, it defaults to ../pom.xml. Maven looks for the parent POM first in this location on the filesystem, then the local repository, and lastly in the remote repo. relativePath allows you to select a different location, for example when your structure is flat, or deeper without an intermediate parent POM. However, the group ID, artifact ID and version are still required, and must match the file in the location given or it will revert to the repository for the POM. This feature is only for enhancing the development in a local checkout of that project. Set the value to an empty string in case you want to disable the feature and always resolve the parent POM from the repositories.
Default value is: ../pom.xml.
詳見:http://maven.apache.org/ref/3.0.3/maven-model/maven.html#class_parent
相關文章
- Maven - Non-resolvable parent POM: Failure to find xx:xx:pomMavenAI
- maven專案構建報錯:Could not find artifact com.xxx.cloud:xxx-cloud:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POMMavenCloud
- Assertion failure 錯誤AI
- eclipse建maven pom報錯EclipseMaven
- 建立Maven專案出錯 pom出錯Maven
- Maven的POM檔案parent節點不可以使用properties裡面的變數Maven變數
- 新建maven專案pom報錯的問題Maven
- pom-建立web專案錯誤Web
- ORA-600(kssadd: null parent)錯誤Null
- Maven中pom.xml解析MavenXML
- ORA-600(kssadd_stage: null parent)錯誤Null
- Http failure response 0 Unknown error 錯誤分析HTTPAIError
- Maven中POM專案物件模型Maven物件模型
- Maven的pom檔案那些事Maven
- Maven下載jar包慢,pom報錯的解決辦法MavenJAR
- Maven 教程之 pom.xml 詳解MavenXML
- Maven中的pom.xml詳解MavenXML
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">報錯HTTPMavenApache
- 錯誤 - Could not find the index entry for RIDIndex
- [CareerCup] 12.1 Find Mistakes 找程式錯誤
- Maven的pom.xml檔案詳解MavenXML
- Maven pom.xml檔案配置詳解MavenXML
- Resolving failed: Temporary failure in name resolution 錯誤解決方法AI
- Maven建立專案遇到導包錯誤:Maven
- 解決Eclipse裡的Maven工程pom.xml檔案報:web.xml is missing and <failOnMissingWebXml> is set to true錯誤EclipseMavenXMLWebAI
- CRM中介軟體裡parent not ok的錯誤訊息如何處理
- 使用maven搭建hibernate的pom檔案配置Maven
- maven的pom檔案的所有元素的用法。Maven
- 建立Maven工程時出錯,Failure to transfer com.thoughtworks.xstream:xstream:jar:1.3.1MavenAIJAR
- Maven快速入門(四)Maven中的pom.xml檔案詳解MavenXML
- maven專案打包時生成dependency-reduced-pom.xmlMavenXML
- maven的pom.xml用解決版本問題MavenXML
- Python改寫maven的pom.xml檔案PythonMavenXML
- 【SSM整合】-Maven管理SSM框架的pom.xml配置SSMMaven框架XML
- Maven實戰:pom.xml與settings.xmlMavenXML
- Maven 本地倉庫明明有jar包,pom檔案還是報錯解決辦法MavenJAR
- Maven多模組中,parent version如何採用自定${version}表示Maven
- 出現錯誤 Project ‘org.springframework.boot:spring-boot-starter-parent’ not foundProjectSpringFrameworkboot