question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing filename from "java.io.IOException: destination file exists and overwrite == false" in sbt 1.0

See original GitHub issue

steps

git clone https://github.com/lihaoyi/scalatex
cd scalatex
sbt +publishSigned
...
[info] 	published scalatex-site_2.11 to https://oss.sonatype.org/service/local/staging/deploy/maven2/com/lihaoyi/scalatex-site_2.11/0.3.10/scalatex-site_2.11-0.3.10-sources.jar
[error] java.io.IOException: destination file exists and overwrite == false
[error] 	at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:75)
[error] 	at sbt.internal.librarymanagement.ConvertResolver$LocalIfFileRepo.put(ConvertResolver.scala:369)
[error] 	at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
[error] 	at sbt.internal.librarymanagement.ConvertResolver$ChecksumFriendlyURLResolver.put(ConvertResolver.scala:121)
[error] 	at sbt.internal.librarymanagement.ConvertResolver$ChecksumFriendlyURLResolver.put$(ConvertResolver.scala:108)
[error]

problem

The exception doesn’t include the filename of the destination file.

expectation

I expected the full path of the culprit file to appear in the exception message.

notes

The build is using sbt 1.0.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:41 (23 by maintainers)

github_iconTop GitHub Comments

5reactions
olafurpgcommented, Aug 14, 2017

Good question, that sounds likely. Should overwrite be true if that’s the case? It’s kind of annoying to have to drop, open, and re-publishSigned all cross-built projects (~70 artifacts in scalameta/scalameta) in case Maven validation fails for a single artifact (e.g., missing javadoc).

In my limited time with sbt 1.0, I’ve found the overwrite = false change to be quite painful for local development. I don’t recall having experienced problems with overwrite=true in 0.13, besides the warning messages saying it will be removed in 1.0 causing me to miss other important messages in the console 😅 Is it possible to configure sbt 1.0 to use overwrite = true somewhere globally? Using -SNAPSHOT is not an option for large multi-module builds in my experience, resolution is too slow.

4reactions
ffinfocommented, Feb 14, 2018

Maybe a little update on this. I found out that in sbt-pgp the overwrite flag is hard coded. This why I did a PR to this plugin: https://github.com/sbt/sbt-pgp/pull/121

Read more comments on GitHub >

github_iconTop Results From Across the Web

sbt/sbt - Gitter
io. IOException: destination file exists and overwrite == false ). The problem I'm having is that +publish still attempts to publish the ivy....
Read more >
Publish to artifactory and overwrite existing version with SBT
You may need to give your Artifactory user Overwrite permissions. See the Managing Permissions documentation for details.
Read more >
sbt Reference Manual — Combined Pages
sbt is a build tool for Scala, Java, and more. It requires Java 1.8 or later. Install. See Installing sbt for the setup...
Read more >
Bug listing with status UNCONFIRMED as at 2022/12/19 13 ...
src/plugins/quota/rquota.h: No such file or directory" status:UNCONFIRMED ... Bug:428682 - "System.map has an incorrect kernel version reported when grsec ...
Read more >
java.io.FileInputStream Scala Example - ProgramCreek.com
java.io.FileInputStream Scala Examples. The following examples show how to use ... HdfsFileWriter { def apply(filename: String, overwrite: Boolean = false, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found