I have successfully built my docker image for a play-java
. But while trying to spawn a container for it with docker run -p 0.0.0.0:9000:9000 egima/play activator run
sbt fails to download one particular dependency. The log looks like this:
==== Maven2 Local: tried
file:/root/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0.jar
==== Apache Repository: tried https://repository.apache.org/content/repositories/releases/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0.jar[0m
::::::::::::::::::::::::::::::::::::::::::::::
:: FAILED DOWNLOADS ::
:: ^ see resolution messages for details ^ ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.sonatype.sisu#sisu-guice;3.1.0!sisu-guice.jar
::::::::::::::::::::::::::::::::::::::::::::::
Notice the the tried
repositories. I have followed all the different variants for including the local
maven repos on my machine, I confirm from the logs that sbt checks according to what I have specified in the local maven repos but no luck.
My resolvers in both build.sbt
and /project/plugins.sbt
:
resolvers ++=Seq(
Resolver.sonatypeRepo("public"),
Resolver.mavenLocal,
"Apache Repository" at "https://repository.apache.org/content/repositories/releases/"
)
I also checked my local maven repo to ensure the missing dependency exists. What is missing?