Although Maven is the most common build tool used to build Java projects, it can be a hard beast to tame.

I have fought many frustrating battles with it, and I know that getting things to work can require a lot of effort and time.

That is why I decided to help you by documenting some of them on my blog.

This tutorial assumes that you already know how to use Maven. It doesn’t help you to get started, but it will help you to solve some non trivial problems and save some of your precious time.

Introducing: Maven Tutorial

My Maven tutorial consists of several blog posts and each blog post solve a specific problem. These blog posts are:

Running Unit Tests With Maven is a free sample lesson of my Test With Spring course. It explains why you should use JUnit 4 categories and describes how you can use Maven for running unit tests which use JUnit 4 categories.- Writing Unit Tests With Spock Framework: Creating a Maven Project describes how you can create a Maven project that compiles and runs unit tests which use the Spock Framework.

If you are tired of using Maven, get started with Gradle.