maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject [maven-plugin-tools] 01/01: [MPLUGIN-346] plugin:descriptor sometimes fails with java.util.NoSuchElementException Update plexus-utils to 3.1.1
Date Fri, 21 Dec 2018 19:42:13 GMT
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 <rfscholte@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>


Mime
View raw message