I have the following build of the project:
import sbt._ import Keys._ object ProjectBuild extends Build { val buildVersion = "0.1-SNAPSHOT" val delvingReleases = "Delving Releases Repository" at "http://development.delving.org:8081/nexus/content/repositories/releases" val delvingSnapshots = "Delving Snapshot Repository" at "http://development.delving.org:8081/nexus/content/repositories/snapshots" val delvingRepository = if (buildVersion.endsWith("SNAPSHOT")) delvingSnapshots else delvingReleases lazy val root = Project( id = "basex-scala-client", base = file(".") ).settings( organization := "eu.delving", version := buildVersion, resolvers += "BaseX Repository" at "http://files.basex.org/maven", libraryDependencies += "org.basex" % "basex" % "7.2.1", libraryDependencies += "org.specs2" %% "specs2" % "1.7.1" % "test", publishTo := Some(delvingRepository), credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"), publishMavenStyle := true ) }
When I include the resulting library in another project, for example:
"eu.delving" %% "basex-scala-client" % "0.1-SNAPSHOT"
and I try to create this project, I get an error message indicating that the library "org.basex% basex% 7.2.1" referenced by this project was not found.
I need to go and add a resolver to the client project so that the library is found. Is there any way to avoid this?
source share