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/05/11 14:29:29 UTC

[maven] branch fix-transport-settings created (now 2ed0d98c1)

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

cstamas pushed a change to branch fix-transport-settings
in repository https://gitbox.apache.org/repos/asf/maven.git


      at 2ed0d98c1 Use config properties instead user properties.

This branch includes the following new commits:

     new 2ed0d98c1 Use config properties instead user properties.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven] 01/01: Use config properties instead user properties.

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch fix-transport-settings
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 2ed0d98c19cca77bb4f21d990a6175274ada93e4
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Wed May 11 16:29:04 2022 +0200

    Use config properties instead user properties.
---
 .../maven/internal/aether/DefaultRepositorySystemSessionFactory.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java b/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
index 323dfe87e..5e21f5e8c 100644
--- a/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
+++ b/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
@@ -261,8 +261,7 @@ public class DefaultRepositorySystemSessionFactory
         }
         session.setAuthenticationSelector( authSelector );
 
-        String transport = request.getUserProperties()
-                .getProperty( MAVEN_RESOLVER_TRANSPORT_KEY, MAVEN_RESOLVER_TRANSPORT_WAGON );
+        Object transport = configProps.getOrDefault( MAVEN_RESOLVER_TRANSPORT_KEY, MAVEN_RESOLVER_TRANSPORT_WAGON );
         if ( MAVEN_RESOLVER_TRANSPORT_NATIVE.equals( transport ) )
         {
             // Make sure (whatever extra priority is set) that resolver native is selected