Skip to content
Advertisement

Maven Package Command Failure

I am new with maven and package command for my project is failing but I have not been able to figure out what the error is from the generated log.

Below is the output of the mvn clean package -X

JavaScript

This is pom.xml

JavaScript

Also, I am using jenv to toggle between different java versions, since I have another project that is being developed on top of the lastest java. Below is the output of jenv versions

JavaScript

Output for java -version

JavaScript

Output for mvn -v

JavaScript

Output for echo $JAVA_HOME

JavaScript

Advertisement

Answer

On looking further at the logs, I figured its the Lombok plugin that is the problem.

  • One of the dependencies mentioned, uses Lombok, but is using a version that is not compatible with Java 1.8.
  • Moved the lombok plugin to 1.16.22 and now the mvn package goes through just fine.
JavaScript
  • Found the correct version here
Advertisement