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
- 建立Maven專案出錯 pom出錯Maven
- Maven POMMaven
- Maven的POM檔案parent節點不可以使用properties裡面的變數Maven變數
- pom-建立web專案錯誤Web
- Http failure response 0 Unknown error 錯誤分析HTTPAIError
- maven超級pom內容Maven
- [20180302]使用find命令小錯誤.txt
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">報錯HTTPMavenApache
- Maven下載jar包慢,pom報錯的解決辦法MavenJAR
- Maven中POM專案物件模型Maven物件模型
- Maven 教程之 pom.xml 詳解MavenXML
- CRM中介軟體裡parent not ok的錯誤訊息如何處理
- 出現錯誤 Project ‘org.springframework.boot:spring-boot-starter-parent’ not foundProjectSpringFrameworkboot
- Maven建立專案遇到導包錯誤:Maven
- Maven的pom.xml檔案詳解MavenXML
- mysql 報錯 Communications link failureMySqlAI
- Python改寫maven的pom.xml檔案PythonMavenXML
- Maven快速入門(四)Maven中的pom.xml檔案詳解MavenXML
- Maven 本地倉庫明明有jar包,pom檔案還是報錯解決辦法MavenJAR
- eclipse中maven專案failonmissingwebxml錯誤的修復EclipseMavenAIWebXML
- Lombok 的@ToString導致的Maven編譯錯誤LombokMaven編譯
- docker中建立Nginx和php-pfm 報file not find .錯誤。DockerNginxPHP
- maven的pom.xml用解決版本問題MavenXML
- idea執行java專案main方法報build failure錯誤的解決方法IdeaJavaAIUI
- maven本地倉庫有jar包,但是每次重新整理pom報錯找不到映象檔案MavenJAR
- Maven多模組中,parent version如何採用自定${version}表示Maven
- Maven關於配置setting.xml出現的錯誤MavenXML
- Maven-POM中的各種scope的行為總結Maven
- find 命令刪除冗餘 Nginx 錯誤日誌並實現備份Nginx
- Flask擴充套件包安裝出現錯誤:Could not find a version that satisfies the requirement ...Flask套件UIREM
- 錯誤 qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ 的解決方法QTPluginPlatformWindows
- win10系統出現藍屏並提示DRIVER POWER STATE FAILURE錯誤如何解決Win10AI
- forEach、map、filter、find、sort、find等易錯點整理Filter
- file_get_content s()獲取https出現這個錯誤Unable to find the wrapperHTTPAPP
- 【maven】Maven報錯 zip END header not foundMavenHeader
- IDEA專案已新增jar包,pom檔案,打包Maven卻一直報錯的幾種解決方法IdeaJARMaven