From 1d4a93b47e3803a3a995404dcb208b80a7fd1620 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 8 Feb 2019 07:57:29 -0800 Subject: [PATCH] More code block format fixes --- maven/content.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/maven/content.md b/maven/content.md index c518ad93d..000029406 100644 --- a/maven/content.md +++ b/maven/content.md @@ -24,9 +24,11 @@ $ docker build --tag my_local_%%IMAGE%%:3.5.2-jdk-8 . The local Maven repository can be reused across containers by creating a volume and mounting it in `/root/.m2`. - docker volume create --name maven-repo - docker run -it -v maven-repo:/root/.m2 %%IMAGE%% mvn archetype:generate # will download artifacts - docker run -it -v maven-repo:/root/.m2 %%IMAGE%% mvn archetype:generate # will reuse downloaded artifacts +```console +$ docker volume create --name maven-repo +$ docker run -it -v maven-repo:/root/.m2 %%IMAGE%% mvn archetype:generate # will download artifacts +$ docker run -it -v maven-repo:/root/.m2 %%IMAGE%% mvn archetype:generate # will reuse downloaded artifacts +``` Or you can just use your home .m2 cache directory that you share e.g. with your Eclipse/IDEA: