Difference between ${pom.basedir} vs ${project.basedir} in pom.xml

1.8k Views Asked by At

Getting below warning while build.

I am using in pom.xml

<systemPath>${project.basedir}/lib/....jar</systemPath>

[WARNING] 'dependencies.dependency.systemPath' for ...:jar should not point at files within the project directory, ${project.basedir}/lib/....jar will be unresolvable by dependent projects @ line 25, column 30

Its resolved now by using <systemPath>${pom.basedir}/lib/....jar in pom.xml

Anyone please explain, What is difference between ${pom.basedir} vs ${project.basedir} in pom.xml?

1

There are 1 best solutions below

0
Andrey B. Panfilov On

${basedir}, ${project.basedir} and ${pom.basedir} are synonyms (you may also check that using something like mvn help:evaluate -Dexpression=pom.basedir), your Q just reveals that person who was fixing MNG-4953 didn't know about that.