MuleSoft CICD with CircleCI

Hi,

I’m trying to implement CICD for Mule applications which are basically Maven build applications.

When I run mvn package locally or on Github actions it runs fine without errors but on CirlceCI it gives me errors.

Here is a glimpse of it. at this point I’m just trying to build but builds fail.

[INFO] Downloading from : https://repository-master.mulesoft.org/nexus/content/repositories/releases/com/github/everit-org/json-schema/org.everit.json.schema/1.12.2/org.everit.json.schema-1.12.2.jar
[INFO] Downloading from : https://repository-master.mulesoft.org/nexus/content/repositories/snapshots/com/github/everit-org/json-schema/org.everit.json.schema/1.12.2/org.everit.json.schema-1.12.2.jar
[INFO] Downloading from : https://jitpack.io/com/github/everit-org/json-schema/org.everit.json.schema/1.12.2/org.everit.json.schema-1.12.2.jar
[INFO] Downloaded from : https://jitpack.io/com/github/everit-org/json-schema/org.everit.json.schema/1.12.2/org.everit.json.schema-1.12.2.jar (243 kB at 5.0 MB/s)
[INFO] 
[INFO] --- mule-maven-plugin:3.5.4:validate (default-validate) @ mule-cicd ---
[INFO] 
[INFO] --- mule-maven-plugin:3.5.4:initialize (default-initialize) @ mule-cicd ---
[INFO] 
[INFO] --- mule-maven-plugin:3.5.4:generate-sources (default-generate-sources) @ mule-cicd ---
[INFO] 
[INFO] --- mule-maven-plugin:3.5.4:process-sources (default-process-sources) @ mule-cicd ---
[INFO] About to fetch required dependencies for artifact: com.mycompany:mule-cicd:pom:1.0.0-SNAPSHOT. This may take a while...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.987 s
[INFO] Finished at: 2022-04-21T19:45:25Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.5.4:process-sources (default-process-sources) on project mule-cicd: Execution default-process-sources of goal org.mule.tools.maven:mule-maven-plugin:3.5.4:process-sources failed: An API incompatibility was encountered while executing org.mule.tools.maven:mule-maven-plugin:3.5.4:process-sources: java.lang.IllegalAccessError: class org.mule.maven.client.internal.util.FileUtils (in unnamed module @0x41ad373) cannot access class sun.net.www.protocol.jar.JarURLConnection (in module java.base) because module java.base does not export sun.net.www.protocol.jar to unnamed module @0x41ad373
[ERROR] -----------------------------------------------------
[ERROR] realm =    extension>org.mule.tools.maven:mule-maven-plugin:3.5.4
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/circleci/.m2/repository/org/mule/tools/maven/mule-maven-plugin/3.5.4/mule-maven-plugin-3.5.4.jar
[ERROR] urls[1] = file:/home/circleci/.m2/repository/org/mule/tools/maven/mule-packager/3.5.4/mule-packager-3.5.4.jar
[ERROR] urls[2] = file:/home/circleci/.m2/repository/org/mule/tools/maven/mule-classloader-model/3.5.4/mule-classloader-model-3.5.4.jar
[ERROR] urls[3] = file:/home/circleci/.m2/repository/org/mule/runtime/mule-api/1.1.4/mule-api-1.1.4.jar
[ERROR] urls[4] = file:/home/circleci/.m2/repository/org/mule/runtime/mule-metadata-model-api/1.1.5/mule-metadata-model-api-1.1.5.jar
[ERROR] urls[5] = file:/home/circleci/.m2/repository/org/mule/runtime/mule-artifact-declaration/1.1.1/mule-artifact-declaration-1.1.1.jar

appreciate any help fixing this.

TIA