Search code examples
javamavenbuildmaven-2pom.xml

maven build expecting wrong version of jar


I am doing a maven build and its getting failed since the maven is referring to wrong version

pom.xml definition for lombok dependency

When i am building , its failing with below reason .Could not find artifact org.projectlombok:lombok:jar:${lombok.version} , not sure why its referring to lombok.version when we given the version 1.18.4

And this started recently all of sudden .

Can some one able to help me


Solution

  • There is some place either in your POM, or your parent POM or maybe a dependency where the version of lombok is defined as <version>${lombok.version}</version>.

    This causes the problem.