aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2021-09-28 11:24:44 +0100
committerMichael Morris <michael.morris@est.tech>2021-10-06 08:39:18 +0000
commit7b60bd7a745d38fd9e51630b6245c2f227abe830 (patch)
tree5e6bda847de855493d137f56c838482fb3c02f0e
parent6ecc7c3e150f86528d36cdbaa94912b965619a70 (diff)
Fix clean up of build file sdctool.tar
Fixes clean up/generation of cassandra-init build file sdctool.tar. It was not being deleted during the clean, also not being overwritten during the build. This could cause the file to not be updated during the build process, in case of changes in the content that composes it. Change-Id: I82ba2cfaa0f7d823fcf5cfff27292483a7ff9ea2 Issue-ID: SDC-3741 Signed-off-by: andre.schmid <andre.schmid@est.tech>
-rw-r--r--asdctool/pom.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/asdctool/pom.xml b/asdctool/pom.xml
index 5c012596ec..0d4f12dc7b 100644
--- a/asdctool/pom.xml
+++ b/asdctool/pom.xml
@@ -769,6 +769,29 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>clean.sdctool.tar</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</directory>
+ <includes>
+ <include>sdctool.tar</include>
+ </includes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
@@ -781,6 +804,7 @@
<outputDirectory>
${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default
</outputDirectory>
+ <overwrite>true</overwrite>
<resources>
<resource>
<directory>${project.parent.basedir}/asdctool/target</directory>