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] Wed, 27 January 2010 03: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: Wed, 27 January 2010 03:55]

Report message to a moderator

Re: M2_HOME variable [message #510275 is a reply to message #510274] Wed, 27 January 2010 04:32 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3190
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 19:28 Go to previous message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2247
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: Thu Sep 18 21:55:43 GMT 2014

Powered by FUDForum. Page generated in 0.01544 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software