我有以下问题。我用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
答案 0 :(得分: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