Search code examples
compiler-errorsmuleanypoint-studio

org.mule.module.client.MuleClient not found compile error


I have a Mule project that generates the following compile error:

    -------------------------------------------------------------
[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

I have tried to exclude test package in my pom.xml file to get around this issue:

           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>**/src/test/*</exclude>
                    </excludes>
                </configuration>
            </plugin>

This does not work. I have googled for any ideas to no avail. Any ideas what I need to do or look next?


Solution

  • It seems you don't have "org.mule.module.client" on your maven dependencies.

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