You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2018/03/04 11:34:54 UTC

[maven-ear-plugin] branch MEAR-254-JavaEE-8 updated (ab216a5 -> 44c8427)

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

khmarbaise pushed a change to branch MEAR-254-JavaEE-8
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git.


 discard ab216a5  First step in direction to JavaEE 8 support.
     new 44c8427  [MEAR-254] - Support JavaEE version 8

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (ab216a5)
            \
             N -- N -- N   refs/heads/MEAR-254-JavaEE-8 (44c8427)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:

-- 
To stop receiving notification emails like this one, please contact
khmarbaise@apache.org.

[maven-ear-plugin] 01/01: [MEAR-254] - Support JavaEE version 8

Posted by kh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch MEAR-254-JavaEE-8
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git

commit 44c84277c9cbec4ffb4168a9a10f020039d960bd
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Tue Jan 16 20:27:31 2018 +0100

    [MEAR-254] - Support JavaEE version 8
---
 .../apache/maven/plugins/ear/ApplicationXmlWriter.java | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/main/java/org/apache/maven/plugins/ear/ApplicationXmlWriter.java b/src/main/java/org/apache/maven/plugins/ear/ApplicationXmlWriter.java
index 6c6142d..65c7701 100644
--- a/src/main/java/org/apache/maven/plugins/ear/ApplicationXmlWriter.java
+++ b/src/main/java/org/apache/maven/plugins/ear/ApplicationXmlWriter.java
@@ -78,6 +78,10 @@ final class ApplicationXmlWriter
         {
             writer = initializeRootElementSeven( w );
         }
+        else if ( JavaEEVersion.EIGHT.eq( version ) )
+        {
+            writer = initializeRootElementEight( w );
+        }
 
         // writer is still on root element, so we can still add this attribute
         if ( context.getApplicationId() != null )
@@ -253,4 +257,18 @@ final class ApplicationXmlWriter
         writer.addAttribute( "version", "7" );
         return writer;
     }
+
+    private XMLWriter initializeRootElementEight( Writer w )
+    {
+        XMLWriter writer = initializeXmlWriter( w, null );
+        writer.startElement( APPLICATION_ELEMENT );
+        writer.addAttribute( "xmlns", "http://xmlns.jcp.org/xml/ns/javaee" );
+        writer.addAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
+        // CHECKSTYLE_OFF: LineLength
+        writer.addAttribute( "xsi:schemaLocation",
+                             "http://xmlns.jcp.org/xml/ns/javaee/ http://xmlns.jcp.org/xml/ns/javaee/application_8.xsd" );
+        // CHECKSTYLE_ON: LineLength
+        writer.addAttribute( "version", "8" );
+        return writer;
+    }
 }

-- 
To stop receiving notification emails like this one, please contact
khmarbaise@apache.org.