If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Thursday, May 28, 2009

Problem setting M2_REPO variable in Eclipse Ganymede 3.4.2

I just installed the latest version of Eclipse and M2Eclipse pluging from Sonatype and apparently you get an out-of-the-box M2_REPO variable which you can't modify.

So Eclipse gave me warnings that my project was missing the required libraries. The issue was luckily easily resolved by copying the settings.xml from my Maven installation to C:\Documents and Settings\arobpel\.m2

5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hi, Robby.
    I had the exact same problem.
    m2eclipse picks the value of M2_REPO variable from $MAVEN_HOME/conf/settings.xml file using element-
    <localRepository>PATH_TO_REPOSITORY</localRepository>

    ReplyDelete
  3. similar, but it actually appends the Eclipse_Home directory before the localRepository path. Better take care of this.

    ReplyDelete
    Replies
    1. @Jackie,

      I am facing the same problem. My M2_REPO variable appends the repository path to eclipse path. Were you able to workaround this?

      Thanks

      Delete
  4. This comment has been removed by the author.

    ReplyDelete