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

error when using for an sbt plugin Supplied file ... is a not an existing directory #103

Closed
mpollmeier opened this issue Sep 10, 2019 · 2 comments

Comments

@mpollmeier
Copy link
Contributor

mpollmeier commented Sep 10, 2019

With the latest 3.6 release, when using for an sbt plugin build, the following error happens during sonatypeBundleRelease:

[info] Created successfully: ioshiftleft-1539
[error] java.io.IOException: Supplied file /home/mp/Projects/shiftleft/sbt-ci-release-early/target/sonatype-staging/1.1.3 is a not an existing directory!
[error]         at org.sonatype.spice.zapper.fs.AbstractDirectory.<init>(AbstractDirectory.java:32)
[error]         at org.sonatype.spice.zapper.fs.DirectoryIOSource.<init>(DirectoryIOSource.java:68)
[error]         at org.sonatype.spice.zapper.fs.DirectoryIOSource.<init>(DirectoryIOSource.java:59)
[error]         at org.sonatype.spice.zapper.fs.DirectoryIOSource.<init>(DirectoryIOSource.java:50)
[error]         at xerial.sbt.NexusRESTService.uploadBundle(NexusClient.scala:189)
[error]         at xerial.sbt.Sonatype$.$anonfun$sonatypeBundleRelease$1(Sonatype.scala:151)

Build on travis.ci: https://travis-ci.org/ShiftLeftSecurity/sbt-ci-release-early/jobs/583381874
Repo: https://github.com/ShiftLeftSecurity/sbt-ci-release-early/tree/6f9ed3ce07d86dd7aa4d3a4ba53983bdba43909f

Any idea where this comes from? Somehow the localBundlePath is wrong for sbt plugin builds.
Update: other than I first thought, this is actually broken for both sbt 1.2.8 and 1.3.0.

@mpollmeier mpollmeier changed the title error when using for an sbt plugin in sbt 1.3.0: Supplied file ... is a not an existing directory error when using for an sbt plugin Supplied file ... is a not an existing directory Sep 10, 2019
@mpollmeier
Copy link
Contributor Author

Argh, user error. I didn't change the publishTo := sonatypePublishToBundle.value as per the docs.

Let me know if you would like me to send you a PR for the readme, under e.g. 'common pitfallse', along with #100 (comment)

@xerial
Copy link
Owner

xerial commented Sep 11, 2019

Thanks. I'm releasing sbt-sonatype 3.7 with the latest http-client version. So only a PR for publishTo setting is necessary.

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