From 587c8479c4789e2ee048626bb7ce8fbc78dc7aa1 Mon Sep 17 00:00:00 2001 From: Brian Long Date: Tue, 7 Feb 2023 15:01:01 -0500 Subject: [PATCH] less dependence on plexus-utils; including it explicitly --- pom.xml | 32 +++++++++++++++---- .../com/inteligr8/alfresco/amp/AmpMojo.java | 6 ++-- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 2fdf2e1..0e75207 100644 --- a/pom.xml +++ b/pom.xml @@ -51,11 +51,27 @@ commons-lang3 3.12.0 + + org.apache.commons + commons-io + 1.3.2 + + + org.eclipse.aether aether-util 1.1.0 + + + + org.codehaus.plexus + plexus-utils + 3.5.0 + + + org.apache.maven maven-plugin-api @@ -74,6 +90,16 @@ ${maven.version} provided + + + + junit + junit + 4.12 + test + + + org.apache.maven.plugin-testing maven-plugin-testing-harness @@ -86,12 +112,6 @@ ${maven.version} test - - junit - junit - 4.12 - test - diff --git a/src/main/java/com/inteligr8/alfresco/amp/AmpMojo.java b/src/main/java/com/inteligr8/alfresco/amp/AmpMojo.java index 0221fe4..a5166ac 100644 --- a/src/main/java/com/inteligr8/alfresco/amp/AmpMojo.java +++ b/src/main/java/com/inteligr8/alfresco/amp/AmpMojo.java @@ -29,6 +29,7 @@ import java.util.List; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; +import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.apache.maven.execution.MavenSession; import org.apache.maven.model.Exclusion; @@ -49,7 +50,6 @@ import org.apache.maven.project.ProjectDependenciesResolver; import org.codehaus.plexus.component.annotations.Component; import org.codehaus.plexus.component.annotations.Requirement; import org.codehaus.plexus.util.FileUtils; -import org.codehaus.plexus.util.IOUtil; import org.eclipse.aether.graph.Dependency; import org.eclipse.aether.impl.ArtifactResolver; import org.eclipse.aether.resolution.ArtifactRequest; @@ -327,7 +327,7 @@ public class AmpMojo extends AbstractMojo implements ArtifactResolutionCallback FileInputStream fistream = new FileInputStream(file); BufferedInputStream bistream = new BufferedInputStream(fistream, this.streamBufferSize); try { - IOUtil.copy(bistream, zstream); + IOUtils.copy(bistream, zstream); } finally { bistream.close(); } @@ -354,7 +354,7 @@ public class AmpMojo extends AbstractMojo implements ArtifactResolutionCallback FileInputStream fistream = new FileInputStream(file); BufferedInputStream bistream = new BufferedInputStream(fistream, this.streamBufferSize); try { - IOUtil.copy(bistream, zstream); + IOUtils.copy(bistream, zstream); } finally { bistream.close(); }