Correct me if I'm wrong Maarten, but you'd still need to call deploy twice, once for -P repo1 and again for -P repo2.
The original question was asking if it was possible to do 2 deploys with a single call of mvn deploy -- my general response would be no. But I've never needed to do this, so there's a chance its possible and I've just never done it. Wayne On 7/30/07, maarten roosendaal <[EMAIL PROTECTED]> wrote: > Use profiles to define 2 profiles, each having it's own repository. You can > then say mvn deploy:deploy -P repo1 > > ----- Original Message ---- > From: Piotr Oktaba <[EMAIL PROTECTED]> > To: Maven Users List <users@maven.apache.org> > Sent: Monday, July 30, 2007 8:31:30 AM > Subject: deploying to two repositories and two snapshots repositories in m2 > > Hi. > > I have to deploy artifacts to two repositories (if snapshots, to two > snapshots repositories). I cannot define two repositories (and two > snapshots repositories) in section distributionManagement. Is any way to > do it without double calling goal deploy:deploy with argument > altDeploymentRepisitory? > > Thanks in advance, > Peter > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > ____________________________________________________________________________________Ready > for the edge of your seat? > Check out tonight's top picks on Yahoo! TV. > http://tv.yahoo.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]