You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marcell Manfrin Barbacena <ba...@gmail.com> on 2005/07/17 03:42:14 UTC
[M1toM2] How to setup multiples repositories
Hello all,
How do I set multiples repositories in m2? In my previous
project.properties i had the following:
maven.repo.remote=http://maven.codecrate.com/, http://www.ibiblio.org/maven
I don't want this configuration to go in the settings.xml (and i don't
know how to do it as well) because it is a project thing and i want
that in the CVS.
One other question: When i do the following in the pom.xml:
<distributionManagement>
<repository>
<id>repo1</id>
<name>Maven Central Repository</name>
<url>scp://blablabla/blabla</url>
</repository>
</distributionManagement>
Does the following settings.xml works?
<settings>
.
.
<servers>
<server>
<id>repo1</id>
<username>repouser</username>
<password>my_login_password</password>
</server>
</servers>
.
.
</settings>
If i do "m2 install deploy:deploy" will it be nicely deployed?
Tnx in advance.
--
"Nobody knows who i really am
I never felt this empty before
And if I never need someone to come along
Who's gonna comfort me and keep me strong?"
--
Marcell Manfrin Barbacena
barbacena@gmail.com
MSN Messenger: marcell84bruk@hotmail.com
ICQ UIN: 63671762
Skype: callto://marcell84bruk
+55 (83) 8808-8555 (Oi)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M1toM2] How to setup multiples repositories
Posted by Brett Porter <br...@gmail.com>.
> maven.repo.remote=http://maven.codecrate.com/, http://www.ibiblio.org/maven
<repositories/> in the POM.
> Does the following settings.xml works?
yep, it was correct.
>
> If i do "m2 install deploy:deploy" will it be nicely deployed?
yes, though "m2 deploy" is easier
Cheers,
Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org