Question: how maven works in jenkins?
Answer: Maven is used to define project structure, dependencies, build, and test management.
Using pom. xml(Maven) you can configure dependencies needed for building testing and running code.
Maven automatically downloads the necessary files from the repository while building the project.