Don't publish to the Maven repository from SBT.

We need SBT to publish to the local Ivy repository, so that we can reference
snapshots from other SBT projects. Pulling a snapshot from the local Maven
repository just doesn't seem to work with SBT+Ivy.
This commit is contained in:
Michael Bayne
2011-09-06 15:51:32 -07:00
parent 42d4353788
commit 6a4c46114e
-7
View File
@@ -25,10 +25,3 @@ unmanagedResourceDirectories in Compile <+= baseDirectory / "src/main/java"
// work around SBT bug
unmanagedResources in Compile ~= (_.filterNot(_.isDirectory))
// this hackery causes publish-local to install to ~/.m2/repository instead of ~/.ivy
otherResolvers := Seq(Resolver.file("dotM2", file(Path.userHome + "/.m2/repository")))
publishLocalConfiguration <<= (packagedArtifacts, deliverLocal, ivyLoggingLevel) map {
(arts, _, level) => new PublishConfiguration(None, "dotM2", arts, level)
}