diff --git a/plugins/alfresco-maven-plugin/pom.xml b/plugins/alfresco-maven-plugin/pom.xml index 1c42bc4c..ed027a15 100644 --- a/plugins/alfresco-maven-plugin/pom.xml +++ b/plugins/alfresco-maven-plugin/pom.xml @@ -140,6 +140,11 @@ zt-zip 1.11 + + de.schlichtherle.truezip + truezip-kernel + 7.7.9 + diff --git a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/AbstractRunMojo.java b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/AbstractRunMojo.java index 187cc9e4..43f70ab1 100644 --- a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/AbstractRunMojo.java +++ b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/AbstractRunMojo.java @@ -17,6 +17,8 @@ */ package org.alfresco.maven.plugin; +import de.schlichtherle.truezip.file.TVFS; +import de.schlichtherle.truezip.fs.FsSyncException; import org.alfresco.maven.plugin.config.ModuleDependency; import org.alfresco.maven.plugin.config.TomcatDependency; import org.alfresco.maven.plugin.config.TomcatWebapp; @@ -1177,6 +1179,13 @@ public abstract class AbstractRunMojo extends AbstractMojo { execEnv ); } + + // Force the unmount of all the files mounted with TrueZIP to avoid an exception in the FsSyncShutdownHook + try { + TVFS.umount(); + } catch (final FsSyncException e) { + getLog().error(e); + } } /**