On Thu, Sep 7, 2017 at 4:29 PM, Baptiste Mathus <m...@batmat.net> wrote:

> 2017-09-07 9:17 GMT+02:00 Guang Chao <guang.chao.1...@gmail.com>:
>
> > On Fri, Sep 1, 2017 at 11:31 AM, mingleizhang <zml13856086...@163.com>
> > wrote:
> >
> > > Hello friends here.
> > >
> > >
> > >      I would like ask a question ,it probably looks silly, but I still
> > > want to know. As the subject said, when time do we need to delete
> > > .m2/repository files ? Does anyone improve my mind ? Thank you very
> much!
> > >
> > >
> > >
> > There is no need to do this unless you are out of disk space. It will
> cause
> > no harm, but maven will redownload all dependencies again. So that will
> > slow you down a bit.
> >
>
> I am actually going to say the contrary. You should, at I'd even say, you
> *must* wipe out Maven repositories on a regular basis. If you don't, and
> you have static (persistent) agents, very bad things will happen at some
> point.
>
> So, yeah, redownloading it is going to add some time to build, but this is
> a matter of speed vs. reproducibility, so better target reproduciblity/non
> flakiness then see how to optimize, not the contrary.
>

I stand corrected.  Also with very good speeds now where 100mbps is common,
should be ok.


>
> And obviously, *NEVER, EVER share that .m2/repository between running
> builds*.
>
>
> >
> >
> > > Thanks
> > > Rice.
> >
> >
> >
> >
> > --
> > Guang <http://javadevnotes.com/java-string-to-integer-examples/>
> >
>



-- 
Guang <http://javadevnotes.com/java-integer-to-string-examples/>

Reply via email to