This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch kly
in repository https://gitbox.apache.org/repos/asf/maven-acr-plugin.git


The following commit(s) were added to refs/heads/kly by this push:
     new 432ee80  more
432ee80 is described below

commit 432ee804f5be32989e251508dd34b3db2e7500c9
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Thu Nov 27 06:14:41 2025 -0600

    more
---
 .../java/org/apache/maven/plugins/acr/AcrMojo.java     | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/acr/AcrMojo.java 
b/src/main/java/org/apache/maven/plugins/acr/AcrMojo.java
index 016d256..8a17037 100644
--- a/src/main/java/org/apache/maven/plugins/acr/AcrMojo.java
+++ b/src/main/java/org/apache/maven/plugins/acr/AcrMojo.java
@@ -42,14 +42,12 @@ import org.apache.maven.shared.filtering.FilterWrapper;
 import org.apache.maven.shared.filtering.MavenFileFilter;
 import org.apache.maven.shared.filtering.MavenFilteringException;
 import org.apache.maven.shared.filtering.MavenResourcesExecution;
-import org.codehaus.plexus.archiver.AbstractArchiver;
 import org.codehaus.plexus.archiver.ArchiverException;
 import org.codehaus.plexus.archiver.jar.JarArchiver;
 import org.codehaus.plexus.archiver.jar.ManifestException;
+import org.codehaus.plexus.archiver.util.DefaultFileSet;
 import org.codehaus.plexus.util.FileUtils;
 
-import static org.codehaus.plexus.archiver.util.DefaultFileSet.fileSet;
-
 /**
  * Build a JavaEE Application Client jar file from the current project.
  *
@@ -202,11 +200,11 @@ public class AcrMojo extends AbstractMojo {
             }
 
             if (outputDirectory.exists()) {
-                AbstractArchiver abstractArchiver = archiver.getArchiver();
-                abstractArchiver.addFileSet(fileSet(outputDirectory)
-                        .prefixed("")
-                        .includeExclude(DEFAULT_INCLUDES, mainJarExcludes)
-                        .includeEmptyDirs(true));
+                archiver.getArchiver()
+                        .addFileSet(DefaultFileSet.fileSet(outputDirectory)
+                                .prefixed("")
+                                .includeExclude(DEFAULT_INCLUDES, 
mainJarExcludes)
+                                .includeEmptyDirs(true));
             } else {
                 // CHECKSTYLE_OFF: LineLength
                 getLog().info(
@@ -244,10 +242,10 @@ public class AcrMojo extends AbstractMojo {
             // CHECKSTYLE_OFF: LineLength
         } catch (ArchiverException e) {
             throw new MojoExecutionException(
-                    "There was a problem creating the JavaEE Application 
Client  archive: " + e.getMessage(), e);
+                    "There was a problem creating the JavaEE Application 
Client archive: " + e.getMessage(), e);
         } catch (ManifestException e) {
             throw new MojoExecutionException(
-                    "There was a problem reading / creating the manifest for 
the JavaEE Application Client  archive: "
+                    "There was a problem reading / creating the manifest for 
the JavaEE Application Client archive: "
                             + e.getMessage(),
                     e);
         } catch (IOException e) {

Reply via email to