Nexus OSS 3.1.0-04 sbt proxy repository configuration Not Found

308 views
Skip to first unread message

Conor Fennell

unread,
Dec 1, 2016, 3:30:30 PM12/1/16
to Nexus Users
Firstly I have been able to configure maven, docker and npm pulling down smoothly with this nexus instance.

Having tried various sbt configurations I am at a loss; I keep getting Not Found when sbt is configured to retrieve from the nexus repository.


The full instructions and files I used including logs are at this gist: https://gist.github.com/conorfennell/161f63b93d37abbc61b0ef5db4c33cd5

Any guidance would be much appreciated.


Instructions Followed

Started nexus 3 docker image: https://github.com/sonatype/docker-nexus3

docker run -d -p 8081:8081 --name nexus sonatype/nexus3

  • Put .sbtconfig in $HOME/.sbtconfig
  • Put credentials.sbt in $HOME/.sbt/0.13/plugins/credentials.sbt
  • Put .credentials in $HOME/.ivy2/.credentials
  • Put repositoriesin $HOME/.sbt/repositories

Nexus configuration

On the Nexus instance I created two "Repository Groups", one called ivy and one called maven. The ivy one includes these two repositories:

The maven one includes the Maven Central repository, already configured in Nexus by default.

Peter Lynch

unread,
Dec 2, 2016, 5:31:06 PM12/2/16
to Conor Fennell, Nexus Users
The realm name changed accidentally in Nexus 3.0 and 3.0.1 to "Sonatype Nexus"

This was changed back to "Sonatype Nexus Repository Manager" to match what Nexus 2.x had as of Nexus 3.0.2.

The latest docker image uses Nexus 3.1.0, so at the very least make sure any realm references say "Sonatype Nexus Repository Manager" ( this is not what you have configured in .credentials )

Also I can't tell where you are executing sbt - if the nexus docker image is running, I doubt a local sbt command is actually hitting it at the loopback address 127.0.0.1 - but I could be missing something in how you configured the docker image.

Other than that, check the nexus.log to make sure nexus is actually receiving your requests. Enable ROOT level DEBUG logging there to try and debug the problem.


--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/14ab6157-8ea7-400a-a103-b86201cf243d%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Reply all
Reply to author
Forward
0 new messages