You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff Walker <we...@gmail.com> on 2009/03/28 18:05:14 UTC
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
Re: How to bulk load the jars in my local repo into a new (empty)
corporate remote repo?
Posted by Santosh Patel <sa...@gmail.com>.
Hi,
How about trying out the merge-maven-repos goal of the
wagon-maven-plugin...!!!
http://mojo.codehaus.org/wagon-maven-plugin/plugin-info.html
Santosh
On Sun, Mar 29, 2009 at 3:46 AM, Wayne Fay <wa...@gmail.com> wrote:
> > 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).
>
> Write a shell/bash/batch script.
>
> For (all files in local repo)
> ...using GAV coordinates from folder structure or pom contents,
> create mvn deploy:deploy-file command...
> ...execute mvn command...
> Next
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Santosh Patel
Re: How to bulk load the jars in my local repo into a new (empty)
corporate remote repo?
Posted by Wayne Fay <wa...@gmail.com>.
> 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).
Write a shell/bash/batch script.
For (all files in local repo)
...using GAV coordinates from folder structure or pom contents,
create mvn deploy:deploy-file command...
...execute mvn command...
Next
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to bulk load the jars in my local repo into a new (empty)
corporate remote repo?
Posted by Jeff Walker <we...@gmail.com>.
Thank you for your replies.
I am writing a script to do it, at the suggestion of another poster.
Thank you one and all!
-jeff
On Sun, Mar 29, 2009 at 3:45 AM, Stephen Connolly <
stephen.alan.connolly@gmail.com> wrote:
> The danger with that is that the metadata (local vs remote) will be
> incorrect and version ranges will not work correctly
>
> 2009/3/29 Tim <ch...@gmail.com>
>
> > Are you on a linux system? I just rsynced my repo recently to accomplish
> > the
> > same thing.
> > It was really easy.
> >
> > On Sat, Mar 28, 2009 at 12:05 PM, Jeff Walker <
> > webservices.architect@gmail.com> wrote:
> >
> > > 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
> > >
> >
> >
> >
> > --
> >
> > P. J. O'Rourke - "If government were a product, selling it would be
> > illegal."
> >
>
Re: How to bulk load the jars in my local repo into a new (empty)
corporate remote repo?
Posted by Stephen Connolly <st...@gmail.com>.
The danger with that is that the metadata (local vs remote) will be
incorrect and version ranges will not work correctly
2009/3/29 Tim <ch...@gmail.com>
> Are you on a linux system? I just rsynced my repo recently to accomplish
> the
> same thing.
> It was really easy.
>
> On Sat, Mar 28, 2009 at 12:05 PM, Jeff Walker <
> webservices.architect@gmail.com> wrote:
>
> > 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
> >
>
>
>
> --
>
> P. J. O'Rourke - "If government were a product, selling it would be
> illegal."
>
Re: How to bulk load the jars in my local repo into a new (empty)
corporate remote repo?
Posted by Tim <ch...@gmail.com>.
Are you on a linux system? I just rsynced my repo recently to accomplish the
same thing.
It was really easy.
On Sat, Mar 28, 2009 at 12:05 PM, Jeff Walker <
webservices.architect@gmail.com> wrote:
> 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
>
--
P. J. O'Rourke - "If government were a product, selling it would be
illegal."
RE: How to bulk load the jars in my local repo into a new (empty) corporate remote repo?
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
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:webservices.architect@gmail.com]
Sent: Saturday, March 28, 2009 1:05 PM
To: users@maven.apache.org
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org