使用Maven失败的Mule域项目依赖关系

时间:2020-07-07 20:08:47

标签: maven mule maven-plugin mulesoft

我创建了一个mule域项目,并且mule运行时是本地独立服务器。我将域项目手动部署到服务器上并正常工作。

创建了另一个项目,并将域称为依赖项,但是mvn clean程序包抛出了错误,如何解决呢?

这是pom的样子

<dependency>
        <groupId>1234-1234-1234-b5be-276954c67e1e</groupId>
        <artifactId>erie</artifactId>
        <version>1.0.0</version>
        <classifier>mule-domain</classifier>
        <scope>provided</scope>
    </dependency>

我得到以下错误:

[WARNING] The POM for c6811e03-978c-4711-b5be-276954c67e1e:cir:jar:mule-domain:1.0.0 is missing, no dependency information available
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1321814, ConflictMarker.markTime=464641, ConflictMarker.nodeCount=469, ConflictIdSorter.graphTime=226134, ConflictIdSorter.topsortTime=776107, ConflictIdSorter.conflictIdCount=197, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=23849407, ConflictResolver.conflictItemCount=398, DefaultDependencyCollector.collectTime=1095978322, DefaultDependencyCollector.transformTime=26653889}
[INFO] BUILD FAILURE
[ERROR] Failed to execute goal on project cir-sys-sfdc: Could not resolve dependencies for project com.mycompany:cir-sys-sfdc:mule-application:1.0.0-SNAPSHOT: Failure to find c6811e03-978c-4711-b5be-276954c67e1e:cir:jar:mule-domain:1.0.0 in https://repo1.maven.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 -> [Help 1] 2020-07-08T19:03:33.7624649Z org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project cir-sys-sfdc: Could not resolve dependencies for project com.mycompany:cir-sys-sfdc:mule-application:1.0.0-SNAPSHOT: Failure to find c6811e03-978c-4711-b5be-276954c67e1e:cir:jar:mule-domain:1.0.0 in https://repo1.maven.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 2020-07- 

我该如何解决这个问题,而Maven构建正在任何点交换中寻找域jar,是否意味着我应该发布要交换的域项目?如果特定于环境,该怎么办?

enter image description here

1 个答案:

答案 0 :(得分:0)

在尝试使用域项目(mvn deploy)之前,您是否已对其进行了部署?您必须按照https://docs.mulesoft.com/exchange/to-publish-assets-maven#publish-an-asset-to-exchange-using-maven

上的说明进行操作

我不认为Anypoint Exchange专门支持域项目,因此我不确定发布后会如何发展。