I need to define as a dependency the following library (it's a made up example):
user: testmx
pass:
testmx@testmx
groupId: testmx
artifactId: testmxcommons
version: 1.0.0-SNAPSHOT
So I defined the following project/Build.scala in play framework:
import sbt._
import Keys._
import PlayProject._
object ApplicationBuild extends Build {
val appName = "testmxproject"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
"mysql" % "mysql-connector-java" % "5.1.18",
"testmx" % "testmxcommons" % "1.0.0-SNAPSHOT"
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
credentials += ("testmx public", "deploy.cloud.testmx.com:8081", "testmx", "testmx@testmx"),
resolvers += "testmx public" at "http://deploy.cloud.testmx.com:8081/nexus/content/groups/public/"
)
}
I tried setting the credentials in a separate file with
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
and also following this thread
I tried overriding repositories, but I couldn't do it (I don't know where it is defined)
this is the output
[info] Updating {file:/home/sas/dev/apps/smx/repo/ontologyws/}ontologybackend...
[warn] module not found: smx#smxcore;1.2.1-SNAPSHOT
[warn] ==== local: tried
[warn] /home/sas/dev/play/framework/../repository/local/smx/smxcore/1.2.1-SNAPSHOT/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn] ==== Typesafe Snapshots Repository: tried
[warn] ==== smx public: tried
[warn] ==== public: tried
[warn] ==== Scala-Tools Maven2 Repository: tried
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: smx#smxcore;1.2.1-SNAPSHOT: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
I think I might have a problem with the 8081 port, so I tried with
is there some way to debug it, to see if sbt is passing the correct credentials???
thanks a lot
saludos
sas