Can I move assets within a given repository

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Can I move assets within a given repository

eric.wood
We have uploaded a large group of jar files into a repository with the groupid of org.company.external and we wanted them to be in the groupid of com.company.external. In essence, we want to move them from ORG to COM in the same repository. It appears that I can move them to a new repository but not within a given repository. Is there a way I can move them within a given repository structure? Thanks for any support. Also, we are using the freeware version.
Reply | Threaded
Open this post in threaded view
|

Re: Can I move assets within a given repository

eric.wood
I have noticed that I do not have the target path on move or copy.  Not sure if this is due to the free version of an older version.  Any idea?
Reply | Threaded
Open this post in threaded view
|

Re: Can I move assets within a given repository

HughG_TMVSE
In reply to this post by eric.wood

Hi Eric,

 

several people have asked me this within my organisation, and the answer is “no” (as far as I know), because it doesn’t makes sense in the general case.  JAR files are generally accompanied by metadata files (in Maven’s POM format, or Ivy’s ivy.xml), and those files contain the org, name, and version of the JAR(s).  So, if you just moved the JARs with their metadata, the metadata would be wrong.  Instead, you have to re-deploy those JARs at the new location, and delete from the old location.

 

I *think* it may be quicker to upload to the new location and then delete, particularly if you’re deploying with a tool like Maven which can calculate the MD5 sum for each JAR on the client.  I expect that such a tool would upload the MD5 first, and then Artifactory would tell it that it didn’t need to upload the JAR, because it already has a matching binary.  Whether that’s worth worrying about depends how many and large your JARs are, vs. your bandwidth to the server.

 

You could script the process using the REST API, e.g. with curl, even if you don’t have Pro:

·         <a href="http://www.jfrog.com/confluence/display/RTF/Artifactory&#43;REST&#43;API#ArtifactoryRESTAPI-DeployArtifact">http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifact

·         <a href="http://www.jfrog.com/confluence/display/RTF/Artifactory&#43;REST&#43;API#ArtifactoryRESTAPI-DeployArtifactbyChecksum">http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifactbyChecksum

·         <a href="http://www.jfrog.com/confluence/display/RTF/Artifactory&#43;REST&#43;API#ArtifactoryRESTAPI-DeleteItem">http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteItem

 

Hope that helps :-)

 

Hugh Greene, Senior Software Developer
Toshiba Medical Visualization Systems Europe, Ltd
Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel + 44 (0)131 472 4792 / Fax + 44 (0) 131 472 4799
http://www.tmvse.com / [hidden email]

 

DISCLAIMER
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message.

 

From: eric.wood [mailto:[hidden email]]
Sent: 02 December 2014 15:02
To: [hidden email]
Subject: [Artifactory-users] Can I move assets within a given repository

 

We have uploaded a large group of jar files into a repository with the groupid of org.company.external and we wanted them to be in the groupid of com.company.external. In essence, we want to move them from ORG to COM in the same repository. It appears that I can move them to a new repository but not within a given repository. Is there a way I can move them within a given repository structure? Thanks for any support. Also, we are using the freeware version.


View this message in context: Can I move assets within a given repository
Sent from the Artifactory - Users mailing list archive at Nabble.com.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: Can I move assets within a given repository

eric.wood
In reply to this post by eric.wood
We are running 3.0.x and I downloaded the latest version 3.4.2 and it does have a way to specify a target path within a repo.  The issue I run into is that it complains about the invalidation of the groupid within the associated pom file.  It moves the jar file, but not the associated pom file.