Cannot resolve dependency (but Activator can)
See original GitHub issueRunning sbt stage
against this application has a different result than activator stage
:
https://github.com/gifman009/Licenta
More information in this thread: https://groups.google.com/forum/#!topic/play-framework/RLSPwvOqBIE
$ sbt stage
...
[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] ::::::::::::::::::::::::::::::::::::::::::::::
$ activator stage
...
[info] downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbtrc/actor-client-2-11/0.3.1/jars/actor-client-2-11.jar ...
[info] [SUCCESSFUL ] com.typesafe.sbtrc#actor-client-2-11;0.3.1!actor-client-2-11.jar (36444ms)
[info] downloading https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbtrc/client-2-11/0.3.1/jars/client-2-11.jar
[info] [SUCCESSFUL ] com.typesafe.sbtrc#client-2-11;0.3.1!client-2-11.jar (196692ms)
...
[info] Done packaging.
[success] Total time: 1028 s, completed Jun 11, 2015 4:57:22 PM
If I remove “sbt-fork-run-plugin” from that project, then it resolves the sbtrc dependencies. https://github.com/gifman009/Licenta/blob/master/project/play-fork-run.sbt
I’m not sure if this is an Activator or SBT bug.
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
SBT: cannot resolve dependency that used to work before
1 Answer 1 ... If you are in sbt console, just run reload command and try again. After you update your dependencies or...
Read more >Cannot resolve dependencies... - Optimizely World
First, compare the assembly redirects in web.config so that they point to the same versions as in the working project. If still no...
Read more >Idea can't resolve local maven dependencies in WSL2
We have a multi-module Maven project where individual modules are interconnected and use each other as dependency. We never had issue with this...
Read more >Dependency injection - .NET | Microsoft Learn
When services are resolved by ActivatorUtilities , constructor injection requires that only one applicable constructor exists. Constructor ...
Read more >Dependency issue issue with Mule EE 3.7.2 maven application.
... to execute goal on project trial: Could not resolve dependencies for project com.mycompany:trial:mule:1.0.0-SNAPSHOT: Failed to collect dependencies at ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Removing the project/sbt-ui.sbt file and the fork in run := true entry from the build.sbt file fixed the problem for me
I found that adding the following to the
build.sbt
resolves the dependency:I’m not sure why the
ivyStylePatterns
is required. The problem is that when the build runs with the plugin, it needs the extra resolve. I don’t think it’s possible to add the resolver from the plugin though.I believe this is the same issue discussed here: http://stackoverflow.com/questions/30248497/is-it-possible-to-add-a-resolver-to-an-sbt-projects-build-via-an-autoplugin
So this may turn from a bug to feature request.