Baeldung/scala-tutorials

build error when running scala2-libraries project

Closed this issue · 4 comments

Hello,

Regarding https://www.baeldung.com/scala/kafka, when I run the scala2-libraries project, I get the following error:

sbt:scala-tutorials> project scala2_libraries

sbt:scala2-libraries> run
[info] Updating scala2-libraries_2.13
[info] Resolved scala2-libraries_2.13 dependencies
[warn] 
[warn] 	Note: Unresolved dependencies path:
[error] stack trace is suppressed; run last update for the full output
[error] (update) sbt.librarymanagement.ResolveException: Error downloading com.typesafe.akka:akka-actor-typed_2.13:2.9.3
[error]   Not found
[error]   Not found
[error]   not found: /Users/philschw/.ivy2/localcom.typesafe.akka/akka-actor-typed_2.13/2.9.3/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/typesafe/akka/akka-actor-typed_2.13/2.9.3/akka-actor-typed_2.13-2.9.3.pom
[error]   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.akka.io/maven/com/typesafe/akka/akka-actor-typed_2.13/2.9.3/akka-actor-typed_2.13-2.9.3.pom
[error]   not found: https://packages.confluent.io/maven/com/typesafe/akka/akka-actor-typed_2.13/2.9.3/akka-actor-typed_2.13-2.9.3.pom
[error] Error downloading com.typesafe.akka:akka-stream_2.13:2.9.3
[error]   Not found
[error]   Not found
[error]   not found: /Users/philschw/.ivy2/localcom.typesafe.akka/akka-stream_2.13/2.9.3/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/typesafe/akka/akka-stream_2.13/2.9.3/akka-stream_2.13-2.9.3.pom
[error]   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.akka.io/maven/com/typesafe/akka/akka-stream_2.13/2.9.3/akka-stream_2.13-2.9.3.pom
[error]   not found: https://packages.confluent.io/maven/com/typesafe/akka/akka-stream_2.13/2.9.3/akka-stream_2.13-2.9.3.pom
[error] Total time: 9 s, completed 4 Apr 2025, 17:33:43
sbt:scala2-libraries>

I get the same error if I test the project:

sbt:scala2-libraries> test

Thanks.

Thanks for the feedback, @philip-schwarz-itv.

This issue will remain open until we look into it.

@philip-schwarz-itv I dont think this is related to this repo. Make sure you are using JDK 17.
Also, this might be due to the corporate proxy issue.
Here is a link with some details.

Thanks for the feedback here - that's always super helpful.
We do naturally try to keep everything updated, but, as you might imagine, in some cases, we also do have to prioritize some updates over others.
This looks to be one that won't have high priority.
We now have a note internally on it - closing this issue here.
Thanks,
Team

@yadavan88 apologies for the late response - you are right, when I attempt the same on my personal laptop (non-corporate), everything works smoothly.

Thank you.