From commits-return-77785-archive-asf-public=cust-asf.ponee.io@maven.apache.org Fri Dec 21 20:42:14 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BED9E180675 for ; Fri, 21 Dec 2018 20:42:13 +0100 (CET) Received: (qmail 80767 invoked by uid 500); 21 Dec 2018 19:42:12 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 80751 invoked by uid 99); 21 Dec 2018 19:42:12 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2018 19:42:12 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4164B875EC; Fri, 21 Dec 2018 19:42:12 +0000 (UTC) Date: Fri, 21 Dec 2018 19:42:13 +0000 To: "commits@maven.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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: rfscholte@apache.org In-Reply-To: <154542133219.24421.1622805660581225256@gitbox.apache.org> References: <154542133219.24421.1622805660581225256@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: maven-plugin-tools X-Git-Refname: refs/heads/MPLUGIN-346 X-Git-Reftype: branch X-Git-Rev: acfc61c76d10f4e5f790dbf4575737f39f931871 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20181221194212.4164B875EC@gitbox.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 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 @@ org.codehaus.plexus plexus-utils - 3.0.20 + 3.1.1 org.codehaus.plexus