-
Notifications
You must be signed in to change notification settings - Fork 5
Locale_Compile_with_maven
Sven Ruppert edited this page Apr 25, 2018
·
2 revisions
For the daily usage we need a faster version. Something we can run on command line very quickly. Using the Maven Docker Images, the local path could be mounted inside the container. So we have access to the source code and additionally after the mvn clean install we can check all results that are available in the target folder.
docker run -it --rm --name compileJDK08 -v "$(pwd)":/usr/src/mymaven -w /usr/src/mymaven maven:3.5-jdk-8 mvn clean install
docker run -it --rm --name compileJDK09 -v "$(pwd)":/usr/src/mymaven -w /usr/src/mymaven maven:3.5-jdk-9 mvn clean install
docker run -it --rm --name compileJDK10 -v "$(pwd)":/usr/src/mymaven -w /usr/src/mymaven maven:3.5-jdk-10 mvn clean install
To use the local .m2 repository, the folder can be mounted into the Docker Image as well.
docker run -it --rm --name compileJDK08 \
-v "$HOME/.m2":/root/.m2 \
-v "$(pwd)":/usr/src/mymaven \
-w /usr/src/mymaven \
maven:3.5-jdk-8 \
mvn clean install
docker run -it --rm --name compileJDK09 \
-v "$HOME/.m2":/root/.m2 \
-v "$(pwd)":/usr/src/mymaven \
-w /usr/src/mymaven \
maven:3.5-jdk-9 \
mvn clean install
docker run -it --rm --name compileJDK10 \
-v "$HOME/.m2":/root/.m2 \
-v "$(pwd)":/usr/src/mymaven \
-w /usr/src/mymaven \
maven:3.5-jdk-10 \
mvn clean install
//TODO -> maybe an local development environment - Gitea/DroneCI minimum - link to development environment github
for feedback or questions :
- Twitter : @SvenRuppert
- email: sven.ruppert (a) gmail.com