On Thu, Sep 7, 2017 at 4:29 PM, Baptiste Mathus wrote:
> 2017-09-07 9:17 GMT+02:00 Guang Chao :
>
> > On Fri, Sep 1, 2017 at 11:31 AM, mingleizhang
> > wrote:
> >
> > > Hello friends here.
> > >
> > >
> > > I would like
On 15 Sep 2017, at 20:29, Baptiste Mathus wrote:
> So, yes, using dependency:purge-local-repository can help that use
> case/issue, but again IMO it's not worth it: just wipe out everything and
> redownload.
My release alias I use sets -Dmaven.repo.local=/tmp/maven-release-repository
for every
Well, it's getting slightly off topic, but maybe not.
With Maven, I strongly recommend you *totally* wipe out the local Maven
cache (aka repository, misleadingly named) on a regular basis. Like once a
week or so.
You could have a local release version, that has actually been built only
locally. So
I do similar to Eric for jenkins.
But also for both developer builds and jenkins, I've got all projects
setup to use the
http://www.mojohaus.org/build-helper-maven-plugin/remove-project-artifact-mojo.html
plugin. With both a default and clean phase execution. So when either
jenkins or a developer
I have my jenkins jobs designed to use private m2 repos per job. I dont
find the need to delete them since the only transient changes are the
snapshots, which get reevaluated at every build anyhow.
Thanks
Eric
On Sep 11, 2017 2:43 PM, "Stephen Connolly"
On Fri 8 Sep 2017 at 11:22, Baptiste Mathus wrote:
> Le 7 sept. 2017 17:00, "Tushar Kapila" a écrit :
>
> I had to delete a directory once as i had pressed Ctrl-C while it was
> downloading jars and a 0kb jar was created. This was in 2013, maybe it
>
Le 7 sept. 2017 17:00, "Tushar Kapila" a écrit :
I had to delete a directory once as i had pressed Ctrl-C while it was
downloading jars and a 0kb jar was created. This was in 2013, maybe it
downloads to a temp file and then create the final file? It took sometime
to debug.
I had to delete a directory once as i had pressed Ctrl-C while it was
downloading jars and a 0kb jar was created. This was in 2013, maybe it
downloads to a temp file and then create the final file? It took sometime
to debug. Builds were failing for no reason only on that test box, but
working fine
2017-09-07 9:17 GMT+02:00 Guang Chao :
> On Fri, Sep 1, 2017 at 11:31 AM, mingleizhang
> wrote:
>
> > Hello friends here.
> >
> >
> > I would like ask a question ,it probably looks silly, but I still
> > want to know. As the subject said,
On Fri, Sep 1, 2017 at 11:31 AM, mingleizhang
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
when every your running out of disk space
you can also use this plugin
http://www.mojohaus.org/build-helper-maven-plugin/remove-project-artifact-mojo.html
so when you do a clean or a install, it will also remove that project
from your local repo.
e.g. if your building a JEE project or other war
Rice,
You can delete it anytime you like. The cost is that the next time you run
maven it will take time to download all the dependencies. Still it is a
reasonable way of resetting your maven, and clearing out old dependencies
that you no longer use in your projects.
Regards
Richard
On 1
12 matches
Mail list logo