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.
- How to create a Java project (JAR file)
- How to create a Java web application project (WAR file)
- How to create a Multi-Module project
More ways to create Java Project with Maven on Eclipse and Command Line
- How to Create a Simple Maven Project in Eclipse
- Create a Simple Maven Project using Command Line
- How to Create a Web Project Using Maven in Eclipse
- Create a Simple Maven Web Application using 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
- Maven Profiles example
- Where is Maven Local Repository
- Where is Maven Central Repository
- Where is Maven Remote Repository
- Maven – How to enable proxy setting
- Maven – How to force re-download project dependencies?
- How to deploy Maven based war file to Tomcat
- How to include custom library into maven local repository?
- How to add Oracle JDBC driver in your Maven local repository
- How to create a jar file with Maven
- Maven – Exclude log4j.properties in Jar file
- Maven – Create a fat Jar file – One-JAR example
- Create a fat Jar file – Maven Assembly Plugin
- Create a fat Jar file – Maven Shade Plugin
Common Errors
- ERROR Source or Target option 1.5 is no longer supported. Use 1.6 or later
- Maven error – invalid target release: 1.11
- Maven error – invalid target release: 17
Source Code
$ git clone https://github.com/favtuts/java-maven-tutorials.git