Java Play CI with Jenkins - Build error: UNRESOLVED DEPENDENCIES
So I came across this issue and thought it would be helpful for anyone who stumbles upon the same.
The Jenkins build configurations were set, i.e.
- Setting the code management platform (git)
- Adding the build steps and configuration (sbt compile)
However once the build process is initiated, the following error was thrown failing the build:
...[info] Resolving net.contentobjects.jnotify#jnotify;0.94-play-1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.sbtrc#client-2-11;0.3.1: not found
[warn] :: com.typesafe.sbtrc#actor-client-2-11;0.3.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.typesafe.sbtrc:client-2-11:0.3.1
[warn] +- com.typesafe.play:fork-run-protocol_2.11:2.4.2 ((play.sbt.forkrun.PlayForkRun) PlayForkRun.scala#L48)
[warn] +- com.typesafe.play:fork-run_2.11:2.4.2 ((play.sbt.forkrun.PlayForkRun) PlayForkRun.scala#L48)
[warn] +- complete-the-look-backend:complete-the-look-backend_2.11:2.0.1
[warn] com.typesafe.sbtrc:actor-client-2-11:0.3.1
[warn] +- com.typesafe.play:fork-run_2.11:2.4.2 ((play.sbt.forkrun.PlayForkRun) PlayForkRun.scala#L48)
[warn] +- complete-the-look-backend:complete-the-look-backend_2.11:2.0.1
[info] Wrote D:\JENKINS\jobs\KHCTL\workspace\target\scala-2.11\complete-the-look-backend_2.11-2.0.1.pom
...
The full console trace can be found here: http://pastebin.com/ZNLcQ7yf
The reason and solution:
stb libraries were unable to be fetched from the repository specified, so I had the following to my build.sbt:
resolvers += Resolver.url("Typesafe Ivy releases", url("https://repo.typesafe.com/typesafe/ivy-releases"))(Resolver.ivyStylePatterns)