You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Slawomir Jaranowski <s....@gmail.com> on 2021/12/01 11:23:01 UTC

Empty jars in local .m2/repository

Hi,

From time to time I have jars in .m2/repository of size 0.

Probably some network issues are the reason for this situation.

I can't reproduce this today.
I need some hints which component is responsible for storing artifacts in
.m2
Or some other hints which can help to reproduce, debug such a situation.

Does anybody else have a similar problem?

Please try on your system:
find ~/.m2/repository -type f -size 0

I use Maven 3.8.4

-- 
Sławomir Jaranowski

https://twitter.com/SlawekJaran
https://github.com/slawekjaranowski
https://linkedin.com/in/slawomirjaranowski

Re: Empty jars in local .m2/repository

Posted by Tamás Cservenák <ta...@cservenak.net>.
Forgot to respond:

- on my laptop (just OSS work, no MRM used): no 0 byte files (6 or so
months old laptop)
- on my desktop ($$$ work + OSS work, MRM used): same as Romain, found only
lock/part files that are 0 (this is 5 years old desktop)

Both are Linux Mint 20.2.

HTH
T

On Wed, Dec 1, 2021 at 3:09 PM Tamás Cservenák <ta...@cservenak.net> wrote:

> Slawomir,
>
> Qs:
> - do you use only "vanilla" Maven? (so ASF one, no mvnd, takari smart
> builder, etc)
> - do you use maven single threaded or MT?
> - do you use some alternative than default locking?
> - I think you are "solo" user, not AV affected corporation, but still, do
> you use any MRM (and if yes, which one?)
>
> Thanks
> T
>
>
> On Wed, Dec 1, 2021 at 12:23 PM Slawomir Jaranowski <
> s.jaranowski@gmail.com> wrote:
>
>> Hi,
>>
>> From time to time I have jars in .m2/repository of size 0.
>>
>> Probably some network issues are the reason for this situation.
>>
>> I can't reproduce this today.
>> I need some hints which component is responsible for storing artifacts in
>> .m2
>> Or some other hints which can help to reproduce, debug such a situation.
>>
>> Does anybody else have a similar problem?
>>
>> Please try on your system:
>> find ~/.m2/repository -type f -size 0
>>
>> I use Maven 3.8.4
>>
>> --
>> Sławomir Jaranowski
>>
>> https://twitter.com/SlawekJaran
>> https://github.com/slawekjaranowski
>> https://linkedin.com/in/slawomirjaranowski
>>
>

Re: Empty jars in local .m2/repository

Posted by Tamás Cservenák <ta...@cservenak.net>.
Just googled and found this old but rather very similar (0 byte files) SO
post:
https://stackoverflow.com/questions/38537913/artifactory-virtual-repo-some-files-cant-be-downloaded-zero-bytes-sent-to-cli

HTH
T

On Wed, Dec 1, 2021, 16:43 Slawomir Jaranowski <s....@gmail.com>
wrote:

> Environment:
>  - vanilla Maven - Apache Maven 3.8.4
> (9b656c72d54e5bacbed989b64718c159fe39b537)
>  - maven build in single thread mode
>  - no change for locking
>  - Artifactory 6.23.28 as MRM
>
> in settings.xml I have defined one repository for private items and mirror
> for the rest
>
> but ... I found that the build uses custom maven plugins with custom or old
> resolvers ....
> some of them execute maven in embedded mode and some fork new maven
> instances ...
> without logs .... corpo way :-(
>
> so thanks everybody for helping .... probably it is only my problem.
>
>
>
> śr., 1 gru 2021 o 15:09 Tamás Cservenák <ta...@cservenak.net> napisał(a):
>
> > Slawomir,
> >
> > Qs:
> > - do you use only "vanilla" Maven? (so ASF one, no mvnd, takari smart
> > builder, etc)
> > - do you use maven single threaded or MT?
> > - do you use some alternative than default locking?
> > - I think you are "solo" user, not AV affected corporation, but still, do
> > you use any MRM (and if yes, which one?)
> >
> > Thanks
> > T
> >
> >
> > On Wed, Dec 1, 2021 at 12:23 PM Slawomir Jaranowski <
> > s.jaranowski@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > From time to time I have jars in .m2/repository of size 0.
> > >
> > > Probably some network issues are the reason for this situation.
> > >
> > > I can't reproduce this today.
> > > I need some hints which component is responsible for storing artifacts
> in
> > > .m2
> > > Or some other hints which can help to reproduce, debug such a
> situation.
> > >
> > > Does anybody else have a similar problem?
> > >
> > > Please try on your system:
> > > find ~/.m2/repository -type f -size 0
> > >
> > > I use Maven 3.8.4
> > >
> > > --
> > > Sławomir Jaranowski
> > >
> > > https://twitter.com/SlawekJaran
> > > https://github.com/slawekjaranowski
> > > https://linkedin.com/in/slawomirjaranowski
> > >
> >
>
>
> --
> Sławomir Jaranowski
>

Re: Empty jars in local .m2/repository

Posted by Slawomir Jaranowski <s....@gmail.com>.
Environment:
 - vanilla Maven - Apache Maven 3.8.4
(9b656c72d54e5bacbed989b64718c159fe39b537)
 - maven build in single thread mode
 - no change for locking
 - Artifactory 6.23.28 as MRM

in settings.xml I have defined one repository for private items and mirror
for the rest

but ... I found that the build uses custom maven plugins with custom or old
resolvers ....
some of them execute maven in embedded mode and some fork new maven
instances ...
without logs .... corpo way :-(

so thanks everybody for helping .... probably it is only my problem.



śr., 1 gru 2021 o 15:09 Tamás Cservenák <ta...@cservenak.net> napisał(a):

> Slawomir,
>
> Qs:
> - do you use only "vanilla" Maven? (so ASF one, no mvnd, takari smart
> builder, etc)
> - do you use maven single threaded or MT?
> - do you use some alternative than default locking?
> - I think you are "solo" user, not AV affected corporation, but still, do
> you use any MRM (and if yes, which one?)
>
> Thanks
> T
>
>
> On Wed, Dec 1, 2021 at 12:23 PM Slawomir Jaranowski <
> s.jaranowski@gmail.com>
> wrote:
>
> > Hi,
> >
> > From time to time I have jars in .m2/repository of size 0.
> >
> > Probably some network issues are the reason for this situation.
> >
> > I can't reproduce this today.
> > I need some hints which component is responsible for storing artifacts in
> > .m2
> > Or some other hints which can help to reproduce, debug such a situation.
> >
> > Does anybody else have a similar problem?
> >
> > Please try on your system:
> > find ~/.m2/repository -type f -size 0
> >
> > I use Maven 3.8.4
> >
> > --
> > Sławomir Jaranowski
> >
> > https://twitter.com/SlawekJaran
> > https://github.com/slawekjaranowski
> > https://linkedin.com/in/slawomirjaranowski
> >
>


-- 
Sławomir Jaranowski

Re: Empty jars in local .m2/repository

Posted by Tamás Cservenák <ta...@cservenak.net>.
Slawomir,

Qs:
- do you use only "vanilla" Maven? (so ASF one, no mvnd, takari smart
builder, etc)
- do you use maven single threaded or MT?
- do you use some alternative than default locking?
- I think you are "solo" user, not AV affected corporation, but still, do
you use any MRM (and if yes, which one?)

Thanks
T


On Wed, Dec 1, 2021 at 12:23 PM Slawomir Jaranowski <s....@gmail.com>
wrote:

> Hi,
>
> From time to time I have jars in .m2/repository of size 0.
>
> Probably some network issues are the reason for this situation.
>
> I can't reproduce this today.
> I need some hints which component is responsible for storing artifacts in
> .m2
> Or some other hints which can help to reproduce, debug such a situation.
>
> Does anybody else have a similar problem?
>
> Please try on your system:
> find ~/.m2/repository -type f -size 0
>
> I use Maven 3.8.4
>
> --
> Sławomir Jaranowski
>
> https://twitter.com/SlawekJaran
> https://github.com/slawekjaranowski
> https://linkedin.com/in/slawomirjaranowski
>

Re: Empty jars in local .m2/repository

Posted by Paul Hammant <pa...@hammant.org.INVALID>.
Corporations that do anti-virus content filtering of incoming GETs, have
occasionally seen corrupt jars in ~/.m2 and their shared
Nexus/Artifactory.  In that case there was text content for the jar (insead
of a zip) and if you looked at it, you saw a HTML page talking of the A-V
transgression but with the .jar suffix.  Plot twist: none were actual
malware - just bad A-V configuration.

On Wed, Dec 1, 2021 at 11:58 AM Slawomir Jaranowski <s....@gmail.com>
wrote:

> With Maven 3.6.2 I had similar issues ... so last week I upgrade on my CI
> system to 3.8.4 ... not fix
>
> śr., 1 gru 2021 o 12:27 Romain Manni-Bucau <rm...@gmail.com>
> napisał(a):
>
> > Hi,
> >
> > I have a few coming from p2 plugins and .lock/.part files (missing
> cleanup
> > but no big deal I guess). All other 0 sized artifacts are related to data
> > exploded in .m2 by plugins but unrelated to maven (like graal distro
> > exploded, npm tar.gz exploded etc).
> >
> > Side note: I mainly use 3.6.3 on projects so can be in a luck case too.
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://rmannibucau.metawerx.net/> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> >
> > Le mer. 1 déc. 2021 à 12:23, Slawomir Jaranowski <s.jaranowski@gmail.com
> >
> > a
> > écrit :
> >
> > > Hi,
> > >
> > > From time to time I have jars in .m2/repository of size 0.
> > >
> > > Probably some network issues are the reason for this situation.
> > >
> > > I can't reproduce this today.
> > > I need some hints which component is responsible for storing artifacts
> in
> > > .m2
> > > Or some other hints which can help to reproduce, debug such a
> situation.
> > >
> > > Does anybody else have a similar problem?
> > >
> > > Please try on your system:
> > > find ~/.m2/repository -type f -size 0
> > >
> > > I use Maven 3.8.4
> > >
> > > --
> > > Sławomir Jaranowski
> > >
> > > https://twitter.com/SlawekJaran
> > > https://github.com/slawekjaranowski
> > > https://linkedin.com/in/slawomirjaranowski
> > >
> >
>
>
> --
> Sławomir Jaranowski
>

Re: Empty jars in local .m2/repository

Posted by Slawomir Jaranowski <s....@gmail.com>.
With Maven 3.6.2 I had similar issues ... so last week I upgrade on my CI
system to 3.8.4 ... not fix

śr., 1 gru 2021 o 12:27 Romain Manni-Bucau <rm...@gmail.com>
napisał(a):

> Hi,
>
> I have a few coming from p2 plugins and .lock/.part files (missing cleanup
> but no big deal I guess). All other 0 sized artifacts are related to data
> exploded in .m2 by plugins but unrelated to maven (like graal distro
> exploded, npm tar.gz exploded etc).
>
> Side note: I mainly use 3.6.3 on projects so can be in a luck case too.
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le mer. 1 déc. 2021 à 12:23, Slawomir Jaranowski <s....@gmail.com>
> a
> écrit :
>
> > Hi,
> >
> > From time to time I have jars in .m2/repository of size 0.
> >
> > Probably some network issues are the reason for this situation.
> >
> > I can't reproduce this today.
> > I need some hints which component is responsible for storing artifacts in
> > .m2
> > Or some other hints which can help to reproduce, debug such a situation.
> >
> > Does anybody else have a similar problem?
> >
> > Please try on your system:
> > find ~/.m2/repository -type f -size 0
> >
> > I use Maven 3.8.4
> >
> > --
> > Sławomir Jaranowski
> >
> > https://twitter.com/SlawekJaran
> > https://github.com/slawekjaranowski
> > https://linkedin.com/in/slawomirjaranowski
> >
>


-- 
Sławomir Jaranowski

Re: Empty jars in local .m2/repository

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

I have a few coming from p2 plugins and .lock/.part files (missing cleanup
but no big deal I guess). All other 0 sized artifacts are related to data
exploded in .m2 by plugins but unrelated to maven (like graal distro
exploded, npm tar.gz exploded etc).

Side note: I mainly use 3.6.3 on projects so can be in a luck case too.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le mer. 1 déc. 2021 à 12:23, Slawomir Jaranowski <s....@gmail.com> a
écrit :

> Hi,
>
> From time to time I have jars in .m2/repository of size 0.
>
> Probably some network issues are the reason for this situation.
>
> I can't reproduce this today.
> I need some hints which component is responsible for storing artifacts in
> .m2
> Or some other hints which can help to reproduce, debug such a situation.
>
> Does anybody else have a similar problem?
>
> Please try on your system:
> find ~/.m2/repository -type f -size 0
>
> I use Maven 3.8.4
>
> --
> Sławomir Jaranowski
>
> https://twitter.com/SlawekJaran
> https://github.com/slawekjaranowski
> https://linkedin.com/in/slawomirjaranowski
>