maven err - 指向错误的本地POM

时间:2016-09-30 04:35:06

标签: java maven compiler-errors

我收到以下错误..任何人都可以请帮助。

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.timwe.unity.core:unity-core-subscription-manager-crm-web:1.0.14-SNAPSHOT: Could not find artifact com.timwe.unity.core:unity-core-subscription-manager-crm:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 11
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.timwe.unity.core:unity-core-subscription-manager-crm-web:1.0.14-SNAPSHOT (D:\emomi\workspace\smSubscription\webapp-unity-celcom-subscription\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.timwe.unity.core:unity-core-subscription-manager-crm-web:1.0.14-SNAPSHOT: Could not find artifact com.timwe.unity.core:unity-core-subscription-manager-crm:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 11 -> [Help 2]

当我把妈妈打扫干净时,我得到了这个。

错误的pom部分:

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <parent>
    <groupId>com.timwe.unity.core</groupId>
    <artifactId>unity-core-subscription-manager-crm</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>../</relativePath>
  </parent>

1 个答案:

答案 0 :(得分:0)

C:\ Users \ Developer.m2

中缺少

settings.sml

添加相同的

后工作正常