I tend to use:
mvn dependency:purge-local-repository
when sitting in a project directory, it'll go thru and delete all the
SNAPSHOTs and re-resolve.
The only problem with it in the default mode, is that is _only_ deletes
the `.jar`. files and doesn't rebuild any metadata, so if you're using
version ranges you're kinda f**ked.
However, I usually use it with the following setting:
mvn dependency:purge-local-repository
-DresolutionFuzziness=artifactId
which will delete ALL files related to the artifact - all versions, all
meta data - it doesn't mean there's more to download again but works
wonderfully.
MaRK
On 18 Aug 2014, at 21:10, Adrien Rivard wrote:
Or delete all directories that end with -SNAPSHOT
On Sun, Aug 17, 2014 at 8:18 AM, Dan Tran <dant...@gmail.com> wrote:
sounds like a good option.
Thanks
-D
On Sat, Aug 16, 2014 at 11:11 PM, Ron Wheeler <
rwhee...@artifact-software.com> wrote:
On 17/08/2014 1:50 AM, Dan Tran wrote:
Hi I need to find a way to walk into local repository and remove
all old
snapshots.
This is very helpful for developer to clean up his/her local rep.
how safe it is by blindly remove any file with timestamp format (
ie
xxx-1.0.0-20140816.071953-49.jar)?
Thanks
-D
Easiest thing to do is to delete the entire organization or project
branch (com.mycompany.project.*) from the local repo.
This will not likely delete anything of great value or anything that
can
not be easily retrieved from your company repo.
Ron
--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
--
Adrien Rivard