Search code examples
javaeclipsemacosmavenm2eclipse

Error creating maven project in eclipse


I am trying to create a maven project in Eclipse(neon.1 version) on macOS Sierra, but whenever i create a project, no matter with what/which type of archetype or configuration i choose, i always get these errors, which are shown in screenshot:

enter image description here

And the error in pom.xml is :

enter image description here

I have not been able to find any solution from anywhere till now, have been working on this issue from weeks.


Solution

  • Quite sure that you would have already tried, if not please remove the entire maven from your system ( generally .m2 folder in windows) and create a new workspace in eclipse and do a fresh setup from scratch.

    I do not remember the error I faced, but after struggling for many hours this worked for me.

    If you have installed maven manually also, as I mentioned, below will be the path :

    In simple, when you build a Maven project, all dependency files will be stored in your Maven local repository.
    By default, Maven local repository is default to .m2 folder :

    Unix/Mac OS X – ~/.m2
    Windows – C:\Documents and Settings\{your-username}\.m2