We have some tools to help with this. They will sort out snapshots from
releases and cleanup the metadata that is specific to a local repo. They
are designed to leave the repos in a state to put into Nexus and let
Nexus rebuild all the missing metadata. If your repository manager is
Nexus, you're in luck. If not, you can install Nexus locally and let it
rebuild the files for you, then take the data (stored in a plain m2 repo
layout) and ship it over to the repository. Ideally you would send it to
an admin, but otherwise you're gonna have to find another way.

Even if it's not a complete solution, it will get you a few steps
closer.

https://docs.sonatype.com/display/NX/Nexus+Command+Line+Tools
http://nexus.sonatype.org

-----Original Message-----
From: Jeff Walker [mailto:[email protected]] 
Sent: Saturday, March 28, 2009 1:05 PM
To: [email protected]
Subject: How to bulk load the jars in my local repo into a new (empty)
corporate remote repo?

Hi,
I'm a relative newbie to Maven2. My problem is, I have a local
repository
full of about 400 jars. All is well and good, my projects build and I am
happy. My happiness level is now in jeopardy! Another team has created a
remote repository in our domain. I have to switch to use it. I located
it
and updated my pom files. Great, just one problem, it's of course empty!

How do I bulk load the jars in my local repo into this new remote repo,
without doing the "mvn:deploy:deploy-file" thing for each jar (400
times).

I can get no help from the person who created the remote repo. (Company
politics, you understand).
Thanks,
-jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to