Maven setup: pom.xml, dependencies and a runnable jar
10 steps · about 3 h 30 min · Beginner
- Maven in 5 Minutes (guide, Apache Maven, 15 min)
It's the official quickest path to generating a project, seeing the standard folder layout and running your first build.
- How to get started with Maven (blog, Aditya Sridhar, 15 min)
A second walkthrough of a generated pom.xml that explains the Super POM, plugins and dependencies in plain terms.
- Introduction to the POM (doc, Apache Maven, 25 min)
Once you've seen a pom, this explains what its elements mean: coordinates, packaging, properties and inheritance.
- Introduction to the Build Lifecycle (doc, Apache Maven, 20 min)
It explains phases such as compile, test and package, so you know what mvn package actually does.
- Maven Tutorial for Beginners with Examples (MavenIn28Minutes) (repo, in28minutes on GitHub, 30 min)
Step-by-step examples cover dependency management and transitive dependencies, and you can run the code yourself.
- Maven Getting Started Guide (guide, Apache Maven, 40 min)
The full official guide covers repositories, resources, site generation and multi-module basics beyond the quick start.
- How to Create an Executable JAR with Maven (article, Baeldung, 20 min)
It compares the jar, assembly, shade and Spring Boot plugins, so you can choose how to package your app.
- Executable JAR (doc, Apache Maven Shade Plugin, 10 min)
The official snippet shows how to set the Main-Class manifest entry so the jar runs on its own.
- Create Executable Jar with Dependencies using Maven (article, Java by Examples, 15 min)
It shows why shade handles overlapping resources better than assembly, and how the shaded jar is attached to the build.
- Maven Shade Plugin: Create an Executable Uber (Fat) JAR (article, HowToDoInJava, 20 min)
It ends with a current worked example and fixes for common problems, such as the 'no main manifest attribute' error and signed-jar errors.