Skip to content

Commit 3f8a125

Browse files
authored
Fix docker assembly by ensuring the directory is clean first. (#117)
* Fix docker assembly by ensuring the directory is clean first. * Hack new version of clean plugin since parent pom upgrade not possible at this time.
1 parent cacd605 commit 3f8a125

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,32 @@
263263
<inherited>false</inherited>
264264
</plugin>
265265
<!-- Project Specific Plugins -->
266+
<plugin>
267+
<artifactId>maven-clean-plugin</artifactId>
268+
<!-- TODO(ville): Cannot upgrade parent pom to latest without some major
269+
cleanup in this project (which is underway separately) but fixing
270+
the docker build in the short-term is more important. -->
271+
<!--<version>${maven.clean.plugin.version}</version>-->
272+
<version>3.1.0</version>
273+
<executions>
274+
<execution>
275+
<id>clean-assemblies</id>
276+
<phase>initialize</phase>
277+
<goals>
278+
<goal>clean</goal>
279+
</goals>
280+
<configuration>
281+
<excludeDefaultDirectories>true</excludeDefaultDirectories>
282+
<verbose>true</verbose>
283+
<filesets>
284+
<fileset>
285+
<directory>${project.build.directory}/docker-assembly</directory>
286+
</fileset>
287+
</filesets>
288+
</configuration>
289+
</execution>
290+
</executions>
291+
</plugin>
266292
<plugin>
267293
<groupId>org.codehaus.mojo</groupId>
268294
<artifactId>appassembler-maven-plugin</artifactId>

0 commit comments

Comments
 (0)