compiler-errors - 找不到org.mule.module.client.MuleClient编译错误

标签 compiler-errors mule anypoint-studio

我有一个Mule项目,它会产生以下编译错误:

    -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /G:/git/edx-client-service/edx_client/src/test/java/test/RestTestBase.java:[21,30] package org.mule.module.client does not exist
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.633 s
[INFO] Finished at: 2015-09-18T15:23:08-06:00
[INFO] Final Memory: 37M/88M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:testCompile (default-testCompile) on project edx_client: Compilation failure
[ERROR] /G:/git/edx-client-service/edx_client/src/test/java/test/RestTestBase.java:[21,30] package org.mule.module.client does not exist

我试图在我的pom.xml文件中排除测试包来解决此问题:
           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>**/src/test/*</exclude>
                    </excludes>
                </configuration>
            </plugin>

这是行不通的。我用谷歌搜索没有任何想法。有什么想法我需要做什么或接下来要看吗?

最佳答案

看来您的Maven依赖项上没有“org.mule.module.client”。

<dependency>
    <groupId>org.mule.modules</groupId>
    <artifactId>mule-module-client</artifactId>
    <version>${mule.version}</version>
    <scope>provided</scope>
</dependency>

关于compiler-errors - 找不到org.mule.module.client.MuleClient编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32661396/

相关文章:

rust - 函数期望 u16 返回类型错误,类型不匹配,即使我使用 return 来提前从函数中获取值

C# 编译器 - 未分配字段和局部变量初始值

Mule:根据文件可用性同步 Mule 流

java - Anypoint Studio Maven 在错误的 java 目录中查找 tools.jar

mule - 如何检查在 mule 的请求配置中传递了什么 header

无法通过 'error: missing braces around initializer'

c++ - 在 Hackerearth 上出现运行时错误(SIGSEGV),无法找出代码中的问题

spring - 如何从自定义 java 组件中的上下文属性占位符标记获取属性

proxy - 在公司墙后使用Mule ESB时如何进行代理设置?

ssl - 我如何在 Mule 中设置密码套件