You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2020/04/04 11:47:18 UTC

[maven-artifact-transfer] branch MSHARED-864 updated: Another refactoring steAnother refactoring stepp

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

khmarbaise pushed a commit to branch MSHARED-864
in repository https://gitbox.apache.org/repos/asf/maven-artifact-transfer.git


The following commit(s) were added to refs/heads/MSHARED-864 by this push:
     new cc89b2a  Another refactoring steAnother refactoring stepp
cc89b2a is described below

commit cc89b2a946135f2b10647990695bf9fbd4bd467c
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sat Apr 4 13:47:07 2020 +0200

    Another refactoring steAnother refactoring stepp
---
 .../maven/plugin/artifact/deployer/ArtifactDeployerMojo.java      | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/it/maven-artifact-deployer-plugin/src/main/java/org/apache/maven/plugin/artifact/deployer/ArtifactDeployerMojo.java b/src/it/maven-artifact-deployer-plugin/src/main/java/org/apache/maven/plugin/artifact/deployer/ArtifactDeployerMojo.java
index 2e40e67..07c72fd 100644
--- a/src/it/maven-artifact-deployer-plugin/src/main/java/org/apache/maven/plugin/artifact/deployer/ArtifactDeployerMojo.java
+++ b/src/it/maven-artifact-deployer-plugin/src/main/java/org/apache/maven/plugin/artifact/deployer/ArtifactDeployerMojo.java
@@ -130,13 +130,9 @@ public class ArtifactDeployerMojo
 
             deployer.deploy( session.getProjectBuildingRequest(), mavenArtifacts );
         }
-        catch ( ArtifactDeployerException e )
+        catch ( ArtifactDeployerException | IOException e )
         {
-            throw new MojoExecutionException( "ArtifactDeployerException", e );
-        }
-        catch ( IOException e )
-        {
-            throw new MojoExecutionException( "IOException", e );
+            throw new MojoExecutionException( e.getClass().getName(), e );
         }
     }