Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » M2_HOME variable(setting variable for pre-existing project)
M2_HOME variable [message #510274] Tue, 26 January 2010 22:28 Go to next message
Brian is currently offline Brian
Messages: 7
Registered: November 2009
Junior Member
Hi,
I need to set a variable in a project that I've loaded into eclipse pointing to the project directory, called M2_HOME. How do I do that?

I read that it will correct this problem:

Description Resource Path Location Type
Unbound classpath variable: 'M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar' in project 'jung-api' jung-api Build path Build Path Problem


Thanks
Brian

[Updated on: Tue, 26 January 2010 22:55]

Report message to a moderator

Re: M2_HOME variable [message #510275 is a reply to message #510274] Tue, 26 January 2010 23:32 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3125
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 1/26/2010 8:28 PM, Brian wrote:
> Hi,
> I need to set a variable in a project that I've loaded into eclipse
> pointing to the project directory, called M2_HOME. How do I do that?
>
> Thanks
> Brian
>
>
Usually M2_HOME is an environment variable pointing at something like
~/.m2, C:\Users\brian on Windows 7.

I'm a Maven neophyte and am especially mystified so what I've just said
may not be helpful.

Russ Bateman
Re: M2_HOME variable [message #510549 is a reply to message #510274] Wed, 27 January 2010 14:28 Go to previous message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2202
Registered: July 2009
Senior Member
On 1/26/10 10:28 PM, Brian wrote:
> Hi,
> I need to set a variable in a project that I've loaded into eclipse
> pointing to the project directory, called M2_HOME. How do I do that?

Most likely that's a Classpath Variable. Open the Preferences and type
"variables" (without the quotes) into the search field at the top.

Hope this helps,
Eric
Previous Topic:Update Login
Next Topic:Question about Combining eclipse versions
Goto Forum:
  


Current Time: Sat Jul 26 07:25:40 EDT 2014

Powered by FUDForum. Page generated in 0.01481 seconds