Reputation: 1
I just install sbt using brew install sbt
. However, I got a weird error when I tried sbt
the first time for sun.security.provider.certpath.SunCertPathBuilderException
...
The error looks like
[info] [launcher] getting org.scala-sbt sbt 1.9.7 (this may take some time)... [error] [launcher] xsbt.boot.internal.shaded.coursier.error.ResolutionError$CantDownloadModule: Error downloading org.scala-sbt:sbt:1.9.7 not found: /Users/username/.ivy2/local/org.scala-sbt/sbt/1.9.7/ivys/ivy.xml download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.9.7/sbt-1.9.7.pom download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/1.9.7/sbt-1.9.7.pom download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/1.9.7/sbt-1.9.7.pom download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/1.9.7/ivys/ivy.xml download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/1.9.7/ivys/ivy.xml [error] [launcher] could not retrieve sbt 1.9.7
I tried to reinstall sbt using sdk, but still get the same error.
Upvotes: 0
Views: 337
Reputation: 1
The problem seems to be related to the JDK I used (which provided by eBay). i.e., The context is that eBay has their own version of OpenSDK... So, it is not a general issue I realized.
Upvotes: 0