diff --git a/src/it/projects/no-overwrite-3.6.2-before/.flattened-pom.xml b/src/it/projects/no-overwrite-3.6.2-before/.flattened-pom.xml
new file mode 100644
index 00000000..c7c5b961
--- /dev/null
+++ b/src/it/projects/no-overwrite-3.6.2-before/.flattened-pom.xml
@@ -0,0 +1,16 @@
+
+
+ 4.0.0
+ org.codehaus.mojo.flatten.its
+ resolve-properties
+ 0.0.1-SNAPSHOT
+
+
+ org.codehaus.mojo.flatten.its
+ dep
+ 1.1
+ compile
+
+
+
diff --git a/src/it/projects/no-overwrite/pom.xml b/src/it/projects/no-overwrite-3.6.2-before/pom.xml
similarity index 100%
rename from src/it/projects/no-overwrite/pom.xml
rename to src/it/projects/no-overwrite-3.6.2-before/pom.xml
diff --git a/src/it/projects/no-overwrite/verify.groovy b/src/it/projects/no-overwrite-3.6.2-before/verify.groovy
similarity index 57%
rename from src/it/projects/no-overwrite/verify.groovy
rename to src/it/projects/no-overwrite-3.6.2-before/verify.groovy
index 5c4dc10a..0a3519fd 100644
--- a/src/it/projects/no-overwrite/verify.groovy
+++ b/src/it/projects/no-overwrite-3.6.2-before/verify.groovy
@@ -16,9 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
+String mavenVersion = "./mvnw -v".execute().text.split()[2]
+String[] mavenVersionArray = mavenVersion.split("\\.")
+int[] versionArray = new int[3]
+for (int i = 0; i < 3; i++)
+ versionArray[i] = Integer.valueOf(mavenVersionArray[i])
+boolean isValid = versionArray[0] < 3\
+ || versionArray[0] == 3 && versionArray[1] < 6\
+ || versionArray[0] == 3 && versionArray[1] == 6 && versionArray[2] < 3
+if (isValid) {
+ File flattendPom = new File( basedir, '.flattened-pom.xml' )
+ assert flattendPom.exists()
+ long now = System.currentTimeMillis()
+ assert now - flattendPom.lastModified() > 20*1000
+}
-File flattendPom = new File( basedir, '.flattened-pom.xml' )
-assert flattendPom.exists()
-long now = System.currentTimeMillis()
-assert now - flattendPom.lastModified() > 20*1000
diff --git a/src/it/projects/no-overwrite/.flattened-pom.xml b/src/it/projects/no-overwrite-3.6.3-later/.flattened-pom.xml
similarity index 100%
rename from src/it/projects/no-overwrite/.flattened-pom.xml
rename to src/it/projects/no-overwrite-3.6.3-later/.flattened-pom.xml
diff --git a/src/it/projects/no-overwrite-3.6.3-later/pom.xml b/src/it/projects/no-overwrite-3.6.3-later/pom.xml
new file mode 100644
index 00000000..136905a7
--- /dev/null
+++ b/src/it/projects/no-overwrite-3.6.3-later/pom.xml
@@ -0,0 +1,19 @@
+
+ 4.0.0
+ org.codehaus.mojo.flatten.its
+ resolve-properties
+ 0.0.1-SNAPSHOT
+
+
+ 1.1
+
+
+
+
+ org.codehaus.mojo.flatten.its
+ dep
+ ${depVersion}
+
+
+
+
\ No newline at end of file
diff --git a/src/it/projects/no-overwrite-3.6.3-later/verify.groovy b/src/it/projects/no-overwrite-3.6.3-later/verify.groovy
new file mode 100644
index 00000000..cda154de
--- /dev/null
+++ b/src/it/projects/no-overwrite-3.6.3-later/verify.groovy
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+String mavenVersion = "./mvnw -v".execute().text.split()[2]
+String[] mavenVersionArray = mavenVersion.split("\\.")
+int[] versionArray = new int[3]
+for (int i = 0; i < 3; i++)
+ versionArray[i] = Integer.valueOf(mavenVersionArray[i])
+boolean isValid = versionArray[0] > 3\
+ || versionArray[0] == 3 && versionArray[1] > 6\
+ || versionArray[0] == 3 && versionArray[1] == 6 && versionArray[2] >= 3
+if (isValid) {
+ File flattendPom = new File( basedir, '.flattened-pom.xml' )
+ assert flattendPom.exists()
+ long now = System.currentTimeMillis()
+ assert now - flattendPom.lastModified() > 20*1000
+}
+
+