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

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


The following commit(s) were added to refs/heads/master by this push:
     new e23ba56  Reduce log noise (#467)
e23ba56 is described below

commit e23ba5646d1ec24f7acd2f17c148389463b9fa7d
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Sat Jul 19 10:50:37 2025 +0000

    Reduce log noise (#467)
---
 src/main/java/org/apache/maven/plugins/ear/EarMojo.java        | 10 +++++-----
 .../apache/maven/plugins/ear/GenerateApplicationXmlMojo.java   |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/ear/EarMojo.java 
b/src/main/java/org/apache/maven/plugins/ear/EarMojo.java
index b9d4814..09124cb 100644
--- a/src/main/java/org/apache/maven/plugins/ear/EarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/ear/EarMojo.java
@@ -339,7 +339,7 @@ public class EarMojo extends AbstractEarMojo {
             File earSourceDir = earSourceDirectory;
 
             if (earSourceDir.exists()) {
-                getLog().info("Copy ear sources to " + 
getWorkDirectory().getAbsolutePath());
+                getLog().debug("Copy ear sources to " + 
getWorkDirectory().getAbsolutePath());
                 String[] fileNames = getEarFiles(earSourceDir);
                 for (String fileName : fileNames) {
                     copyFile(new File(earSourceDir, fileName), new 
File(getWorkDirectory(), fileName));
@@ -349,7 +349,7 @@ public class EarMojo extends AbstractEarMojo {
 
             if (applicationXml != null) {
                 // rename to application.xml
-                getLog().info("Including custom application.xml[" + 
applicationXml + "]");
+                getLog().debug("Including custom application.xml[" + 
applicationXml + "]");
                 File metaInfDir = new File(getWorkDirectory(), META_INF);
                 copyFile(applicationXml, new File(metaInfDir, 
"/application.xml"));
                 
outdatedResources.remove(Paths.get("META-INF/application.xml").toString());
@@ -414,7 +414,7 @@ public class EarMojo extends AbstractEarMojo {
                 if ((unpackTypesList.contains(module.getType())
                                 && (module.shouldUnpack() == null || 
module.shouldUnpack()))
                         || (module.shouldUnpack() != null && 
module.shouldUnpack())) {
-                    getLog().info("Copying artifact [" + module + "] to [" + 
module.getUri() + "] (unpacked)");
+                    getLog().debug("Copying artifact [" + module + "] to [" + 
module.getUri() + "] (unpacked)");
                     // Make sure that the destination is a directory to avoid 
plexus nasty stuff :)
                     if (!destinationFile.isDirectory() && 
!destinationFile.mkdirs()) {
                         throw new MojoExecutionException("Error creating " + 
destinationFile);
@@ -426,7 +426,7 @@ public class EarMojo extends AbstractEarMojo {
                     }
                 } else {
                     if (sourceFile.lastModified() > 
destinationFile.lastModified()) {
-                        getLog().info("Copying artifact [" + module + "] to [" 
+ module.getUri() + "]");
+                        getLog().debug("Copying artifact [" + module + "] to 
[" + module.getUri() + "]");
                         createParentIfNecessary(destinationFile);
                         Files.copy(
                                 sourceFile.toPath(),
@@ -874,7 +874,7 @@ public class EarMojo extends AbstractEarMojo {
         for (String outdatedResource : outdatedResources) {
             File resourceFile = new File(getWorkDirectory(), outdatedResource);
             if (resourceFile.lastModified() < startTime) {
-                getLog().info("deleting outdated resource " + 
outdatedResource);
+                getLog().debug("deleting outdated resource " + 
outdatedResource);
                 getLog().debug(outdatedResource + " last modified: " + 
resourceFile.lastModified());
                 resourceFile.delete();
             }
diff --git 
a/src/main/java/org/apache/maven/plugins/ear/GenerateApplicationXmlMojo.java 
b/src/main/java/org/apache/maven/plugins/ear/GenerateApplicationXmlMojo.java
index c24d97a..f772f0c 100644
--- a/src/main/java/org/apache/maven/plugins/ear/GenerateApplicationXmlMojo.java
+++ b/src/main/java/org/apache/maven/plugins/ear/GenerateApplicationXmlMojo.java
@@ -169,7 +169,7 @@ public class GenerateApplicationXmlMojo extends 
AbstractEarMojo {
             final JavaEEVersion javaEEVersion = 
JavaEEVersion.getJavaEEVersion(version);
 
             // Generate deployment descriptor and copy it to the build 
directory
-            getLog().info("Generating application.xml");
+            getLog().debug("Generating application.xml");
             try {
                 generateStandardDeploymentDescriptor(javaEEVersion);
             } catch (EarPluginException e) {
@@ -190,7 +190,7 @@ public class GenerateApplicationXmlMojo extends 
AbstractEarMojo {
             getLog().debug("Generation of jboss-app.xml is disabled");
         } else {
             // Generate deployment descriptor and copy it to the build 
directory
-            getLog().info("Generating jboss-app.xml");
+            getLog().debug("Generating jboss-app.xml");
             try {
                 generateJbossDeploymentDescriptor();
             } catch (EarPluginException e) {

Reply via email to