Apache Maven 3.5.0-SNAPSHOT builds
- Mainly used for testing Apache Maven 3.5.0-SNAPSHOT more easily.
- In contrast to the standard Maven Docker images, the user
running Maven is not
docker run --rm -v $HOME/.m2:/home/user/.m2 -v $PWD:/build -w /build mfriedenhagen/docker-maven mvn clean verify.
Hello Marty, you should run this from your project directory, i.e. where you
You may leave out the
.m2 volume mount, it is not strictly needed.
I haven't used maven before but do know docker
I get an unknown lifecycle phase error with the verify command. Also should this be run from the same location as my pom file or do I need to move the pom to a specific location and then run. Thanks