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 2018/12/08 13:25:10 UTC

[maven-dependency-plugin] 01/01: Added https TLSv1.2

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

khmarbaise pushed a commit to branch MDEP-625
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git

commit 23bb997b1f2dac35ff29d47ab14c534f1809ee05
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sat Nov 10 08:59:34 2018 +0100

    Added https TLSv1.2
---
 pom.xml                                                               | 4 ++++
 .../maven/plugins/dependency/fromConfiguration/ArtifactItem.java      | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 11331db..6507e7f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -395,6 +395,10 @@ under the License.
               <filterProperties>
                 <repository.proxy.url>${repository.proxy.url}</repository.proxy.url>
               </filterProperties>
+              <properties>
+                <!-- e.g. ensure that Java7 picks up TLSv1.2 when connecting with Central -->
+                <https.protocols>${https.protocols}</https.protocols>
+              </properties>
             </configuration>
           </plugin>
           <plugin>
diff --git a/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/ArtifactItem.java b/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/ArtifactItem.java
index 1967998..4a8ad6c 100644
--- a/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/ArtifactItem.java
+++ b/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/ArtifactItem.java
@@ -24,7 +24,7 @@ import java.io.File;
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.ArtifactUtils;
 import org.apache.maven.plugins.dependency.utils.DependencyUtil;
-import org.apache.maven.shared.dependencies.DependableCoordinate;
+import org.apache.maven.shared.transfer.dependencies.DependableCoordinate;
 import org.codehaus.plexus.components.io.filemappers.FileMapper;
 import org.codehaus.plexus.util.StringUtils;