Sure it would. It's only the files that gets a timestamp; the directories
are still called x.y.z-SNAPSHOT.
However, be adviced that I've run into cases in the wild where the
artifactId would end in "-SNAPSHOT" and this solution would remove such
directories as well although it's could contain releases (and snapshots).
Such a artifactId naming is not very good and kind of deserves to cause
issues though...

/Anders
On Tue, Aug 19, 2014 at 7:28 AM, Dan Tran <[email protected]> wrote:

> This would not work, since it still leave all snapshot of timestamp around
>
> -D
>
>
> On Mon, Aug 18, 2014 at 2:10 AM, Adrien Rivard <[email protected]>
> wrote:
>
> > Or delete all directories that end with -SNAPSHOT
> >
> >
> >
> > On Sun, Aug 17, 2014 at 8:18 AM, Dan Tran <[email protected]> wrote:
> >
> > > sounds like a good option.
> > >
> > > Thanks
> > >
> > > -D
> > >
> > >
> > > On Sat, Aug 16, 2014 at 11:11 PM, Ron Wheeler <
> > > [email protected]> 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: [email protected]
> > > > skype: ronaldmwheeler
> > > > phone: 866-970-2435, ext 102
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [email protected]
> > > > For additional commands, e-mail: [email protected]
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Adrien Rivard
> >
>

Reply via email to