From 036d0f1c70b97637d7928532b918bc7a85a867e6 Mon Sep 17 00:00:00 2001 From: "Martin, Steve" Date: Mon, 7 Dec 2015 13:33:54 +0000 Subject: [PATCH] Add support for docker build nocache option via -Ddocker.nocache=true --- src/main/java/org/jolokia/docker/maven/access/UrlBuilder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/jolokia/docker/maven/access/UrlBuilder.java b/src/main/java/org/jolokia/docker/maven/access/UrlBuilder.java index 8bd1d7293..408d42203 100644 --- a/src/main/java/org/jolokia/docker/maven/access/UrlBuilder.java +++ b/src/main/java/org/jolokia/docker/maven/access/UrlBuilder.java @@ -22,6 +22,7 @@ public String buildImage(String image, boolean forceRemove) { return u("build") .p("t",image) .p(forceRemove ? "forcerm" : "rm", true) + .p("nocache", Boolean.valueOf(System.getProperty("docker.nocache", "false"))) .build(); }