You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2018/12/21 19:42:12 UTC

[maven-plugin-tools] branch MPLUGIN-346 created (now acfc61c)

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

rfscholte pushed a change to branch MPLUGIN-346
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git.


      at acfc61c  [MPLUGIN-346] plugin:descriptor sometimes fails with java.util.NoSuchElementException Update plexus-utils to 3.1.1

This branch includes the following new commits:

     new acfc61c  [MPLUGIN-346] plugin:descriptor sometimes fails with java.util.NoSuchElementException Update plexus-utils to 3.1.1

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.



[maven-plugin-tools] 01/01: [MPLUGIN-346] plugin:descriptor sometimes fails with java.util.NoSuchElementException Update plexus-utils to 3.1.1

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

rfscholte pushed a commit to branch MPLUGIN-346
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git

commit acfc61c76d10f4e5f790dbf4575737f39f931871
Author: rfscholte <rf...@apache.org>
AuthorDate: Fri Dec 21 20:42:04 2018 +0100

    [MPLUGIN-346] plugin:descriptor sometimes fails with java.util.NoSuchElementException
    Update plexus-utils to 3.1.1
---
 .../maven/tools/plugin/generator/PluginHelpGenerator.java      | 10 +++++++++-
 pom.xml                                                        |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginHelpGenerator.java b/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginHelpGenerator.java
index 6cefa1a..27688cf 100644
--- a/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginHelpGenerator.java
+++ b/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginHelpGenerator.java
@@ -287,7 +287,15 @@ public class PluginHelpGenerator
             return;
         }
 
-        Properties properties = PropertyUtils.loadProperties( tmpPropertiesFile );
+        Properties properties;
+        try
+        {
+            properties = PropertyUtils.loadProperties( tmpPropertiesFile );
+        }
+        catch ( IOException e )
+        {
+            throw new GeneratorException( e.getMessage(), e );
+        }
 
         String helpPackageName = properties.getProperty( "helpPackageName" );
 
diff --git a/pom.xml b/pom.xml
index d248e2d..870bfb3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -168,7 +168,7 @@
       <dependency>
         <groupId>org.codehaus.plexus</groupId>
         <artifactId>plexus-utils</artifactId>
-        <version>3.0.20</version>
+        <version>3.1.1</version>
       </dependency>
       <dependency>
         <groupId>org.codehaus.plexus</groupId>