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

Wrong sonatypeProfileName value provided for the sonatypeBundleRelease command #109

Closed
plokhotnyuk opened this issue Sep 27, 2019 · 4 comments

Comments

@plokhotnyuk
Copy link

It worked fine for sbt-sonatype v2.5 or earlier version.

But after migration to v3.7 and switching to the sonatypeBundleRelease command (instead of sonatypeReleaseAll) the provided value of sonatypeProfileName started to be ignored:

[info] Nexus repository URL: https://oss.sonatype.org/service/local
[info] sonatypeProfileName = com.github.plokhotnyuk.jsoniter-scala
[info] Preparing a new staging repository for [sbt-sonatype] jsoniter-scala 0.55.3
[info] Reading staging repository profiles...
[info] Reading staging profiles...
[info] No staging repository for [sbt-sonatype] jsoniter-scala 0.55.3 is found
[error] java.lang.IllegalArgumentException: Profile com.github.plokhotnyuk.jsoniter-scala is not found. Check your sonatypeProfileName setting in build.sbt
plokhotnyuk added a commit to plokhotnyuk/jsoniter-scala that referenced this issue Sep 27, 2019
@plokhotnyuk
Copy link
Author

plokhotnyuk commented Sep 27, 2019

Changing of organization to com.github.plokhotnyuk is not a W/A for my case...

plokhotnyuk added a commit to plokhotnyuk/jsoniter-scala that referenced this issue Sep 27, 2019
plokhotnyuk added a commit to plokhotnyuk/jsoniter-scala that referenced this issue Sep 27, 2019
@plokhotnyuk plokhotnyuk changed the title Wrong sonatypeProfileName value provided in the sonatypeBundleRelease command Wrong sonatypeProfileName value provided for the sonatypeBundleRelease command Sep 27, 2019
@xerial
Copy link
Owner

xerial commented Sep 27, 2019

So it means you want to set

sonatypeProfileName := “com.github.plokhotnyuk”

?

@xerial
Copy link
Owner

xerial commented Sep 27, 2019

The code reading this setting is like this: https://github.com/xerial/sbt-sonatype/blob/master/src/main/scala/xerial/sbt/Sonatype.scala#L372

Possibility includes:

  • You might have old profileName settings somewhere.
  • sonatypeProfileName is not defined at the root project. (ThisBuild / sonatypeProfileName) := ...

Could you show me your build.sbt or the result of running sbt “show sontaypeProfileName” ?

plokhotnyuk added a commit to plokhotnyuk/jsoniter-scala that referenced this issue Sep 28, 2019
@plokhotnyuk
Copy link
Author

@xerial thank you a lot!

In last commit I'd moved most settings to the root (including sonatypeProfileName) and it worked for me.

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