Maven is a build tool based on Project Object Model (POM) and is generally used for Java projects. Its primary use is to automatically download the project dependencies when running a Maven build. Maven also helps in packaging the application into different formats such as .jar, .war, .zip or even executable files.
Another most used feature of Maven is to run application tests (such as JUnit or TestNG) and create test reports in various shareable formats.
1. Maven Basics
- Installing Maven on Windows
- Maven – Settings File
- Maven – POM File
- Maven Dependency Management
- Maven Enforce Minimum Java Version
- Maven – Local Repository Location
- Maven – Local, Remote and Central Repositories
- M2_REPO – Change maven repository location in eclipse
- Maven BOM – Bill Of Materials Dependency
- Maven Dependency Scopes
2. Creating a Maven Project
- Create Java Project with Non/Interactive Mode
- Create a Maven Web project in Eclipse
- Create a Maven Project in IntelliJ Idea
- Create Java Source Folders
- Custom Archetype from Eclipse Project
- Parent and Child POM Example
- Multi-Module Maven Project using Console
- Maven Multi-Module Project using Eclipse
3. Maven Plugins
- Maven ant plugin – Generate build.xml from pom.xml
- Creating Executable Fat Jar with Maven Shade Plugin
- Tomcat Maven Plugin Example
- How to Run JUnit Unit Tests with Maven
4. Packaging the Application
- Creating Spring Boot Fat/Uber Jar or War Files
- Creating Jar with Dependencies using Maven Assembly Plugin
- Create Windows Executable (.exe) for Java Application
5. Advance Topics
- Maven – Remove all corrupt jars/dependencies
- Maven proxy settings – Eclipse, command line and global settings
6. Maven Errors
- Solved: Java compiler level does not match the version of the installed Java project facet
- [Solved] Maven Shade Plugin – A required class was missing org/apache/commons/io/IOUtils
7. Resources
Happy Learning !!