Apache Maven, is an innovative software project management tool. It uses a project object model (POM) file to manage project’s build, dependencies, reporting and documentation.

P.S Tested with Apache Maven 3.5.x

1. Installation

Install Maven on Windows, Ubuntu and MacOS

2. Java Project

Maven examples to manage JAR project, Web project (WAR) and multi module project.

More ways to create Java Project with Maven on Eclipse and Command Line

3. Unit Test

Maven + JUnit 5 examples.

  • How to run unit test
  • How to skip unit test

4. Code Coverage

Maven + Code coverage report integration.

  • Maven – Jacoco example (line coverage)
  • Maven – PITest example (mutation coverage)

5. Static Code Analysis

Maven + Static code analysis report.

  • Maven – SpotBugs example
  • Maven – PMD example

6. Maven FAQs

=> See all Maven articles

Common Errors

Source Code

$ git clone https://github.com/favtuts/java-maven-tutorials.git

References

  1. Maven in 5 Minutes
  2. Maven Standard Directory Layout
  3. Maven by Example
  4. Wikipedia – Apache Maven

Leave a Reply

Your email address will not be published. Required fields are marked *