首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mulesoft - Cloudhub部署错误:部署配置无效:未定义部署配置

Mulesoft - Cloudhub部署错误:部署配置无效:未定义部署配置
EN

Stack Overflow用户
提问于 2019-11-20 08:54:20
回答 1查看 999关注 0票数 0

这是我在POM中的构建详细信息:

代码语言:javascript
复制
<build>
   <plugins>
      <plugin>
         <groupId>org.mule.tools.maven</groupId>
         <artifactId>mule-maven-plugin</artifactId>
         <version>${mule.maven.plugin.version}</version>
         <extensions>true</extensions>
         <configuration>
            <deploymentType>${deploymentType}</deploymentType>
            <muleVersion>${muleVersion}</muleVersion>
            <redeploy>${redeploy}</redeploy>
            <businessGroup>${businessGroup}</businessGroup>
            <username>${username}</username>
            <password>${password}</password>
            <applicationName>${applicationName}</applicationName>
            <environment>${environment}</environment>
            <region>${region}</region>
            <workers>${workers}</workers>
            <workerType>${workerType}</workerType>
            <uri>${anypoint.uri}</uri>
         </configuration>
         <executions>
            <execution>
               <id>deploy</id>
               <phase>deploy</phase>
               <goals>
                  <goal>deploy</goal>
               </goals>
            </execution>
         </executions>
      </plugin>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <version>3.7.0</version>
         <configuration>
            <compilerArgs>
               <args>-parameters</args>
            </compilerArgs>
         </configuration>
      </plugin>
   </plugins>
</build>

以下是我的属性:

代码语言:javascript
复制
<properties>
   <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
   <app.runtime>4.2.1</app.runtime>
   <mule.maven.plugin.version>3.2.7</mule.maven.plugin.version>
   <deploymentType>cloudhub</deploymentType>
   <muleVersion>4.2.1</muleVersion>
   <redeploy>true</redeploy>
   <businessGroup>****</businessGroup>
   <username>****</username>
   <password>****</password>
   <applicationName>****</applicationName>
   <environment>Sandbox</environment>
   <region>us-east-1</region>
   <workers>1</workers>
   <workerType>Micro</workerType>
   <anypoint.uri>https://anypoint.mulesoft.com</anypoint.uri>
</properties>

以下是我的终端命令:

mvn clean deploy -DmuleDeploy -X,我收到以下错误:

代码语言:javascript
复制
[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.2.7:deploy (default-deploy) on project helloworld: Deployment configuration is not valid, : No deployment configuration was defined. Aborting. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.2.7:deploy (default-deploy) on project helloworld: Deployment configuration is not valid,

如果我使用以下配置,它在cloudhub中部署成功:

代码语言:javascript
复制
<configuration>
   <cloudHubDeployment>
      <uri>${anypoint.uri}</uri>
      <muleVersion>${muleVersion}</muleVersion>
      <businessGroup>${businessGroup}</businessGroup>
      <username>${username}</username>
      <password>${password}</password>
      <applicationName>${applicationName}</applicationName>
      <environment>${environment}</environment>
      <region>${region}</region>
      <workers>${workers}</workers>
      <workerType>${workerType}</workerType>
   </cloudHubDeployment>
</configuration>

不确定我在第一个配置中哪里做错了。

EN

回答 1

Stack Overflow用户

发布于 2019-11-21 05:36:04

第一个例子中的配置是针对Mule 3.x的旧版本的Mule Maven插件(2.2.x或更早的版本)。Mule 4.x (3.3.x)的版本总是使用第二个示例的格式。请参阅https://docs.mulesoft.com/mule-runtime/4.2/mmp-concept#deploying-to-cloudhub上的文档

用于Mule3 (2.3.x) uses the same format than the Mule 4 version的Mule Maven插件的最新版本。

总而言之,第一个示例是过时的,并且与Mule 4部署不兼容。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58945064

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档