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:13 UTC
[maven-plugin-tools] 01/01: [MPLUGIN-346] plugin:descriptor
sometimes fails with java.util.NoSuchElementException Update plexus-utils
to 3.1.1
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>