【问题标题】:Unable to build the mule maven project无法构建 mule maven 项目
【发布时间】:2016-06-22 04:26:28
【问题描述】:

我在运行项目时创建了一个 mule maven 项目:mule application with maven 我收到以下错误:

无法在项目 StandaloneTest 上执行目标:无法解析项目 com.mycompany:StandaloneTest:mule:1.0.0-SNAPSHOT 的依赖项:找不到工件 com.mulesoft.muleesb.modules:mule-module-xml:jar :3.4.0 在 jboss (http://repository.jboss.com/)

我的项目 pom.xml 中有 mule studio 生成的以下依赖项

<dependency>
        <groupId>org.mule.modules</groupId>
        <artifactId>mule-module-xml</artifactId>
        <version>3.5.0-bighorn</version>
    </dependency>
    <dependency>
        <groupId>com.mulesoft.muleesb.modules</groupId>
        <artifactId>mule-module-xml</artifactId>
        <version>${mule.version}</version>
        <scope>provided</scope>
    </dependency>

我们是否还需要 com.mulesoft.muleesb.modules.mule-moudle-xml.jar 以便在我们的流文件中有一个 xml 模块,因为我们已经有一个 org.mule.modules.mule-module-xml。 jar 在我们的存储库中。

【问题讨论】:

    标签: maven jboss mule mule-studio


    【解决方案1】:

    mule-module-xml 的适当组 id 是 org.mule.modules。尝试删除第二个依赖项。

    【讨论】:

      【解决方案2】:

      尝试用这个依赖替换两者:

      <dependency>
        <groupId>org.mule.modules</groupId>
        <artifactId>mule-module-xml</artifactId>
        <version>3.4.0</version>
      </dependency>
      

      在以下 2 个 Maven 存储库中的任何一个中都可以找到依赖项:

      https://repository.mulesoft.org/nexus/content/groups/public/ https://repository.mulesoft.org/nexus/content/repositories/public/

      如果可行,请告诉我们。谢谢!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-11-24
        • 2022-08-24
        • 1970-01-01
        • 2016-02-02
        • 2016-05-25
        • 2019-12-16
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多