An Interest In:
Web News this Week
- March 3, 2024
- March 2, 2024
- March 1, 2024
- February 29, 2024
- February 28, 2024
- February 27, 2024
- February 26, 2024
August 30, 2021 06:12 pm GMT
Original Link: https://dev.to/annequinkenstein/maven-gi8
Maven Build Tool (for Selenium Java)
What is Maven?
- Softwareproject-Management-Tool to maintain and manage the project
- Build-Management-Tool for Java Frameworks
Why?
Central Maven Repository to get Dependencies
Maven visits the website, downloads the needed jars and places it in the build path.
e.g. Selenium Jars
just find Selenium RepositoryMaintaining common structure for all
One common template across the organisation
this is the empty skeleton:Flexiblity in integrating with CI Tools
e.g. Maven Commands wich are supported by JenkinsPlugsIns for Test Framework execution
TestNG, JUnit
Vocablary
groupId
: unique identifier (e.g. Selenium)artifactId
: sub-project of Group ID (e.g. Selenium-Java, a jar name)
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.141.59</version></dependency>
You can pass all this details and publish it in Maven, then other persons can simply clone it with groupId and artifactId
Create Maven Project in Eclipse
Let it use default Workspace
Use maven-archetype-quickstart template
Fill your POM.xml -File
- Get the Dependencies from Maven RepositoryGo to the maven repository and get each Dependency and put it inside the Dependencies
- find sureFire Pluginto execute all your testcases in your project
Original Link: https://dev.to/annequinkenstein/maven-gi8
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To