我試圖在四個項目上安裝maven。讓我解釋一下上下文:在Eclipse項目上安裝時出現Maven錯誤
我有一個項目(不是我的),我試圖運行它,但我在代碼中有錯誤,這顯然是maven錯誤。我用這個tuto配置了Maven Environnement:http://www.tutorialspoint.com/maven/maven_environment_setup.htm,它似乎工作。
關於該項目,整個項目分爲四個項目。我只擁有這四個項目,也許他們不會給我所有的項目資源(愚蠢),但爲什麼不呢。
所以我想在每個項目中安裝maven,我有一些錯誤,你能告訴我這是什麼意思嗎?我該怎麼做才能解決它?
文字版:
C:\Users\Lison\workspace\Persyst_1.4>mvn clean install -U
[INFO] Scanning for projects...
Downloading:
https://repo.maven.apache.org/maven2/eu/akka/AkkaToulouseSuperPom/1
.0/AkkaToulouseSuperPom-1.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for fr.inra.grignon:persyst:1.0-SNAPSHOT: Coul
d not find artifact eu.akka:AkkaToulouseSuperPom:pom:1.0 in central (https://rep
o.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @
line 6, column 10
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project fr.inra.grignon:persyst:1.0-SNAPSHOT (C:\Users\Lison\works
pace\Persyst_1.4\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for fr.inra.grignon:persyst:1.0-SNAPSHOT:
Could not find artifact eu.akka:AkkaToulouseSuperPom:pom:1.0 in central (https:/
/repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local P
OM @ line 6, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException
**編輯:**
Project 1
>src
>compile
>pom.xml
Project 2
>src
>pom.xml
Project 3
>src
>pom.xml
Project 4
>src
>pom.xml
好像你正在嘗試使用的神器,這不是在中央資料庫解析。如果這是一些內部開發工件,則可能需要在重試之前對該工件運行mvn install – Vogel612
這是一個多模塊Maven項目嗎?如果是這樣,您需要從父pom(root POM)運行Maven命令。 – Tunaki
您能否將文章發佈爲文本而不是位圖? –