使用 Maven 的 MuleSoft Anypoint RuntimeFabric 部署

问题描述

我发现部署到 Anypoint RuntimeFabric 需要将资产发布到 Exchange。这是强制性的吗?

很少有人提到它是强制性的,很少有人说它不是。任何人都尝试过直接使用 Maven 部署到 Runtime Fabric 而不发布到交换。

当我尝试在不发布到交换的情况下进行部署时,出现以下错误

 Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.5.2:deploy (default-deploy) on project rtf-cicd: Execution default-deploy of goal org.mule.tools.maven:mule-maven-plugin:3.5.2:deploy Failed: 400 Bad Request: {"message":"No application with the provided GAV Could be retrieved from Exchange"} -> [Help 1]

这里是 MuleSoft 的几篇文章/博客

https://help.mulesoft.com/s/article/How-to-deploy-a-Mule-4-application-to-Runtime-Fabric-with-Maven https://blogs.mulesoft.com/dev-guides/how-to-tutorials/install-runtime-fabric-ci-cd-with-jenkins-and-nexus/ https://docs.mulesoft.com/runtime-fabric/1.9/deploy-maven-4.x

解决方法

是的,前提是应用程序之前已部署到 Exchange:

该应用程序已在 Exchange 中发布

https://docs.mulesoft.com/mule-runtime/4.3/deploy-to-rtf#prerequisites