Search code examples
javaspringeclipsemavenbuild

Spring Project is not building in the eclipse


I'm using Eclipse 4.17 for Mac OS X

Java version in the build path: Java SE 15

And I'm facing the issue while building the spring project.

It is throwing an error:

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'Project'.
Could not initialize class org.codehaus.plexus.archiver.jar.JarArchiver

** It was working fine with older versions of the eclipse but the newer version of the eclipse is not supporting the Java v1.8

Let me know if any further information is required.

Any help would be much appreciated. Thanks in advance :)


Solution

  • The older version of maven does not include the org.codehaus.plexus.archiver.jar for building the project.

    Updated the version of maven to 3.6.3 it downloaded the jar on the local repository and while building the project the jar was found by maven in the path.


    Also, it worked with older versions of Java too. So, I'm back to Java v1.8 So the issue was nothing to do with the java version.