diff --git a/core/src/main/java/org/jboss/pnc/build/finder/core/DistributionAnalyzer.java b/core/src/main/java/org/jboss/pnc/build/finder/core/DistributionAnalyzer.java index b621f0d5..060e8eeb 100644 --- a/core/src/main/java/org/jboss/pnc/build/finder/core/DistributionAnalyzer.java +++ b/core/src/main/java/org/jboss/pnc/build/finder/core/DistributionAnalyzer.java @@ -54,6 +54,7 @@ import org.apache.commons.collections4.MultiValuedMap; import org.apache.commons.collections4.multimap.HashSetValuedHashMap; +import org.apache.commons.io.FileUtils; import org.apache.commons.vfs2.AllFileSelector; import org.apache.commons.vfs2.FileObject; import org.apache.commons.vfs2.FileSystem; @@ -296,8 +297,7 @@ private void cleanupVfsCache() throws IOException { if (tmpDir != null) { File vfsCacheDir = new File(tmpDir, "vfs_cache"); - - Files.deleteIfExists(vfsCacheDir.toPath()); + FileUtils.deleteDirectory(vfsCacheDir); } } diff --git a/pom.xml b/pom.xml index e7586b97..4ce35cec 100644 --- a/pom.xml +++ b/pom.xml @@ -62,10 +62,10 @@ - - + + 3.5.4 - + UTF-8 true 1.4.14 @@ -1102,7 +1102,7 @@ limitations under the License.]]> ${mavenVersion} - +