Re: Play framework and sbt: passing credentials to a nexus passowrd protected repo

421 views
Skip to first unread message

opensas opensas

unread,
Jun 6, 2012, 9:26:34 PM6/6/12
to simple-b...@googlegroups.com
sorry guys, it was a newbir question

the problem was the realm and the port being included in the credentials definition


saludos

sas

On Wednesday, June 6, 2012 12:08:55 AM UTC-3, opensas opensas wrote:
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] ::::::::::::::::::::::::::::::::::::::::::::::

The real pom file (not http://deploy.cloud.testmx.com:8081/nexus/content/groups/public/tesetmx/testmxcommons/1.0.0-SNAPSHOT/testmxcommons-1.0.0-SNAPSHOT.pom) does exists, and I can read it from any web browser if I enter the corresponding credentials)

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


Reply all
Reply to author
Forward
0 new messages