浏览代码

More code block format fixes

Tianon Gravi 6 年之前
父节点
当前提交
1d4a93b47e
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      maven/content.md

+ 5 - 3
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: