Start

This part puts Maven on the machine and shows what it is for: a two-file Java project built by hand with javac, jar and java, then the same project with one pom.xml and one mvn command. The version comes next, with the one-line settings file that switches offline mode on and a goal the local repository does not have. Then a first project from the archetype and the five files it writes, a test run offline, and two plugin versions this image lacks. The part closes with the standard directory layout: src/main/java, src/main/resources, src/test/java and target, and what each folder gives the build.

01 What Maven is and what problem it solves A two-file project built with javac, jar and java, then the same project with one pom and one command. Open 02 The version, the settings and offline mode mvn -v, the one-line settings file with offline true, and a goal the local repository does not have. Open 03 A first project from the archetype mvn archetype:generate, the five files it writes, a test run offline, and two plugin versions this image lacks. Open 04 The standard directory layout src/main/java, src/main/resources, src/test/java and target, and what each folder gives the build. Open

Articles