3

I am trying to make a new project in maven, but while making the project I am getting "could not calculate build path": plugins error because of this I am not able to work further.

Steps to reproduce: Launch Eclipse (I am using oxygen) new version Go to File ->New ->project->select maven as project option Enter the required filed for POM file Now, as maven project start building, I am getting the error.

Please find attached screenshot for the reference.

Maven build error

Amit Pal
  • 177
  • 3
  • 11

1 Answers1

0

Try the following steps:

  1. Make sure you have connectivity (you can browse) (This kind of error is usually due to connectivity with Internet)

  2. Download Maven and unzip it

  3. Create a JAVA_HOME System Variable

  4. Create an M2_HOME System Variable

  5. Add %JAVA_HOME%\bin;%M2_HOME%\bin; to your PATH variable

  6. Open a command window cmd. Check: mvn -v

  7. If you have a proxy, you will need to configure it

http://maven.apache.org/guides/mini/guide-proxies.html

  1. Make sure you have .m2/repository (erase all the folders and files below)

  2. If you are going to use Eclipse, You will need to create the settings.xml

Maven plugin in Eclipse - Settings.xml file is missing

You can see more detail in

http://maven.apache.org/ref/3.2.5/maven-settings/settings.html

Zakaria Shahed
  • 2,589
  • 6
  • 23
  • 52