Non-resolvable parent POM ['parent.relativePath]

[ERROR]   The project com.muyangbing:hw-web:1.0-SNAPSHOT (F:\Code\leaningWorkSpace_lu_mvn\hw\modules\hw-web\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find com.muyangbing:hw-parent:pom:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, 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.xml。就是没找到父级的pom文件。

  
  		com.muyangbing
  		hw-parent
  		1.0
  
增加relativePath元素

  
  		com.muyangbing
  		hw-parent
  		1.0
  		../hw-parent/pom.xml
  


问题解决。   



你可能感兴趣的:(maven)