Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useless error message for multiple repos #73

Closed
pathikrit opened this issue Jul 20, 2018 · 2 comments
Closed

Useless error message for multiple repos #73

pathikrit opened this issue Jul 20, 2018 · 2 comments

Comments

@pathikrit
Copy link

I tried to release my project:

> sbt ++2.11.12 sonatypeRelease

[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/pbhowmick/workspace/better-files/project
[info] Loading settings from version.sbt,build.sbt ...
[info] Set current project to better-files-root (in build file:/Users/pbhowmick/workspace/better-files/)
[info] Setting Scala version to 2.11.12 on 3 projects.
[info] Reapplying settings...
[info] Set current project to better-files-root (in build file:/Users/pbhowmick/workspace/better-files/)
[info] Nexus repository URL: https://oss.sonatype.org/service/local
[info] sonatypeProfileName = com.github.pathikrit
[info] Reading staging repository profiles...
[error] Multiple repositories are found:
[error] [comgithubpathikrit-1045] status:open, profile:com.github.pathikrit(3ce6558c41fb47) description: Implicitly created (auto staging).
[error] [comgithubpathikrit-1046] status:open, profile:com.github.pathikrit(3ce6558c41fb47) description: Implicitly created (auto staging).
[error] Specify one of the repository ids in the command line
[error] java.lang.IllegalStateException: Found multiple staging repositories
[error]         at xerial.sbt.Sonatype$NexusRESTService.$anonfun$findTargetRepository$8(Sonatype.scala:532)
[error]         at scala.Option.getOrElse(Option.scala:121)
[error]         at xerial.sbt.Sonatype$NexusRESTService.findTargetRepository(Sonatype.scala:529)
[error]         at xerial.sbt.Sonatype$SonatypeCommand$.$anonfun$sonatypeRelease$1(Sonatype.scala:269)
[error]         at sbt.Command$.$anonfun$applyEffect$4(Command.scala:134)
[error]         at sbt.Command$.$anonfun$applyEffect$2(Command.scala:130)
[error]         at sbt.MainLoop$.processCommand(MainLoop.scala:154)
[error]         at sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:137)
[error]         at sbt.State$$anon$1.runCmd$1(State.scala:242)
[error]         at sbt.State$$anon$1.process(State.scala:248)
[error]         at sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:137)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error]         at sbt.MainLoop$.next(MainLoop.scala:137)
[error]         at sbt.MainLoop$.run(MainLoop.scala:130)
[error]         at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:108)
[error]         at sbt.io.Using.apply(Using.scala:22)
[error]         at sbt.MainLoop$.runWithNewLog(MainLoop.scala:102)
[error]         at sbt.MainLoop$.runAndClearLast(MainLoop.scala:58)
[error]         at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:43)
[error]         at sbt.MainLoop$.runLogged(MainLoop.scala:35)
[error]         at sbt.StandardMain$.runManaged(Main.scala:113)
[error]         at sbt.xMain.run(Main.scala:76)
[error]         at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error]         at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error]         at xsbt.boot.Launch$.run(Launch.scala:109)
[error]         at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error]         at xsbt.boot.Launch$.launch(Launch.scala:117)
[error]         at xsbt.boot.Launch$.apply(Launch.scala:18)
[error]         at xsbt.boot.Boot$.runImpl(Boot.scala:56)
[error]         at xsbt.boot.Boot$.main(Boot.scala:18)
[error]         at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.IllegalStateException: Found multiple staging repositories

This line is unhelpful: Specify one of the repository ids in the command line. What incantation do I need to run now? An example would be helpful? What is a repository id? How do I find it??

@xerial
Copy link
Owner

xerial commented Jul 20, 2018

sonatypeStagingProfiles is the command to see the staging repositories.

The next step is usually removing one of them with sonatypeDrop "comgithubpathikrit-1045" command.

Yeah. The help message should be more helpful.

@xerial
Copy link
Owner

xerial commented Sep 5, 2019

Since sbt-sonatype 3.0 the error message will show a hint to use sonatypeDropAll command.

@xerial xerial closed this as completed Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants