Okay so I figured out what the problem was. If I followed the
instructions more closely on
http://code.google.com/p/simple-build-tool/wiki/Publishing
everything would have worked out fine.
Although, a little more explanation on the wiki wouldn't hurt.
Either you are using the Credentials.add function:
Credentials.add("Sonatype Nexus Repository Manager", "nexus.scala-
tools.org", "admin", "admin123")
or reading a .credentials file:
Credentials(Path.userHome / ".ivy2" / ".credentials", log)
".credentials" content:
realm=Sonatype Nexus Repository Manager
host=
nexus.scala-tools.org
user=admin
password=admin123
the REALM parameter NEEDS to be EXACTLY "Sonatype Nexus Repository
Manager". Or the authentication process will NOT work. More precisely,
the nexus server will get confused and will not receive the
authentication information and will therefore try to authenticate you
as the anonymous user, which has no deployment permissions.
You can configure the realm parameter in the Nexus web.xml
configuration file (contentAuthcBasic.applicationName).
Regards,
Deni Bertovic
On Jul 18, 3:31 pm, deni <
bertovic.d...@gmail.com> wrote:
> I am usingsbtversion 0.7.7.
> > > I am unable to getsbttopublishartifacts to alocalnexusrepo with
> > > authentication.
> > > Mind you, if i turn off the security setting innexusthe publishing
> > > goes fine but no authentication is used.
>
> > > I think this problem has something to do withNexusauthentication
> > > realms becausesbtdoes not even send any credentials to thenexus
> > > server so the wholepublishprocedure fails.