maven报错记录:org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact com.gwm.boot:gwm-parent:pom:1.0.0-SNAPSHOT

发布时间 2023-03-29 10:20:26作者: Doyourself!

  报错如下:

   

[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] expected START_TAG or END_TAG not TEXT (position: TEXT seen ....aliyun.com/nexus/content/groups/public/</url>;           \n     </... @176:8)  @ D:\tool\apache-maven-3.8.3\conf\settings.xml, line 176, column 8
[WARNING]
[INFO] Scanning for projects...
Downloading from gwmdc-ora-truck-project-gwm-lafeng: https://gwmdc-maven.pkg.coding.net/repository/lafeng/lafeng_parent/com/gwm/boot/gwm-parent/1.0.0-SNAPSHOT/maven-metadata.xml
Downloading from gwmdc-ora-truck-project-gwm-lafeng: https://gwmdc-maven.pkg.coding.net/repository/lafeng/lafeng_parent/com/gwm/boot/gwm-parent/1.0.0-SNAPSHOT/gwm-parent-1.0.0-SNAPSHOT.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.gwm.marketing:gwm-marketing-uc:1.0.0-SNAPSHOT: Could not find artifact com.gwm.boot:gwm-parent:pom:1.0.0-SNAPSHOT in gwmdc-ora-truck-project-gwm-lafeng (https://gwmdc-maven.pkg.coding.net/repository/lafeng/lafeng_parent/) and 'parent.relativePath' points at wrong local POM @ line 6, column 13
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.gwm.marketing:gwm-marketing-uc:1.0.0-SNAPSHOT (D:\workspace\gwm-marketing-uc\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.gwm.marketing:gwm-marketing-uc:1.0.0-SNAPSHOT: Could not find artifact com.gwm.boot:gwm-parent:pom:1.0.0-SNAPSHOT in gwmdc-ora-truck-project-gwm-lafeng (https://gwmdc-maven.pkg.coding.net/repository/lafeng/lafeng_parent/) and 'parent.relativePath' points at wrong local POM @ line 6, column 13 -> [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

  原因是需要先去gwm-parent:pom 下拉取即可