There are no items in your cart
Add More
Add More
Item Details | Price |
---|
Learn more about maven dependency
In Maven, dependency is another archive—JAR, ZIP, and so on—which your current project needs in order to compile, build, test, and/or to run. The dependencies are gathered in the pom.xml file, inside of a <dependencies> tag.
Maven does the dependency management using the concept of Repositories.
Keeping your project up-to-date with the correct versions of external JAR files can be a comprehensive task. Maven has built-in dependency management. You specify in the POM file what external libraries your project depends on, and which version, and then Maven downloads them for you and puts them in your local Maven repository.
Different types of dependencies:
Steps to add a dependency in Maven Project:
1) Go to https://mvnrepository.com/
2) Search for the dependency which you would like to add in your project. For example: selenium-java
3) Click on the first link from the search results. Ex – Selenium Java
4) Click on the latest version of the dependency. Ex - 4.3.0
5) Copy the dependency details and paste it in your project pom.xml.
Bijan Patel
Full Stack Test Automation Expert | Selenium Framework Developer | Certified Tosca Automation Specialist | Postman | DevOps | AWS | IC Agile Certified | Trainer | Youtuber | Blogger|