1) Set <localRepository>[path-to-your-local-repo]</localRepository> in 
[your-maven-install-dir]/conf/settings.xml

2) Make sure that you remove your ~/.m2 directory

3) Add the M2_REPO:
mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo

4) mvn eclipse:clean eclipse:eclipse

5) Read http://maven.apache.org/plugins/maven-eclipse-plugin/usage.html

-----Original Message-----
From: Oren Livne [mailto:[EMAIL PROTECTED]
Sent: Friday, December 21, 2007 5:24 PM
To: [email protected]
Subject: Eclipse Maven2 Plugin


Dear All,

I am using the Maven 2 integration for Eclipse, 
http://m2eclipse.codehaus.org/
I am trying to set a custom path for my local maven repository. I went 
to Windows->Preferences
->Maven 2 and set it there, but it doesn't have any effect and still 
uses ~/.m2/repository.
My command line maven is configured through MAVEN_HOME/conf/settings.xml 
to go to
a custom folder, and that works. How can I tell MyEclipse (or Eclipse 
for this matter) to use
the same folder? Otherwise I might run into directory differences 
between different windows machines
that I use MyEclipse on.

Thanks so much,
Oren

-- 
===========================================================================
PERSISTENT, adj. Remaining infective for a relatively long time in a
vector after an initial period of incubation.  -- Meriam-Webster Dictionary
---------------------------------------------------------------------------
Oren Livne, Ph.D.
RUReady Software Architect
Academic Outreach and Continuing Education, 1901 E South Campus Dr.
Room 2197-D, University of Utah, Salt Lake City, UT 84112-9399
Tel  : (801) 581-6831     Cell: (801) 631-3885     Fax: (801) 585-5414
Email: [EMAIL PROTECTED]              Web:  http://ruready.net/oren
===========================================================================

---------------------------------------------------------------------
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]

Reply via email to