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 2020/11/11 23:16:24 UTC

[maven-jlink-plugin] branch CODE_IMPROVEMENTS updated (8274fe3 -> 46308cb)

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

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


 discard 8274fe3  Fixed formatting.
 discard a4df80a  Cleaned up code.
     add 11f3521  [MJLINK-37] - Upgrade maven-archiver to 3.4.0
     add bea8fe2  [MJLINK-38] - Upgrade plexus-java 1.0.3
     add fe1c6e9  fix typo
     add c85bd42  [MJLINK-43] upgrade plexus-java 1.0.5
     add ee7c85e  [MJLINK-45] make build Reproducible
     add 707ffe0  fixed link to mailing lists
     add 066920b  fixed link to doc
     add 5ceb4e7  added ASF Jira badge
     add 6f5ca85  fixed typo
     add 4a3191d  added ASF GitHub config
     add 0bd7305  fixed broken links (MPIR 3)
     add 9b5ff64  README improvement
     add 51df86c  [MJLINK-46] - Upgrade maven-archiver to 3.5.0
     add bd943d5  update ASF CI url
     add 6fcf680  update ASF CI url
     add 84d6073  [MJLINK-50] Upgrade to Java 8 / Maven 3.1.0
     add 6fc3a10  Add CI workflow
     add 31f1610  [MJLINK-9] Add test for multi-module reactor project (#11)
     add 0ed8837  Run tests on Java 8, 11, 15, and 16-ea
     add 204549c  Add Windows to the build matrix
     add 9c16bdd  [MJLINK-40] add --include-locales option.
     add a330205  [MJLINK-9] - Add support for multi module projects
     add dd98950  Bump version to 3.0.0-SNAPSHOT as release preparation.
     add 805ebe1  [maven-release-plugin] prepare release maven-jlink-plugin-3.0.0
     add e7d64fa  [maven-release-plugin] prepare for next development iteration
     add 01b7a12  Revert "[maven-release-plugin] prepare for next development iteration"
     add 7c16032  Revert "[maven-release-plugin] prepare release maven-jlink-plugin-3.0.0"
     add e9e1807  [maven-release-plugin] prepare release maven-jlink-plugin-3.0.0
     add 91d80a3  [maven-release-plugin] prepare for next development iteration
     add 41240bb  [MJLINK-54] - Compiler source/target for site generating does not work with 8
     new c78720d  Cleaned up code.
     new 46308cb  Fixed formatting.

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   (8274fe3)
            \
             N -- N -- N   refs/heads/CODE_IMPROVEMENTS (46308cb)

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 2 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:
 .asf.yaml                                          | 26 ++++++
 .github/workflows/maven.yml                        | 51 ++++++++++++
 CONTRIBUTING.md                                    | 91 ---------------------
 Jenkinsfile                                        |  2 +-
 README.md                                          | 22 ++---
 pom.xml                                            | 95 +++++++++++++++-------
 .../invoker.properties                             |  1 +
 .../pom.xml                                        | 10 ++-
 .../verify.groovy                                  | 16 ++--
 .../MJLINK-9_reactor/api/pom.xml}                  | 72 +++++++++-------
 .../java/com/reactor/project/api/Currency.java}    | 39 +++++----
 .../main/java/com/reactor/project/api/Money.java}  | 49 +++++++----
 .../api}/src/main/java/module-info.java            |  5 +-
 .../app}/pom.xml                                   | 48 +++++------
 .../main/java/com/reactor/project/app/App.java}    | 20 ++++-
 .../app}/src/main/java/module-info.java            |  7 +-
 .../dist}/pom.xml                                  | 44 +++++-----
 .../dist}/src/main/java/module-info.java           |  6 +-
 .../invoker.properties                             |  0
 .../{MJLINK-26 => MJLINK-9_reactor}/pom.xml        | 43 ++++++----
 .../verify.groovy                                  | 14 +++-
 .../org/apache/maven/plugins/jlink/JLinkMojo.java  | 37 ++++++++-
 src/site/apt/index.apt.vm                          |  8 +-
 23 files changed, 426 insertions(+), 280 deletions(-)
 create mode 100644 .asf.yaml
 create mode 100644 .github/workflows/maven.yml
 delete mode 100644 CONTRIBUTING.md
 copy src/it/projects/{setup-jar-module-info => MJLINK-40_includeLocales}/invoker.properties (99%)
 copy src/it/projects/{MJLINK-3_improveVerboseOutput => MJLINK-40_includeLocales}/pom.xml (89%)
 copy src/it/projects/{cli-options/bind-services => MJLINK-40_includeLocales}/verify.groovy (77%)
 copy src/it/{mrm/repository/localhost/com.soebes.nine.jar/1.0-SNAPSHOT/com.soebes.nine.jar-1.0-SNAPSHOT.pom => projects/MJLINK-9_reactor/api/pom.xml} (60%)
 copy src/it/projects/{MJLINK-26/src/main/java/com/corporate/project/Main.java => MJLINK-9_reactor/api/src/main/java/com/reactor/project/api/Currency.java} (66%)
 copy src/it/projects/{MJLINK-26/src/main/java/com/corporate/project/Main.java => MJLINK-9_reactor/api/src/main/java/com/reactor/project/api/Money.java} (55%)
 copy src/it/projects/{MJLINK-6_allowSetJmodPath => MJLINK-9_reactor/api}/src/main/java/module-info.java (92%)
 copy src/it/projects/{MJLINK-4_dependencyResolution => MJLINK-9_reactor/app}/pom.xml (53%)
 copy src/it/projects/{MJLINK-26/src/main/java/module-info.java => MJLINK-9_reactor/app/src/main/java/com/reactor/project/app/App.java} (70%)
 copy src/it/projects/{MJLINK-6_allowSetJmodPath => MJLINK-9_reactor/app}/src/main/java/module-info.java (88%)
 copy src/it/projects/{MJLINK-4_dependencyResolution => MJLINK-9_reactor/dist}/pom.xml (62%)
 copy src/it/projects/{setup-jar-module-info => MJLINK-9_reactor/dist}/src/main/java/module-info.java (91%)
 copy src/it/projects/{cli-options/suggest-providers => MJLINK-9_reactor}/invoker.properties (100%)
 copy src/it/projects/{MJLINK-26 => MJLINK-9_reactor}/pom.xml (64%)
 copy src/it/projects/{MJLINK-6_allowSetJmodPath => MJLINK-9_reactor}/verify.groovy (69%)


[maven-jlink-plugin] 02/02: Fixed formatting.

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

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

commit 46308cb395f732dab7eaebd5b7935040f74a915d
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Mar 24 10:38:26 2019 +0100

    Fixed formatting.
---
 src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 b438cf6..adce30a 100644
--- a/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
+++ b/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
@@ -290,7 +290,7 @@ public class JLinkMojo
         File jmodsFolder;
         if ( sourceJdkModules != null && sourceJdkModules.isDirectory() )
         {
-            jmodsFolder = new File ( sourceJdkModules, JMODS );
+            jmodsFolder = new File( sourceJdkModules, JMODS );
         }
         else
         {
@@ -399,7 +399,7 @@ public class JLinkMojo
                 }
 
                 // Don't warn for automatic modules, let the jlink tool do that
-                getLog().debug(" module: " + value.name() + " automatic: " + value.isAutomatic());
+                getLog().debug( " module: " + value.name() + " automatic: " + value.isAutomatic() );
                 if ( modulepathElements.containsKey( value.name() ) )
                 {
                     getLog().warn( "The module name " + value.name() + " does already exists." );
@@ -434,7 +434,7 @@ public class JLinkMojo
                 }
             }
 
-        }   
+        }
         catch ( IOException e )
         {
             getLog().error( e.getMessage() );


[maven-jlink-plugin] 01/02: Cleaned up code.

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

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

commit c78720d227130f02ce6861b4576874cdcfc39b1a
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Feb 10 19:08:46 2019 +0100

    Cleaned up code.
---
 .../org/apache/maven/plugins/jlink/JLinkMojo.java   | 21 +++++++++++----------
 .../maven/plugins/jlink/AbstractJLinkMojoTest.java  | 21 ---------------------
 2 files changed, 11 insertions(+), 31 deletions(-)

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 14bebdc..b438cf6 100644
--- a/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
+++ b/src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java
@@ -389,7 +389,8 @@ public class JLinkMojo
 
             for ( Map.Entry<File, JavaModuleDescriptor> entry : resolvePathsResult.getPathElements().entrySet() )
             {
-                if ( entry.getValue() == null )
+                JavaModuleDescriptor value = entry.getValue();
+                if ( value == null )
                 {
                     String message = "The given dependency " + entry.getKey()
                         + " does not have a module-info.java file. So it can't be linked.";
@@ -398,13 +399,12 @@ 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().debug(" module: " + value.name() + " automatic: " + value.isAutomatic());
+                if ( modulepathElements.containsKey( value.name() ) )
                 {
-                    getLog().warn( "The module name " + entry.getValue().name() + " does already exists." );
+                    getLog().warn( "The module name " + value.name() + " does already exists." );
                 }
-                modulepathElements.put( entry.getValue().name(), entry.getKey() );
+                modulepathElements.put( value.name(), entry.getKey() );
             }
 
             // This part is for the module in target/classes ? (Hacky..)
@@ -418,18 +418,19 @@ public class JLinkMojo
                 ResolvePathsResult<File> resolvePaths = locationManager.resolvePaths( singleModuls );
                 for ( Entry<File, JavaModuleDescriptor> entry : resolvePaths.getPathElements().entrySet() )
                 {
-                    if ( entry.getValue() == null )
+                    JavaModuleDescriptor value = entry.getValue();
+                    if ( value == null )
                     {
                         String message = "The given project " + entry.getKey()
                             + " does not contain a module-info.java file. So it can't be linked.";
                         getLog().error( message );
                         throw new MojoFailureException( message );
                     }
-                    if ( modulepathElements.containsKey( entry.getValue().name() ) )
+                    if ( modulepathElements.containsKey( value.name() ) )
                     {
-                        getLog().warn( "The module name " + entry.getValue().name() + " does already exists." );
+                        getLog().warn( "The module name " + value.name() + " does already exists." );
                     }
-                    modulepathElements.put( entry.getValue().name(), entry.getKey() );
+                    modulepathElements.put( value.name(), entry.getKey() );
                 }
             }
 
diff --git a/src/test/java/org/apache/maven/plugins/jlink/AbstractJLinkMojoTest.java b/src/test/java/org/apache/maven/plugins/jlink/AbstractJLinkMojoTest.java
index 85dd34c..bcabd52 100644
--- a/src/test/java/org/apache/maven/plugins/jlink/AbstractJLinkMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/jlink/AbstractJLinkMojoTest.java
@@ -109,25 +109,4 @@ public class AbstractJLinkMojoTest
         assertThat( result ).isEqualTo( "A,B" );
     }
 
-//    @Test
-//    public void xxx()
-//        throws MojoExecutionException, IOException, CommandLineException
-//    {
-//        Process p = mock( Process.class );
-//
-//        String b = "Error occured";
-//        byte[] bytes = b.getBytes();
-//        ByteArrayOutputStream baos = new ByteArrayOutputStream();
-//        baos.write( bytes );
-//        
-//        when (p.getOutputStream()).thenReturn( baos );
-//        
-//        Commandline cmd = mock( Commandline.class );
-//        when (cmd.execute()).thenReturn( p );
-//        
-//        File outputDirectory = mock( File.class );
-//
-//        mojoMock.executeCommand( cmd, outputDirectory );
-//
-//    }
 }