我正在尝试为回购创建一个版本。我遇到的问题是当我跑步时
mvn release:prepare -DdryRun= true
我正在尝试在具有父级的 pom.xml 上运行它。
这是我要发布的 pom.xml。
...
<parent>
<groupId>com..ehr</groupId>
<artifactId>ehr-common</artifactId>
<version>0.5.0.26</version>
<relativePath> ../../EhrPom/main/pom.xml</relativePath>
</parent>
...
当我运行 mvn release:prepare -DdryRun=true。我收到此错误。
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/com//ehr//0.5.0.26/ehr-
-0.5.0.26.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com..ehr:emergency-login-webapp:2.0.7.0-SNAPSHOT
(/Users/computer1/Documents/computer1_MacBook/depot//-
webapp/main/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact in central (http://repo1.maven.org/maven2) and 'parent.relativePath'
points at wrong local POM @ line 8, column 11 -> [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
following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
我需要先释放父 pom 才能完成这项工作吗?这是否与它试图从http://repo1.maven.org/maven2/而不是我的 repo 下载这一事实有关?任何帮助将不胜感激谢谢!