Skip to content

Instantly share code, notes, and snippets.

@henryyan
Created December 15, 2011 09:26
Show Gist options
  • Save henryyan/1480498 to your computer and use it in GitHub Desktop.
Save henryyan/1480498 to your computer and use it in GitHub Desktop.
Non-resolvable parent POM: Could not find artifact com.runchain.arch:rc-parent:pom:1.4.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 5, column 10
有一个项目的配置文件:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.runchain.arch</groupId>
<artifactId>rc-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
</parent>
<groupId>com.runchain.joying</groupId>
<artifactId>joying-erp</artifactId>
........
rc-parent我已经部署到私服了
然后我把我本地的仓库目录删除,在项目中运行:mvn compile
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.runchain.joying:joying-erp:1.0.0-SNAPSHOT (/home/henryyan/work/runchain/projects/joying/joying-erp/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact com.runchain.arch:rc-parent:pom:1.4.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 5, 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 following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
怎么解决?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment