You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dmitriy Tserekhman (JIRA)" <ji...@apache.org> on 2016/12/08 22:17:58 UTC
[jira] [Created] (MNG-6134) MAVEN_OPTS=-Djavax.net.debug=ssl DOES
NOT show SSL debug output
Dmitriy Tserekhman created MNG-6134:
---------------------------------------
Summary: MAVEN_OPTS=-Djavax.net.debug=ssl DOES NOT show SSL debug output
Key: MNG-6134
URL: https://issues.apache.org/jira/browse/MNG-6134
Project: Maven
Issue Type: Bug
Affects Versions: 3.3.9
Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T09:41:47-07:00)
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"
Reporter: Dmitriy Tserekhman
Hi,
I'm trying to use "mvn release:prepare" where <connection/> and <developerConnection/> of the <scm/> attribute in my pom.xml specify "https" url to the nexus server which has a self-signed certificate.
I did imported this self-signed certificate into "cacerts" of the JAVA_HOME used by my Maven, but I'm still getting this error:
fatal: unable to access 'https:/<my nexus server url>': SSL certificate problem: Invalid certificate chain
I tried to enable SSL debug by setting MAVEN_OPTS to understand the problem better, but am still not getting any more debug messaging:
MAVEN_OPTS=-Djavax.net.debug=ssl
The "-X" and "-e" maven parameters only show the stacktrace from the "release" plug-in where the error is being thrown, but does not reflect any SSL debug information.
Provider message:
The git-push command failed.
Command output:
fatal: unable to access 'https://<my nexus server url>': SSL certificate problem: Invalid certificate chain
at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:299)
at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:247)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
On the other hand, when I use same JAVA_HOME by other Java programs that access same nexus server URL, I do not get this SSL error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)