It's about maven issue

While testing the pipeline with new build server, we are facing below issue.

Build XUI pipeline is failing with following error.

Exception in thread “main” java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList
75 at com.google.inject.internal.Errors.(Errors.java:709)
76 at com.google.inject.internal.InternalInjectorCreator.(InternalInjectorCreator.java:62)

We suspect that it’s because maven version is different in new build server(maven 3.8.5) and old build server(maven 3.8.6).

Now we have installed maven 3.8.6 version in new build server but after this whenever we try to check the version in server we are facing below issue.

Failed to load native library:jansi-2.4.0-8f2533d25eccd7fb-libjansi.so. The native library file at /tmp/jansi-2.4.0-8f2533d25eccd7fb-libjansi.so is not executable, make sure that the directory is mounted on a partition without the noexec flag, or set the jansi.tmpdir system property to point to a proper location. osinfo: Linux/x86_64 java.lang.UnsatisfiedLinkError: /tmp/jansi-2.4.0-8f2533d25eccd7fb-libjansi.so: /tmp/jansi-2.4.0-8f2533d25eccd7fb-libjansi.so: failed to map segment from shared object
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/apache-maven-3.8.6
Java version: 11.0.21, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.21.0.9-2.el8.x86_64Default locale: en_US, platform encoding: UTF-8OS name: “linux”, version: “4.18.0-513.9.1.el8_9.x86_64”, arch: “amd64”, family: “unix”

Please help me with the above issue

Hi @Harshitha037

This does not appear to be a ForgeRock issue, this appears to be a Maven issue. Searching for this error message gives a lot of hits for this, and as the error message indicates it seems to be related to permissions in your build server’s /tmp directory.

Hi @mwtech

Thanks for your response.

Full permission given to /tmp directory and jansi librabry is not under /tmp directory.

We don’t know the exact path of the jansi librabry.