Loading
Salesforce から送信されるメールは、承認済ドメインからのみとなります続きを読む

How to Use Maven to Deploy an Application from Exchange to RTF Directly

公開日: Mar 2, 2024
ステップ

QUESTION

1. According to this knowledge How to deploy a Mule 4 application to Runtime Fabric with Maven, the deployment requires two steps
  • mvn deploy
  • mvn deploy -DmuleDeploy
The first command uploads application jar file to Exchange. The second one deploys from the exchange. 

The first one is compiled/built which makes sense to download all packages and one would expect the second command to use the artifacts from the previous step for deployment, however the second step downloads the packages again. How to avoid this redundant downloading?

2. Is it possible to deploy an app just with the POM file?

ANSWER

You can run this maven command in the application folder or just in a directory with the POM file to deploy directly from Exchange. The plugin goal "mule:deploy" skips all the other deployment phases including download dependencies and packaging the jar file.  

However, the "mule:deploy" goal will look for the artifacts which are not required in the RTF deployment as it's in the Exchange. You can specify "-Dmule.artifact" with an arbitrary value. The command looks like this as below
mvn mule:deploy -Dmule.artifact="/path"

ADDITIONAL INFORMATION

The "-Dmule.artifact" option is valid for mule 3.3.x, which is subject to change in future versions. 

ナレッジ記事番号

001117197

 
読み込み中
Salesforce Help | Article