From 652bd2cd359acc81dd4c734ef49b9e3fd2168306 Mon Sep 17 00:00:00 2001
From: Matthias Andreas Benkard <code@mail.matthias.benkard.de>
Date: Fri, 11 Sep 2020 10:10:50 +0200
Subject: KB56 Fix resource copy step.

The Maven Resources Plugin defaulted to not overwriting files that
were already present in the target if they had a newer modification
timestamp.  This led to unpredictable behavior during the packaging
phase, where the resources generated by Parcel did not override the
original source files.

This patch sets the overwrite flag when copying the generated
resources, fixing the problem.

Change-Id: I047f5eb7d56e4444233ec12d94be43a12137010b
---
 pom.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 29e987f..9e3411a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -284,6 +284,7 @@
             </goals>
             <configuration>
               <outputDirectory>${basedir}/target/classes/META-INF/resources</outputDirectory>
+              <overwrite>true</overwrite>
               <resources>
                 <resource>
                   <directory>${basedir}/src/main/resources/META-INF/resources/dist</directory>
@@ -306,7 +307,7 @@
         <dependencies>
           <dependency>
             <groupId>org.liquibase.ext</groupId>
-            <artifactId>liquibase-hibernate5</artifactId> <!-- note: I tried hibernate4 release version as well -->
+            <artifactId>liquibase-hibernate5</artifactId>
             <version>${liquibase.version}</version>
           </dependency>
           <dependency>
-- 
cgit v1.2.3