Build failure while building project

getting build failure :maven-compiler-plugin:3.8.0:compilee[m e[1m(default-compile)e[m on project e[36mpre-registration-batchjobe[m: e[1;31mFatal error compilinge[m: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x2ae25358) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment , is there any specific java version or maven version to use

Dear Mukesh,

Regarding the build failure our team will get back to you asap.

Best Regards,
Team MOSIP.

Hi Mukesh

Do follow all steps given in Mosip Docs:
Pre-registration Developers Guide - MOSIP Docs 1.2.0

You are missing lombok.jar in classpath.

Hope this helps.
~ Mayura

I have all the required lib in classpath

The lombok.jar is not to be directly added in classpath.
Please read the setup steps

you will find below details

2 Likes

again getting the same build error [e[1;31mERRORe[m] Failed to execute goal e[32morg.apache.maven.plugins:maven-compiler-plugin:3.8.0:compilee[m e[1m(default-compile)e[m on project e[36mpre-registration-application-servicee[m: e[1;31mFatal error compilinge[m: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x4b688389) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x4b688389 -> e[1m[Help 1]e[m even after installing lombok in eclipse.

Which branch or tagged code have you cloned?

Clone latest code from “release-1.2.0.1” Branch and check.

yes it is cloned from release-1.2.0.1
Screenshot (53)

Hey,

Still the same issue of build error is coming even after following all the steps given by mayura?

Can you re-check all the steps once again !

Best Regards,
Team MOSIP

Also if possible can you please clone again from “release-1.2.0.1” in a fresh folder and follow all setup steps again?

Hey Mukesh,

Did you try cloning again from “release-1.2.0.1” as mentioned above by Mayura?

Try doing this and let us know if the issue still persists.

Best Regards,
MOSIP Team

still facing the same issue.

Hi Mukesh

I hope you have updated settings.xml correctly as given in setup steps.
Also hope you are using Java 11.
I just now tried the build with a fresh checkout and it worked. Pls verify that you are also using same branch “release-1.2.0.1”.

1 Like

thanks now working after changing jdk version

2 Likes

Hi Mukesh,

It’s great to hear that it’s working now.

Let us know if you require any other support.

Best Regards,
MOSIP Team