You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2022/07/12 11:16:52 UTC

[maven-deploy-plugin] 01/02: Apply comments

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

cstamas pushed a commit to branch full-resolver
in repository https://gitbox.apache.org/repos/asf/maven-deploy-plugin.git

commit bd805053694e38c4f1510aa9c19a5426c8086442
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Tue Jul 12 11:00:18 2022 +0200

    Apply comments
---
 .../maven/plugins/deploy/AbstractDeployMojo.java     | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/deploy/AbstractDeployMojo.java b/src/main/java/org/apache/maven/plugins/deploy/AbstractDeployMojo.java
index 6fe7f60..dda506b 100644
--- a/src/main/java/org/apache/maven/plugins/deploy/AbstractDeployMojo.java
+++ b/src/main/java/org/apache/maven/plugins/deploy/AbstractDeployMojo.java
@@ -123,27 +123,27 @@ public abstract class AbstractDeployMojo
 
     private RemoteRepository getRemoteRepository( ArtifactRepository remoteRepository )
     {
-        RemoteRepository aetherRepo = RepositoryUtils.toRepo( remoteRepository );
+        RemoteRepository result = RepositoryUtils.toRepo( remoteRepository );
 
-        if ( aetherRepo.getAuthentication() == null || aetherRepo.getProxy() == null )
+        if ( result.getAuthentication() == null || result.getProxy() == null )
         {
-            RemoteRepository.Builder builder = new RemoteRepository.Builder( aetherRepo );
+            RemoteRepository.Builder builder = new RemoteRepository.Builder( result );
 
-            if ( aetherRepo.getAuthentication() == null )
+            if ( result.getAuthentication() == null )
             {
                 builder.setAuthentication( session.getRepositorySession().getAuthenticationSelector()
-                        .getAuthentication( aetherRepo ) );
+                        .getAuthentication( result ) );
             }
 
-            if ( aetherRepo.getProxy() == null )
+            if ( result.getProxy() == null )
             {
-                builder.setProxy( session.getRepositorySession().getProxySelector().getProxy( aetherRepo ) );
+                builder.setProxy( session.getRepositorySession().getProxySelector().getProxy( result ) );
             }
 
-            aetherRepo = builder.build();
+            result = builder.build();
         }
 
-        return aetherRepo;
+        return result;
     }
 
     protected DeployRequest deployRequest( ArtifactRepository repository, List<Artifact> artifacts )
@@ -191,7 +191,7 @@ public abstract class AbstractDeployMojo
                 if ( count + 1 < retryFailedDeploymentCounter )
                 {
                     getLog().warn( "Encountered issue during deployment: " + e.getLocalizedMessage() );
-                    getLog().debug( e.getMessage() );
+                    getLog().debug( e );
                 }
                 if ( exception == null )
                 {