Skip to content

Instantly share code, notes, and snippets.

@maiha
Last active November 22, 2017 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maiha/2649575cac9ceb13fe3717407d5add75 to your computer and use it in GitHub Desktop.
Save maiha/2649575cac9ceb13fe3717407d5add75 to your computer and use it in GitHub Desktop.
SBTでcross-buildingしてmavenにあげようとしたらエラーになった時の作業メモ

+ で全バージョン一気にやって欲しい

> + sonatypeRelease
[info] Setting version to 2.12.4
[info] Reapplying settings...
[info] Set current project to http-mock (in build file:/home/maiha/git/maiha/http-mock/)
[info] Nexus repository URL: https://oss.sonatype.org/service/local
[info] Reading staging repository profiles...
[error] Multiple repositories are found:
[error] [scala-1011] status:closed, profile:sc.ala(9b79885f3c75d)
[error] [scala-1012] status:open, profile:sc.ala(9b79885f3c75d)
[error] Specify one of the repository ids in the command line
[trace] Stack trace suppressed: run last *:sonatypeRelease for the full output.
[error] (*:sonatypeRelease) java.lang.IllegalStateException: Found multiple staging repositories
[error] Total time: 3 s, completed 2017/11/22 12:23:19

前回の実行でエラーになった記憶がある。それを放置していて何かが競合している?

stagingの確認

  • https://oss.sonatype.org/ にログインして見ると、レポジトリが2つあった
  • scala-1011, scala-1012 前者を drop してから、再実行
[success] Total time: 57 s, completed 2017/11/22 12:34:46
[info] Setting version to 2.11.11
[info] Reapplying settings...
[info] Set current project to http-mock (in build file:/home/maiha/git/maiha/http-mock/)
[info] Nexus repository URL: https://oss.sonatype.org/service/local
[info] Reading staging repository profiles...
[trace] Stack trace suppressed: run last *:sonatypeRelease for the full output.
[error] (*:sonatypeRelease) java.lang.IllegalStateException: No staging repository is found. Run publishSigned first
[error] Total time: 8 s, completed 2017/11/22 12:34:54

今度はないって言われた。消したのがまずかったかも。

  • 正しくは、 + でなくて手で2回に分けて実行する?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment