maven release -> peer not authenticated

前端 未结 9 2432
面向向阳花
面向向阳花 2020-12-08 16:08

I\'m experimenting a bit with releasing my software (I\'ve never done this before) and so far I\'ve been able to execute mvn release:prepare. As I\'m executing release:perfo

相关标签:
9条回答
  • 2020-12-08 16:27

    https://github.com/escline/InstallCert provides the necessary tools and provides a step by step instruction on how to import a remote certificate into the system-wide certificate store.

    0 讨论(0)
  • 2020-12-08 16:29

    I've had lot of security issues after upgrading to OSX Mavericks

    • SSL problem with Amazon AWS
    • peer not authenticated with Maven and Eclipse
    • trustAnchors parameter must be non-empty

    I applied this JAVA update and it fixed all my issues: http://support.apple.com/kb/DL1572?viewlocale=en_US

    0 讨论(0)
  • 2020-12-08 16:30

    Since version 3.0.5 Maven checks the SSL certificate on https connections. You can temporarily fix this by adding the command line parameters

    -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
    

    Installing the SSL certificate into your JRE should permanently fix the issue.

    Official documentation: http://maven.apache.org/wagon/wagon-providers/wagon-http/

    0 讨论(0)
  • 2020-12-08 16:32

    I found that the Java version can make a difference here.

    With Maven 3.0.5 I was getting this error with Java 6, but switching to Java 7 (or newer) resolved it for me.

    0 讨论(0)
  • 2020-12-08 16:36

    Step 1. Download the certificate in DER format *.cer (/X.509 .cert) file to your local dir

    (You can do this from your browser; For Chrome Click on the Lock symbol, Show Ceritficate --> Copy to File)

    Step 2. Import it to Java trust store

    \Program_Files\Java\jdk1.6.0_45\jre\lib\security>%JAVA_HOME%\jre\bin\keytool -v -alias mavensrv -import -file d:\temp\apacher.cer -keystore trust.jks

    Step 3. Give the path to maven as environment variables

    set MAVEN_OPTS=-Xmx512m -Djavax.net.ssl.trustStore=%JAVA_HOME%/jre/lib/security/trust.jks -Djavax.net.ssl.trustStorePassword=changeit -Djavax.net.ssl.keyStore=%JAVA_HOME%/jre/lib/security/trust.jks -Djavax.net.ssl.keyStoreType=jks -Djavax.net.ssl.keyStorePassword=changeit

    0 讨论(0)
  • 2020-12-08 16:39

    It looks like a SSL problem when connecting to the server. Maybe before the username and password check.

    Did you config the svn server with SSL client auth? This means you need to send a client certificate to the server.

    0 讨论(0)
提交回复
热议问题