diff --git a/pom.xml b/pom.xml
index 68e4ce35..9b209c05 100644
--- a/pom.xml
+++ b/pom.xml
@@ -124,7 +124,7 @@
org.jbake
jbake-core
- 2.2.1
+ 2.3.0
org.apache.maven
diff --git a/src/main/java/br/com/ingenieux/mojo/jbake/GenerateMojo.java b/src/main/java/br/com/ingenieux/mojo/jbake/GenerateMojo.java
index 2f1e55ce..df002b28 100644
--- a/src/main/java/br/com/ingenieux/mojo/jbake/GenerateMojo.java
+++ b/src/main/java/br/com/ingenieux/mojo/jbake/GenerateMojo.java
@@ -40,10 +40,16 @@ public class GenerateMojo extends AbstractMojo {
*/
@Parameter(property = "jbake.inputDirectory", defaultValue = "${project.basedir}/src/main/jbake", required = true)
protected File inputDirectory;
+
+ /**
+ * Set if cache is present or clear
+ */
+ @Parameter(property = "jbake.isClearCache", defaultValue = "false", required = true)
+ protected boolean isClearCache;
public void execute() throws MojoExecutionException {
try {
- Oven oven = new Oven(inputDirectory, outputDirectory);
+ Oven oven = new Oven(inputDirectory, outputDirectory, isClearCache);
oven.setupPaths();
oven.bake();