How can I retrieve snapshot dependencies from Nexus using SBT?

后端 未结 1 1635
后悔当初
后悔当初 2020-12-16 07:17

I have a maven2 repository from which I\'m trying to fetch an snapshot artifact with an appended timestamp. I\'m (unsurprisingly) able to retrieve it fine when building with

相关标签:
1条回答
  • 2020-12-16 07:48

    Alright, I got this sorted out but it wasn't actually an SBT problem it was 100% user error.

    The Nexus I was using required authentication. I didn't have the authentication credentials set up correctly (see my authentication question) and because it wasn't properly authenticating it wasn't finding the metadata pom files and so SBT printed out the error message that it was failing I, incorrectly, assumed it was authenticating but not resolving. So I started messing with the patterns as evidenced in the actual question.

    However, now that I have authentication setup correctly I changed back to just a regular repository declaration like so:

    val snapshotsRepo = "Snapshots Repository" at "http://host:port/path/to/snapshots/root/"
    

    and everything works. Artifacts are retrieved and dependencies resolved.

    0 讨论(0)
提交回复
热议问题