-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate mappings for scala-library-2.10.3.jar with sbt-native-packager 0.7+, Play 2.2.6 and Scala 2.10 #657
Comments
Sorry for the late reply. This bug seems a bit deeper in sbt. Currently I have no idea what causes this :( |
This bug is causing us a lot of grief. I reached out to @jsuereth a few weeks ago regarding this issue but got no reply. |
I imagine it does, but this is an open source project and we have as much resources as our community provides. If you need any help on debugging this, you can seek guidance, we are happy to help. @ahjohannessen provided a repo to reproduce the bug (see chat log here) |
I took a shortcut and patched the 0.6 branch so I could fix the error there. Here is the forked GitHub project, complete with instructions on how to install it. |
I took a look where these bindings come from. With the repo mentioned above, I found that val showMappings = taskKey[Unit]("showMappings")
showMappings := {
(mappings in Universal).value
.filter(_._2 contains "spray")
.foreach {
case (file, path) => println(file + " -> " + path)
}
}
Question is. Why are |
Perhaps obvious, but disabling cached resolution seems to resolve this at least for me. YMMV. |
Same here, enabled cached resolution today with sbt 0.13.12 and the error "Duplicate mappings" occurred for Play 2.3.10 Workaround, same as @yfyf, disable cached resolution before |
I'm stuck with Play 2.2.6 and Scala 2.10 for a project.
sbt-native-packager
0.6.4 is compatible, but has a bug I can't live with (passing a relative path toscriptClasspath
throwsjava.lang.IllegalArgumentException: character to be escaped is missing
). I see this got fixed insbt-native-packager
0.7.0.Unfortunately, when I try the
sbt stage
task usingsbt-native-packager
0.7.0 or later I get:Suggestions?
The text was updated successfully, but these errors were encountered: