我正在尝试在四个项目上安装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
答案 0 :(得分:0)
显示
fr.inra.grignon的不可解析的父POM:persyst:1.0-snapshot
这意味着这表明maven在本地搜索父pom,但发现它不是正确的pom或丢失。如果项目是多模块,它应该有父项目。
参考对于multimodule项目,您可以查看以下链接:
https://maven.apache.org/guides/mini/guide-multiple-modules.html