Advertisement
Guest User

Untitled

a guest
Jan 17th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  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. Credentials.add("Sonatype Nexus Repository Manager", "nexusHostIp", "nexususername", "nexuspassword")
  21.  
  22. val snapshotsName = "Repository Snapshots"
  23. val snapshotsUrl = new java.net.URL("http://nexusHostIp:8081/nexus/content/repositories/snapshots")
  24. val snapshotsPattern = "[organisation]/[module]/[revision]-SNAPSHOT/[artifact]-[revision](-[timestamp]).[ext]"
  25. val snapshots = Resolver.url(snapshotsName, snapshotsUrl)(Patterns(snapshotsPattern))
  26. Credentials(Path.userHome / ".ivy2" / ".credentials", log)
  27.  
  28. val dep = "group" % "artifact" % "0.0.1" extra("timestamp" -> "20101202.195418-3")
  29.  
  30. realm=Sonatype Nexus Repository Manager
  31. host=nexusHostIp
  32. user=nexususername
  33. password=nexuspassword
  34.  
  35. [repositories]
  36. local
  37. my-ivy-proxy-releases: http://repo.company.com/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  38. my-maven-proxy-releases: http://repo.company.com/maven-releases/
  39.  
  40. realm=Artifactory Realm
  41. host=artifactory.mycompany.com
  42. user=username
  43. password=password
  44.  
  45. credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement