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
Explicit URL using from
not working as expected
#5418
Comments
The is a follow-on from the Gitter chat, that starts here and ends here, where you say:
So in this issue you're tracking the fact that |
We added the The description of the issue above is using a correct URL, but bogus module name (to prevent sbt/coursier from using the default behavior). |
I have used |
from
not working as expected
If this is a regression starting sbt 1.3.x, could you report this to coursier/coursier please? I'm not sure if there's much we can do on sbt's side beyond suggesting |
steps
We have the following dependency (note the intentional misspelling of the module name, added there to better demonstrate the issue)
problem
the
from
rule does not work. sbt does not download the artifact using the given url. Furthermore it tries to resolve the dependency using other URLs. Here's the log:At the end it says
opencv-linux-3.1.0-1.2.jar
not found underhttps://ourthing/maven2/org/bytedeco/javacpp-presets/opencv-linux/3.1.0-1.2/
even though it surely is (and sbt will happily download it if I remove they
from the module name added there to trigger this).expectation
I would have expected the
from
to work and further more, I would not have expected it to try to resolve it from other sources. The point offrom
for me is to be able to override the normal resolving and point to an exact artifact. It should fail if the artifact is not there. At the moment it doesn't fail if I use the correct artifact id, but wrong from url.[error] not found: https://ourthing/maven2/org/bytedeco/javacpp-presets/opencv-linuxy/3.1.0-1.2/opencv-linuxy-3.1.0-1.2.pom
[error] not found: https://ourthing/ivy/org.bytedeco.javacpp-presets/opencv-linuxy/3.1.0-1.2/ivys/ivy.xml
notes
Could it be that sbt is trying to use
https://ourthing/maven2/org/bytedeco/javacpp-presets/opencv-linux/3.1.0-1.2/
as a directory name?The text was updated successfully, but these errors were encountered: