I have just started using Maven for one of my projects. I am packaging my artifact as war file which I'd deploy to tomcat. I have specified all my dependencies in the pom.xml file (For ex: jackson-databind jar)
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.7</version>
</dependency>
I could see all my dependecy jars in my eclipse classpath, sure there were no compilation errors or anything.
After packaging my code into a war file I tried to check it's contents. I could see all my source file, but there was no trace of my dependencies in the war file.
I deployed the war to a local tomcat server and was able to test with no error.
My question is: How did tomcat get the jars that my project was depending on? or does tomcat read the pom.xml of each war file and download all the dependencies?