![logo] (https://binfalse.de/assets/media/pics/2016/mvn-docker.jpg "Docker & Apache")
This could be useful if you don't want to install Maven locally
-
Put this Dockerfile into your project directory
-
Build the image with, for example (you can call image as you want)
docker build -t maven .
- Build your project with
docker run -i -t -v /your/project/directory:/usr/src:rw maven mvn clean install -f /usr/src/pom.xml
- Java version:
1.7.0_111
- Scala version:
2.9.1-1
- sbt version:
0.13.13
- Maven version:
3.3.9
- NPM version:
1.4.21
This image would contain npm as well. It was needed to build Apache Zeppelin
Tested on macOS 10.12.1 (Sierra) with Docker for Mac Version 1.12.1 (build: 12133)
-
Docker starter guide: Get started with Docker
-
Maven quick guide: Maven in 5 minutes