Skip to main content

Maven

POM(Project Object Model)

  • Maven builds a project using its project object model (POM)

Advantages

  • Simple project setup that follows best practices.
  • Keeping test source code in a separate and parallel to the main code.
  • Using test case naming conventions to locate and execute tests.
  • Having test cases setup their environment instead of customizing the build for test preparation.
  • Assists in project workflow such as release and issue management.
  • Able to easily work with multiple projects at the same time.
  • Coherent site of project information
  • Dependency management

Installation

brew install maven

Commands

mvn verify
mvn clean install
mvn compile
mvn test
mvn test-compile
mvn package
mvn install
mvn clean

Reference

Maven Official site

Java Project

mvn archetype:generate -DarchetypeGroupId=com.mail.automation -DarchetypeArtifactId=com-botcat-automation -DgroupId=mail.automation -DartifactId=EMailAutomation -Dversion=1.0-SNAPSHOT