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:
*
http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifact
*
http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifactbyChecksum
*
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 / mailto:[email protected]
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:[email protected]]
Sent: 02 December 2014 15:02
To: [email protected]
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<http://forums.jfrog.org/Can-I-move-assets-within-a-given-repository-tp7580072.html>
Sent from the Artifactory - Users mailing list
archive<http://forums.jfrog.org/Artifactory-Users-f2377369.html> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users