Gitlab-Runner Mvn Test Issue

Hello Everyone,
I m quiet new to Gitlab and GItlab-Runner
Its an awesome set of tools.
Lately I am facing one odd issue while building my code with Maven.
I was able to build my code perfectly fine some days back and for the past few days GitLab-Runner is giving me issues. Odd thing is there is nothing that changed with my code. I tried a lot of different tricks but now I am running out of ideas.
Its a Mulesoft (ESB) code that I am trying to build using Maven in Gitlab-Runner and it consistently gives me warning of Error: Could not find or load main class org.mule.munit.remote.RemoteRunner.
Same code compiles and builds fine when I try to mavenise from my local machine.
I am not sure if I need to reset anything again, clear cache or some setting change… if anyone can give me some direction over this it would be very helpful.
Below is the attached log trace.

[0KRunning with gitlab-runner 10.5.0 (80b03db9)
e[0;me[0K on speedbus-shared 3218c206
e[0;me[0KUsing Shell executor…
e[0;msection_start:1541082936:prepare_script
e[0KRunning on ip-10-33-166-75…
section_end:1541082936:prepare_script
e[0Ksection_start:1541082936:get_sources
e[0Ke[32;1mFetching changes…e[0;m
Removing target/
HEAD is now at 52b71ca SB-417: Flow Design updated
e[32;1mChecking out 52b71ca8 as Feature/RegressionTest…e[0;m
e[32;1mSkipping Git submodules setupe[0;m
section_end:1541082937:get_sources
e[0Ksection_start:1541082937:restore_cache
e[0Ke[32;1mChecking cache for default_2…e[0;m
e[32;1mSuccessfully extracted cachee[0;m
section_end:1541082937:restore_cache
e[0Ksection_start:1541082937:download_artifacts
e[0Ksection_end:1541082937:download_artifacts
e[0Ksection_start:1541082937:build_script
e[0Ke[32;1m$ mvn $MAVEN_CLI_OPTS teste[0;m
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_181, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: “linux”, version: “4.4.0-1069-aws”, arch: “amd64”, family: “unix”
1239 [INFO] Error stacktraces are turned on.
1319 [INFO] Scanning for projects…
1879 [WARNING]
1879 [WARNING] Some problems were encountered while building the effective model for com.chalhoub:customer:mule:1.0.0-${releaseType}
1880 [WARNING] ‘version’ contains an expression but should be a constant. @ line 7, column 11
1880 [WARNING]
1880 [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
1880 [WARNING]
1880 [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
1880 [WARNING]
1894 [INFO]
1894 [INFO] ------------------------------------------------------------------------
1894 [INFO] Building Mule Customer Application 1.0.0-${releaseType}
1894 [INFO] ------------------------------------------------------------------------
3883 [WARNING] Could not transfer metadata org.accenture.modules:chalhoub-logger-connector:1.0.1-SNAPSHOT/maven-metadata.xml from/to mule-ee-releases (https://repository-master.mulesoft.org/nexus/content/repositories/releases-ee/): Not authorized , ReasonPhrase:Unauthorized.
3888 [WARNING] Failure to transfer org.accenture.modules:chalhoub-logger-connector:1.0.1-SNAPSHOT/maven-metadata.xml from https://repository-master.mulesoft.org/nexus/content/repositories/releases-ee/ was cached in the local repository, resolution will not be reattempted until the update interval of mule-ee-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.accenture.modules:chalhoub-logger-connector:1.0.1-SNAPSHOT/maven-metadata.xml from/to mule-ee-releases (https://repository-master.mulesoft.org/nexus/content/repositories/releases-ee/): Not authorized , ReasonPhrase:Unauthorized.
4397 [WARNING] Could not transfer metadata org.mule.modules:chalhoub-dynamo-db-connector:1.2.0-SNAPSHOT/maven-metadata.xml from/to mule-ee-releases (https://repository-master.mulesoft.org/nexus/content/repositories/releases-ee/): Not authorized , ReasonPhrase:Unauthorized.
4399 [WARNING] Failure to transfer org.mule.modules:chalhoub-dynamo-db-connector:1.2.0-SNAPSHOT/maven-metadata.xml from https://repository-master.mulesoft.org/nexus/content/repositories/releases-ee/ was cached in the local repository, resolution will not be reattempted until the update interval of mule-ee-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.mule.modules:chalhoub-dynamo-db-connector:1.2.0-SNAPSHOT/maven-metadata.xml from/to mule-ee-releases (https://repository-master.mulesoft.org/nexus/content/repositories/releases-ee/): Not authorized , ReasonPhrase:Unauthorized.
4699 [INFO]
4699 [INFO] — mule-app-maven-plugin:1.7:attach-test-resources (default-attach-test-resources) @ customer —
4725 [INFO] attaching test resource /home/gitlab-runner/builds/3218c206/0/speed-bus/apis/process/customer/src/main/app
4725 [INFO]
4725 [INFO] — build-helper-maven-plugin:1.7:add-resource (add-resource) @ customer —
4765 [INFO]
4765 [INFO] — maven-resources-plugin:3.1.0:resources (default-resources) @ customer —
4859 [INFO] Using ‘UTF-8’ encoding to copy filtered resources.
4866 [INFO] Copying 111 resources
4906 [INFO] Copying 28 resources
4914 [INFO] Copying 11 resources
4917 [INFO] skip non existing resourceDirectory /home/gitlab-runner/builds/3218c206/0/speed-bus/apis/process/customer/mappings
4917 [INFO] Copying 7 resources
4919 [INFO] Copying 3 resources
4921 [INFO]
4921 [INFO] — mule-app-maven-plugin:1.7:filter-resources (default-filter-resources) @ customer —
4936 [INFO]
4936 [INFO] — mule-app-maven-plugin:1.7:process-resources (default-process-resources) @ customer —
4938 [INFO] attachMuleSources default value is false, skipping process-resources goal…
4939 [INFO]
4939 [INFO] — maven-compiler-plugin:3.8.0:compile (default-compile) @ customer —
5051 [INFO] Changes detected - recompiling the module!
5057 [INFO] Compiling 3 source files to /home/gitlab-runner/builds/3218c206/0/speed-bus/apis/process/customer/target/classes
6263 [INFO]
6263 [INFO] — maven-resources-plugin:3.1.0:testResources (default-testResources) @ customer —
6277 [INFO] Using ‘UTF-8’ encoding to copy filtered resources.
6278 [INFO] Copying 6 resources
6281 [INFO] Copying 19 resources
6287 [INFO] Copying 3 resources
6289 [INFO] Copying 14 resources
6295 [INFO] Copying 28 resources
6305 [INFO]
6305 [INFO] — maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ customer —
6325 [INFO] Changes detected - recompiling the module!
6326 [INFO] Compiling 14 source files to /home/gitlab-runner/builds/3218c206/0/speed-bus/apis/process/customer/target/test-classes
6701 [INFO]
6701 [INFO] — maven-surefire-plugin:2.22.1:test (default-test) @ customer —
6815 [INFO]
6816 [INFO] — munit-maven-plugin:1.3.7:test (test) @ customer —
6932 [INFO] Acquiring dynamic ports…
6932 [INFO] Dynamic port definition [DONE]
6933 [INFO] Mule working directory set to: /home/gitlab-runner/builds/3218c206/0/speed-bus/apis/process/customer/target/.mule
Error: Could not find or load main class org.mule.munit.remote.RemoteRunner
7092 [INFO] ------------------------------------------------------------------------
7092 [INFO] BUILD FAILURE
7092 [INFO] ------------------------------------------------------------------------
7093 [INFO] Total time: 5.802 s
7093 [INFO] Finished at: 2018-11-01T14:35:44+00:00
7461 [INFO] Final Memory: 78M/340M
7461 [INFO] ------------------------------------------------------------------------
7462 [ERROR] Failed to execute goal com.mulesoft.munit.tools:munit-maven-plugin:1.3.7:test (test) on project customer: Build Fail: Error: Could not find or load main class org.mule.munit.remote.RemoteRunner → [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.mulesoft.munit.tools:munit-maven-plugin:1.3.7:test (test) on project customer: Build Fail
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Build Fail
at org.mule.MUnitMojo.doExecute(MUnitMojo.java:168)
at org.mule.MUnitMojo.execute(MUnitMojo.java:123)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
… 20 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Error: Could not find or load main class org.mule.munit.remote.RemoteRunner

... 24 more

7469 [ERROR]
7469 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
7469 [ERROR]
7469 [ERROR] For more information about the errors and possible solutions, please read the following articles:
7469 [ERROR] [Help 1] MojoExecutionException - Apache Maven - Apache Software Foundation
section_end:1541082944:build_script
e[0Ksection_start:1541082944:after_script
e[0Ksection_end:1541082944:after_script
e[0Ke[31;1mERROR: Job failed: exit status 1
e[0;m

Did you ever manage to get an answer for this one? I would really appreciate it.

Please check if you are using jre or jdk. Maybe it is because of that.

Seems Mule MUnit does not work with OpenJDK 8u181 which is the version in the default maven docker image. Switching to maven:3.6-jdk-8-alpine (which has u191) seems to have solved the problem for me.