mule-maven-pluginを使用する必要があります.Maven経由でCloudHubに展開する方法は現在サポートされています。このサンプルプラグインの設定:
<plugin>
<groupId>org.mule.tools.maven</groupId>
<artifactId>mule-maven-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<deploymentType>cloudhub</deploymentType>
<muleVersion>3.7.0</muleVersion> <!-- This is the runtime version as it appears on the CloudHub interface -->
<username>myUsername</username>
<password>myPassword</password>
<environment>Production</environment>
</configuration>
<executions>
<execution>
<id>deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
とMavenプラグインを見つけることができますので、あなたのsettings.xmlにこれを追加することを忘れないでください:
<pluginRepositories>
<pluginRepository>
<id>mule-public</id>
<url>https://repository.mulesoft.org/nexus/content/repositories/releases</url>
</pluginRepository>
</pluginRepositories>
そのうまくいっても、私の必要条件はGroovyのポストビルドを使用することでした.. – Anand
統合テストでは、それを行うGroovyスクリプトが見つかりました:https://github.com/mulesoft/mule-maven-プラグイン/ blob/2.x/src/it/cloudhub/undeploy/setup.groovy –