Monday, 15 March 2010

java - Missing M2_REPO classpath variable when I open Eclipse -



java - Missing M2_REPO classpath variable when I open Eclipse -

i'm working eclipse ide , i've configured maven settings.

i did windows -> preferences -> maven -> installations , added own maven installation. did windows -> preferences -> maven -> user settings , checked pointed right settings.xml , local repository. ok, , clicked on update settings , reindex in case.

the first time did this, in windows -> preferences -> java -> build path -> classpath variable there variable called m2_repo , pointed right repository. next day opened 1 time again eclipse, m2_repo variable gone.

am missing farther configuration? can help this?

thanks in advance.

update:

i'm using windows 7.

update 2:

i don't know why have mvn eclipse:eclipse in cmd before running eclipse have projects correctly. solution.

this article leads through defining m2_home variable various methods; prefer automatic definition via command line call

mvn -declipse.workspace="your eclipse workspace" eclipse:configure-workspace

for illustration may utilize this:

mvn -declipse.workspace="c:\workspace" eclipse:configure-workspace

if workspace under c:\workspace.

java eclipse maven classpath

No comments:

Post a Comment