diff --git a/core/pom.xml b/core/pom.xml
index e0b9bbe186..825d8a865f 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -48,6 +48,11 @@
kubernetes-api
+
+ com.fasterxml.jackson.dataformat
+ jackson-dataformat-yaml
+
+
io.fabric8
docker-maven-plugin
diff --git a/core/src/main/java/io/fabric8/maven/core/util/ResourceFileType.java b/core/src/main/java/io/fabric8/maven/core/util/ResourceFileType.java
index 4772749608..b0046321b8 100644
--- a/core/src/main/java/io/fabric8/maven/core/util/ResourceFileType.java
+++ b/core/src/main/java/io/fabric8/maven/core/util/ResourceFileType.java
@@ -18,8 +18,10 @@
import java.io.File;
+import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
+import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator;
/**
* Type of resources supported
@@ -39,7 +41,8 @@ public ObjectMapper getObjectMapper() {
yaml("yml","yml") {
@Override
public ObjectMapper getObjectMapper() {
- return new ObjectMapper(new YAMLFactory());
+ return new ObjectMapper(new YAMLFactory()
+ .configure(YAMLGenerator.Feature.MINIMIZE_QUOTES, true));
}
};
diff --git a/parent/pom.xml b/parent/pom.xml
index 743ff0eafb..cf59db525c 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -216,7 +216,20 @@
io.fabric8
kubernetes-api
${version.fabric8}
+
+
+ com.fasterxml.jackson.dataformat
+ jackson-dataformat-yaml
+
+
+
+
+ com.fasterxml.jackson.dataformat
+ jackson-dataformat-yaml
+ 2.8.4
+
+
io.fabric8
fabric8-project-utils