Eric J. Christeson
unread,Dec 29, 2011, 4:55:18 PM12/29/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-build-tool
I just spent the better part of this afternoon trying to use our local
nexus repo which requires authentication. I carefully followed the
instructions related to publishing and had partial success. If I
specified the credentials in build.sbt like this:
credentials += Credentials("Sonatype Nexus Repository
Manager","<host>","<username>","<password>")
it would work
However, specifying it like this:
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
would not. I verified that sbt could open the file by mistyping it
and seeing the warning when it could not open the file. I verified
that it was parsing the file by leaving out the 'user' key. I read
the ivy/Credentials.scala code to make sure I was using all the
correct keys. I found my problem when I started a post to this group
asking for help. In ~/.ivy2/.credentials, I had a trailing space in
my 'host' value. I didn't catch it until I was pasting the contents
of the file to send a message.
I think I'll file a bug report for stripping trailing whitespace from
values in the credentials file. Heck, maybe I'll submit a patch for
it :-)
Thanks,
Eric