priyanshu pardhi
Posted on June 21, 2022
Maven is project management tool.
In java, whenever you want to make a project you need lots of third party libraries such as MySql connector.
If you are not using maven in your project you need to download lots of external jar files and manually configure those into your project also updating that is a tiresome process that’s why we need maven which make developer’s life easier
A maven project basically consist of :-
- POM file
In which we have :-
- Group ID (let say “com.app”), define your package
- Artifact ID (let say “demo”), represent your project name
- Package (com.app.demo.web)
How do you mention in the pom.xml file that I want this dependency in my project? for that you need to add XML code for that dependency
To get the xml code for a particular module:
- just go to MVN Repository
- Search for desired module
- Select the available version, check xml code for that module/ dependency
When you are working with maven you need to have internet connection
If you are using any dependency for the first time.
First, it will check for that dependencies in Local Repo, if not found, it will check download/fetch from Remote Repo
Alternate of Maven is Gradle
Thanks for reading
Posted on June 21, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.