Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why sometimes dependency not contain version property in pom.xml?

I am a newbie of Maven, currently reading Hadoop source code, and found something interesting in some pom.xml files:

Some of the dependency node do not contain version node at all.

Question: why is it like this?

for instance, this pom.xml.

like image 349
Rui Avatar asked Oct 29 '25 07:10

Rui


1 Answers

Because specific version of dependency in parent pom.xml file

https://github.com/apache/hadoop/blob/trunk/pom.xml

Reference: https://maven.apache.org/guides/introduction/introduction-to-the-pom.html

like image 85
Do Nhu Vy Avatar answered Oct 31 '25 12:10

Do Nhu Vy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!