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]