【问题标题】:Project build error: Non-resolvable parent POM for org.camunda.bpm.webapp:camunda-webapp:[unknown-version]项目构建错误:org.camunda.bpm.webapp:camunda-webapp:[unknown-version] 的不可解析父 POM
【发布时间】:2017-04-16 23:29:36
【问题描述】:

我有以下问题。我下载了带有 camunda webapp 项目的 zip 文件并将其导入到 eclipse 中。现在我正在尝试编译它,但它对我不起作用。 下面是 pom.xml 文件的路径 https://github.com/camunda/camunda-bpm-webapp/blob/a80f58535f6675c04f16d31d99002b7f7c8850d1/pom.xml

当我尝试执行 maven clean 命令时,命令行显示:

[INFO] Scanning for projects...
[INFO] Downloading: http://10.232.196.180:8081/repository/mavenRepo/org/camunda/bpm/camunda-database-settings/7.5.7-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: http://10.232.196.180:8081/repository/mavenRepo/org/camunda/bpm/camunda-database-settings/7.5.7-SNAPSHOT/camunda-database-settings-7.5.7-SNAPSHOT.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.camunda.bpm.webapp:camunda-webapp:[unknown-version]: Could not transfer artifact org.camunda.bpm:camunda-database-settings:pom:7.5.7-SNAPSHOT from/to nexus (http://10.232.196.180:8081/repository/mavenRepo/): Failed to transfer http://10.232.196.180:8081/repository/mavenRepo/org/camunda/bpm/camunda-database-settings/7.5.7-SNAPSHOT/camunda-database-settings-7.5.7-SNAPSHOT.pom. Error code 400, Bad Request and 'parent.relativePath' points at wrong local POM @ line 6, column 11
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.camunda.bpm.webapp:camunda-webapp:[unknown-version] (D:\camunda\projects\camunda-bpm-webapp-7.5.0\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.camunda.bpm.webapp:camunda-webapp:[unknown-version]: Could not transfer artifact org.camunda.bpm:camunda-database-settings:pom:7.5.7-SNAPSHOT from/to nexus (http://10.232.196.180:8081/repository/mavenRepo/): Failed to transfer http://10.232.196.180:8081/repository/mavenRepo/org/camunda/bpm/camunda-database-settings/7.5.7-SNAPSHOT/camunda-database-settings-7.5.7-SNAPSHOT.pom. Error code 400, Bad Request and 'parent.relativePath' points at wrong local POM @ line 6, 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

【问题讨论】:

    标签: eclipse maven github camunda


    【解决方案1】:

    SNAPTSHOTS 仅在 Camunda nexus 存储库中可用。 将存储库添加到您的 pom.xml

    <profiles>
      <profile>
        <id>camunda-bpm</id>
        <repositories>
          <repository>
            <id>camunda-bpm-nexus</id>
            <name>camunda-bpm-nexus</name>
            <releases>
              <enabled>true</enabled>
            </releases>
            <snapshots>
              <enabled>true</enabled>
            </snapshots>
            <url>https://app.camunda.com/nexus/content/groups/public</url>
          </repository>
        </repositories>
      </profile>
    </profiles>
    <activeProfiles>
      <activeProfile>camunda-bpm</activeProfile>
    </activeProfiles>
    

    来源:https://github.com/camunda/camunda-bpm-platform#building-camunda-bpm-platform

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-31
      • 1970-01-01
      • 1970-01-01
      • 2020-07-09
      • 2017-12-02
      • 1970-01-01
      相关资源
      最近更新 更多