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/09/11 07:04:50 UTC

[maven-jlink-plugin] branch MJLINK-28 updated (0225701 -> 77cce95)

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

khmarbaise pushed a change to branch MJLINK-28
in repository https://gitbox.apache.org/repos/asf/maven-jlink-plugin.git.


 discard 0225701  [MJLINK-28] - Add WARNING in case of duplicate module names
     new 77cce95  [MJLINK-28] - Add WARNING in case of duplicate module names

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   (0225701)
            \
             N -- N -- N   refs/heads/MJLINK-28 (77cce95)

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:
 src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java | 4 ++++
 1 file changed, 4 insertions(+)


[maven-jlink-plugin] 01/01: [MJLINK-28] - Add WARNING in case of duplicate module names

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

khmarbaise pushed a commit to branch MJLINK-28
in repository https://gitbox.apache.org/repos/asf/maven-jlink-plugin.git

commit 77cce953089a1f8577120fd193eb1e2456663af6
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Tue Sep 11 08:45:37 2018 +0200

    [MJLINK-28] - Add WARNING in case of duplicate module names
---
 src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java b/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
index a92a687..86cb01a 100644
--- a/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
+++ b/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
@@ -365,6 +365,10 @@ public class JLinkMojo
                 // Don't warn for automatic modules, let the jlink tool do that
                 getLog().debug( " module: " + entry.getValue().name() + " automatic: "
                     + entry.getValue().isAutomatic() );
+                if ( modulepathElements.containsKey( entry.getValue().name() ) )
+                {
+                    getLog().warn( "The module name " + entry.getValue().name() + " does already exists." );
+                }
                 modulepathElements.put( entry.getValue().name(), entry.getKey() );
             }
 
@@ -386,6 +390,10 @@ public class JLinkMojo
                         getLog().error( message );
                         throw new MojoFailureException( message );
                     }
+                    if ( modulepathElements.containsKey( entry.getValue().name() ) )
+                    {
+                        getLog().warn( "The module name " + entry.getValue().name() + " does already exists." );
+                    }
                     modulepathElements.put( entry.getValue().name(), entry.getKey() );
                 }
             }