【问题标题】:How does Mule IDE create pom.xml? Why it is adding EE dependencies?Mule IDE如何创建pom.xml?为什么要添加 EE 依赖项?
【发布时间】:2014-01-23 09:30:51
【问题描述】:

当我在 mule studio 中创建一个新项目时,它会在自动生成的 pom.xml 中添加 mule EE 依赖项。 知道为什么会这样吗?

    <!-- Mule Dependencies -->
<dependencies>
    <dependency>
        <groupId>org.mule</groupId>
        <artifactId>mule-core</artifactId>
        <version>${mule.version}</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.mulesoft.muleesb.modules</groupId>
        <artifactId>mule-module-boot-ee</artifactId>
        <version>${mule.version}</version>
        <scope>provided</scope>
    </dependency>
    <!-- Xml configuration -->
    <dependency>
        <groupId>org.mule.modules</groupId>
        <artifactId>mule-module-spring-config</artifactId>
        <version>${mule.version}</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.mulesoft.muleesb</groupId>
        <artifactId>mule-core-ee</artifactId>
        <version>${mule.version}</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.mulesoft.muleesb.modules</groupId>
        <artifactId>mule-module-data-mapper</artifactId>
        <version>${mule.version}</version>
    </dependency>
    <!-- Xml configuration -->
    <dependency>
        <groupId>com.mulesoft.muleesb.modules</groupId>
        <artifactId>mule-module-spring-config-ee</artifactId>
        <version>${mule.version}</version>
        <scope>provided</scope>
    </dependency>

【问题讨论】:

    标签: maven mule mule-studio


    【解决方案1】:

    不,无论您选择 CE 还是 EE 作为项目的运行时,它都会这样做。

    Jira 报告了一个问题。

    https://www.mulesoft.org/jira/browse/STUDIO-3506

    更新:即使 Jira 问题尚未解决,最新的 MuleStudio 3.5 更新似乎也已解决此问题。

    【讨论】:

      【解决方案2】:

      我使用了 Mule Studio 3.5.0 并遇到了同样的问题。

      默认情况下,Mule Studio 只有 EE 运行时,并且所有教程在您创建新项目时都会显示 EE 运行时。所以,我需要几个小时才能找到这个解决方案

      1. [帮助] -> [安装新软件]
      2. 选择[使用]“Mule ESB Runtimes for Studio - http://studio.mulesoft.org/runtimes/
      3. 选择“Mule ESB 服务器运行时 3.4.0 CE”
      4. 然后当你用 Maven 创建一个新的 Mule 项目时,你可以看到“Mule Server 3.4.0 CE Runtime”

      然后,pom.xml 不包含任何 EE 依赖项。

      【讨论】:

        【解决方案3】:

        可能是因为您选择了运行时的 EE 版本。通过选择 CE 版本 Studio 应该只添加 CE 依赖项。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2013-11-03
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2019-04-16
          • 2015-01-16
          • 2013-07-12
          • 2020-04-12
          相关资源
          最近更新 更多