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

rfscholte pushed a commit to branch ARCHETYPE-553
in repository https://gitbox.apache.org/repos/asf/maven-archetype.git


The following commit(s) were added to refs/heads/ARCHETYPE-553 by this push:
     new 3825f2c  ARCHETYPE-553: Pass https.protocols value to Invoker
3825f2c is described below

commit 3825f2c4324a8a8f599506f7fdac5da5ee9963d2
Author: rfscholte <rfscho...@apache.org>
AuthorDate: Sun Aug 12 11:46:39 2018 +0200

    ARCHETYPE-553: Pass https.protocols value to Invoker
---
 .../apache/maven/archetype/creator/FilesetArchetypeCreator.java   | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git 
a/archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
 
b/archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
index 7a87419..747d73e 100644
--- 
a/archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
+++ 
b/archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
@@ -286,6 +286,14 @@ public class FilesetArchetypeCreator
             {
                 internalRequest.setLocalRepositoryDirectory( new File( 
request.getLocalRepository().getBasedir() ) );
             }
+            
+            String httpsProtocols = System.getProperty( "https.protocols" );
+            if ( httpsProtocols != null )
+            {
+                Properties userProperties = new Properties();
+                userProperties.setProperty( "https.protocols", httpsProtocols 
);
+                internalRequest.setProperties( userProperties );
+            }
 
             InvocationResult invokerResult = invoker.execute( internalRequest 
);
             if ( invokerResult.getExitCode() != 0 )

Reply via email to