daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Jul 20th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. val snapshotsName = "Repository Snapshots"
  2. val snapshotsUrl = new java.net.URL("http://nexusHostIp:8081/nexus/content/repositories/snapshots")
  3. val snapshotsPattern = "[organisation]/[module]/[revision]-SNAPSHOT/[artifact]-[revision](-[timestamp]).[ext]"
  4. val snapshots = Resolver.url(snapshotsName, snapshotsUrl)(Patterns(snapshotsPattern))
  5. Credentials(Path.userHome / ".ivy2" / ".credentials", log)
  6.  
  7. val dep = "group" % "artifact" % "0.0.1" extra("timestamp" -> "20101202.195418-3")
  8.    
  9. realm=Snapshots Nexus
  10. host=nexusHostIp:8081
  11. user=nexususername
  12. password=nexuspassword
  13.    
  14. ==== Repository Snapshots: tried
  15. [warn]    -- artifact group#artifact;0.0.1!artifact.jar:
  16. [warn]    http://nexusHostIp:8081/nexus/content/repositories/snapshots/group/artifact/0.0.1-SNAPSHOT/artifact-0.0.1-20101202.195418-3.jar
  17.    
  18. Credentials.add("Repository Snapshots", "nexusHostIp", "nexususername", "nexuspassword")
  19.    
  20. [repositories]
  21.   local
  22.   my-ivy-proxy-releases: http://repo.company.com/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  23.   my-maven-proxy-releases: http://repo.company.com/maven-releases/
  24.    
  25. realm=Artifactory Realm
  26. host=artifactory.mycompany.com
  27. user=username
  28. password=password
  29.    
  30. credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
  31.    
  32. Credentials.add("Sonatype Nexus Repository Manager", "nexusHostIp", "nexususername", "nexuspassword")
  33.    
  34. val snapshotsName = "Repository Snapshots"
  35. val snapshotsUrl = new java.net.URL("http://nexusHostIp:8081/nexus/content/repositories/snapshots")
  36. val snapshotsPattern = "[organisation]/[module]/[revision]-SNAPSHOT/[artifact]-[revision](-[timestamp]).[ext]"
  37. val snapshots = Resolver.url(snapshotsName, snapshotsUrl)(Patterns(snapshotsPattern))
  38. Credentials(Path.userHome / ".ivy2" / ".credentials", log)
  39.  
  40. val dep = "group" % "artifact" % "0.0.1" extra("timestamp" -> "20101202.195418-3")
  41.    
  42. realm=Sonatype Nexus Repository Manager
  43. host=nexusHostIp
  44. user=nexususername
  45. password=nexuspassword
  46.    
  47. credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
  48.    
  49. realm=Some Nexus Repository Manager
  50. host=my.artifact.repo.net
  51. user=admin
  52. password=password123
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top