This is an automated email from the ASF dual-hosted git repository. michaelo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-ejb-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 8ebfe6a Merge the same exception handlers 8ebfe6a is described below commit 8ebfe6a7f0fdf1a65cdf026efa2dc7361504d330 Author: Piotrek Żygieło <pzygi...@users.noreply.github.com> AuthorDate: Sun Apr 12 17:00:41 2020 +0200 Merge the same exception handlers --- .../java/org/apache/maven/plugins/ejb/EjbMojo.java | 31 ++-------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/ejb/EjbMojo.java b/src/main/java/org/apache/maven/plugins/ejb/EjbMojo.java index d9c7da8..c00f044 100644 --- a/src/main/java/org/apache/maven/plugins/ejb/EjbMojo.java +++ b/src/main/java/org/apache/maven/plugins/ejb/EjbMojo.java @@ -395,19 +395,7 @@ public class EjbMojo // create archive archiver.createArchive( session, project, archive ); } - catch ( ArchiverException e ) - { - throw new MojoExecutionException( "There was a problem creating the EJB archive: " + e.getMessage(), e ); - } - catch ( ManifestException e ) - { - throw new MojoExecutionException( "There was a problem creating the EJB archive: " + e.getMessage(), e ); - } - catch ( IOException e ) - { - throw new MojoExecutionException( "There was a problem creating the EJB archive: " + e.getMessage(), e ); - } - catch ( DependencyResolutionRequiredException e ) + catch ( ArchiverException | ManifestException | IOException | DependencyResolutionRequiredException e ) { throw new MojoExecutionException( "There was a problem creating the EJB archive: " + e.getMessage(), e ); } @@ -448,22 +436,7 @@ public class EjbMojo clientArchiver.createArchive( session, project, archive ); } - catch ( ArchiverException e ) - { - throw new MojoExecutionException( "There was a problem creating the EJB client archive: " + e.getMessage(), - e ); - } - catch ( ManifestException e ) - { - throw new MojoExecutionException( "There was a problem creating the EJB client archive: " + e.getMessage(), - e ); - } - catch ( IOException e ) - { - throw new MojoExecutionException( "There was a problem creating the EJB client archive: " + e.getMessage(), - e ); - } - catch ( DependencyResolutionRequiredException e ) + catch ( ArchiverException | ManifestException | IOException | DependencyResolutionRequiredException e ) { throw new MojoExecutionException( "There was a problem creating the EJB client archive: " + e.getMessage(), e );