It is possible to do it with the artifactory rest api.

First you can download all artifacts to your hard drive. Then you can walk 
through the top level artifacts on hard drive and store the dependency entries. 
--> small java program for example
Then you know which artifacts with the given versions are used by your toplevel 
products. Now you save all theses known versions of your artifacts to a second 
directory on hard drive.
Then do artifactory backup and delete all artifacts. Then you can deploy all 
known artifacts to artifactory from the second directory on hard disk.  this is 
the only possible way i know. 

If you have questions, send an email --> [email protected]

i hope i could help you 



-Urspr. Mitteilung-
Betreff: [Artifactory-users] Cleanup of the Maven Repository
Von: schroeder <[email protected]>
Datum: 31.05.2011 15:49

We are using Maven to handle our native builds, their dependencies and
artifacts. Our typical dependency trees are quite deep and the typical
artifacts are large (compared with Java artifacts). In addition we have
several non-snapshot builds per artifact. Alltogether our repository size is
growing very fast (too fast for us).

On the other hand, we only need to store those artifact versions permanently
that are part of a published version of the top level products. Therefore we
want to clean up our repository from time to time. To be able to do this, we
have to know which artifacts (and versions) are not part of any dependency
tree of any published product version (and that are older than let's say 6
month).

Has anybody an idea how we can solve this? Or is there already a solution
for this problem?

Thanks a lot,
Andreas

--
View this message in context: 
http://forums.jfrog.org/Cleanup-of-the-Maven-Repository-tp6422462p6422462.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to