【问题标题】:Mule maven build updating config.resource property of mule-deploy.properties failed for a newly created mule project which was not deployed anytimeMule maven 构建更新 mule-deploy.properties 的 config.resource 属性对于未随时部署的新创建的 mule 项目失败
【发布时间】:2014-05-02 01:35:52
【问题描述】:

我有一个使用 maven 构建 mule 项目的用例,我遇到了这样一个场景,即如果在 mule studio 中创建了一个新的 mule 项目,该项目具有多个流,但不会随时运行/部署。

我为 mule 项目执行了 maven 构建有两个观察结果

1) 当 mule 构建单独部署在 mule 中时,部署失败并出现错误

org.mule.module.launcher.InstallException:应用程序配置...未找到....mule-config.xml。

2)当我检查 mule-deploy.properties 的 config.resource 属性时,未使用流配置文件分配(config.resources=)。

请让我知道我哪里出错了。

【问题讨论】:

    标签: maven mule


    【解决方案1】:

    最简单的做法是使用 mule-deploy.properties 中的配置 xml 的名称更新属性。

    config.resources=my-projects-config.xml
    

    【讨论】:

      【解决方案2】:

      1) 转到 /src/main/app/mule-deploy.properties,验证 config.resources=test.xml。如果分配了任何其他文件,请将其删除。

      或 2) 在目录 src/main/app 中保留一个虚拟的 mule-config.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <mule xmlns="http://www.mulesoft.org/schema/mule/core"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="
             http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.0/mule.xsd">
      
          <!-- empty config to avoid the hot deployment classloader choking on a missing config file -->
      
      </mule>
      

      虽然我们在“apps”文件夹中创建了一个“默认”应用程序,但它是空的,因此热部署会抱怨缺少 mule-config.xml 文件

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-02-02
        • 2017-03-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多