Until the bug is fixed you could run a cleaner program. That checks for
jars or zips that are 0kb size, and deletes them.

I saw this in 2015. Using windows. Have not seen it on Ubuntu.

Just out of curiosity which os are you using? And are you doing parallel
builds (more than one mvn command running at the same time?)

My team mate had the issue with just one running.


On Sat, Feb 19, 2022, 04:18 Nils Breunese <n...@breun.nl> wrote:

> Bernd Eckenfels <e...@zusammenkunft.net> wrote:
>
> > First thing would be to determine if those are failed downloads or
> creates (installed from local built). In both cases however failures should
> not result in that. For downloads you have checksum checks and for build
> artifacts they are copied from target/ (depending on the plugins used to
> install them of course).
> >
> > Is that a groupid and Version you built on that machine or are those
> external artifacts?
>
> The empty files are for artifacts available on our Artifactory server. The
> files are non-empty on the server and get downloaded ok after removing the
> local empty ones and running Maven again.
>
> > Are there any remote.properties in the artifact directory in your Repo
> cache dir?
>
> I personally don’t have any in my ~/.m2/repository folder. What would
> having such a file mean?
>
> > One possible cause could be process or OS crashes since maven does
> probably not fdsync new files (before rename). But you probably would know
> if that happens more often.
>
> Yeah, there were no OS crashes.
>
> Nils.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to