Maven部署配置对于在Mule Standalone中部署Mule 4应用程序无效

n3schb8v  于 2023-01-08  发布在  Maven
关注(0)|答案(2)|浏览(232)

我正在Mule单机服务器4.2中部署Mule 4应用程序,以从项目目录启动Mule运行时(mule. bat)和命令(mvn package deploy -DmuleDeploy),但我收到了下面提到的错误。我已经从pom. xml添加了我的插件。
在pom.xml中进行部署配置时哪里出错了?

[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.2.7:deploy (default-deploy) on project test: Deployment configuration is not valid, : No deployment configuration was defined. Aborting. -> [Help 1]

        <plugin>
            <groupId>org.mule.tools.maven</groupId>
            <artifactId>mule-maven-plugin</artifactId>
            <version>3.2.7</version>
            <configuration>
                 <developmentType>standalone</developmentType>  
                  <muleHome>E:\IDFC\mule-enterprise-standalone-4.2.2</muleHome>
                  <muleVersion>4.2.2</muleVersion>    
                  <target>E:\IDFC\mule-enterprise-standalone-4.2.2\apps</target>
                  <targetType>server</targetType>                                                          
            </configuration>
        </plugin>
6ljaweal

6ljaweal1#

尝试文档中所述的配置:

<configuration>
    <standaloneDeployment>
      <muleHome>${mule.home.test}</muleHome>
      <muleVersion>${app.runtime}</muleVersion>
    </standaloneDeployment>
  </configuration>
ctehm74n

ctehm74n2#

您必须启动Mule Runtinme Standalone作为Windows服务或Unix守护程序。不要使用/bin/mule命令
对我很有效
作为服务或守护程序启动Mule运行时的引用:https://docs.mulesoft.com/mule-runtime/4.2/starting-and-stopping-mule-esb

相关问题