You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2020/09/19 21:32:00 UTC

[maven-ear-plugin] branch master updated: MEAR-284 remove META-INF/jboss-app.xml from outdated check if generated

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

hboutemy 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 0b723e0  MEAR-284 remove META-INF/jboss-app.xml from outdated check if generated
0b723e0 is described below

commit 0b723e025e12a0035d1fd9aade7c967c80749894
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat Sep 19 23:31:52 2020 +0200

    MEAR-284 remove META-INF/jboss-app.xml from outdated check if generated
---
 src/main/java/org/apache/maven/plugins/ear/EarMojo.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 675e588..fc11dd3 100644
--- a/src/main/java/org/apache/maven/plugins/ear/EarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/ear/EarMojo.java
@@ -393,8 +393,12 @@ public class EarMojo
                 + " does not exist." );
             // CHECKSTYLE_ON: LineLength
         }
-        // no need to check timestamp: removing if outdated does not really make sense
+        // no need to check timestamp for descriptors: removing if outdated does not really make sense
         outdatedResources.remove( Paths.get( APPLICATION_XML_URI ).toString() );
+        if ( getJbossConfiguration() != null )
+        {
+            outdatedResources.remove( Paths.get( "META-INF/jboss-app.xml" ).toString() );
+        }
         
         final long startTime = session.getStartTime().getTime();