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
commit bc503d9f96406905a00c4e84801e89b81cfb3c9e Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Thu Nov 27 06:10:47 2025 -0600 Inline deprecated method --- src/main/java/org/apache/maven/plugins/acr/AcrMojo.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 e7dede3..5aa1b51 100644 --- a/src/main/java/org/apache/maven/plugins/acr/AcrMojo.java +++ b/src/main/java/org/apache/maven/plugins/acr/AcrMojo.java @@ -42,11 +42,14 @@ 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.util.FileUtils; +import static org.codehaus.plexus.archiver.util.DefaultFileSet.fileSet; + /** * Build a JavaEE Application Client jar file from the current project. * @@ -199,7 +202,11 @@ public class AcrMojo extends AbstractMojo { } if (outputDirectory.exists()) { - archiver.getArchiver().addDirectory(outputDirectory, DEFAULT_INCLUDES, mainJarExcludes); + AbstractArchiver abstractArchiver = archiver.getArchiver(); + abstractArchiver.addFileSet(fileSet(outputDirectory) + .prefixed("") + .includeExclude(DEFAULT_INCLUDES, mainJarExcludes) + .includeEmptyDirs(true)); } else { // CHECKSTYLE_OFF: LineLength getLog().info(
