Changing m2eclipse's local repository

View: New views
2 Messages — Rating Filter:   Alert me  

Changing m2eclipse's local repository

by Behrang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Is there a way to change the local repository for m2eclipse? Its text field
is not editable on my system and I don't want m2eclipse to use the same
repository (i.e .m2) that my shell instance of Maven uses.

http://imgur.com/5HHGc

Thanks in advance,
Behrang Saeedzadeh
-------------------------------
http://my.opera.com/behrangsa
http://twitter.com/behrangsa

RE: Changing m2eclipse's local repository

by mgainty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


specify localRepository in settings.xml
http://maven.apache.org/ant-tasks/reference.html

<!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   | Default: ~/.m2/repository
  <localRepository>/path/to/local/repo</localRepository>
  -->

plexus assumes default location is ${user.home}/.m2/repository as illustrated here
$M2_HOME/lib/META-INF/plexus/components.xml:        <userSettingsPath>${user.home}/.m2/settings.xml</userSettingsPath>

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Fri, 6 Nov 2009 23:31:09 +1100
> Subject: Changing m2eclipse's local repository
> From: behrangsa@...
> To: users@...
>
> Hi all,
>
> Is there a way to change the local repository for m2eclipse? Its text field
> is not editable on my system and I don't want m2eclipse to use the same
> repository (i.e .m2) that my shell instance of Maven uses.
>
> http://imgur.com/5HHGc
>
> Thanks in advance,
> Behrang Saeedzadeh
> -------------------------------
> http://my.opera.com/behrangsa
> http://twitter.com/behrangsa
     
_________________________________________________________________
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1