1

I followed the following tutorial (https://github.com/kolorobot/spring-mvc-quickstart-archetype) and imported the project to eclipse.

However, i am getting the following errors in my pom.xml file, and also in all the java classes.

I have attached the screenshot.

POM.xml

enter image description here

enter image description here

Java classes

enter image description here

I have updated my Post

PROBEM VIEW

enter image description here

Illep
  • 16,375
  • 46
  • 171
  • 302
  • possible duplicate of [How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds](http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin) – Jens Dec 19 '14 at 12:04
  • I tired that, but no use. – Illep Dec 19 '14 at 12:07
  • Build project manually from command line. Import to eclipse as maven project. Run clean/ maven update. – Marcin Szymczak Dec 19 '14 at 12:15

2 Answers2

0
  1. In the eclipse buildpath, make sure you have the maven dependency jars downloaded under "Maven Dependencies" If you dont see, run the below command to download the same. mvn clean dependency:copy-dependencies package

  2. This may sound silly, but in my experience I have seen this working. Do a Project Clean in eclipse and do a maven build

Kedarnath
  • 260
  • 1
  • 3
  • 13
0

There is no Maven dependencies classfolder in your screenshot. Have you tried right-clicking the project name -> Maven -> Update Project?

Update Unbound classpath var.M2_REPO

You need to fix your Maven installation. Go to Window -> Preferences -> Maven and have a look at: Installations and UserSettings

Stefan
  • 12,108
  • 5
  • 47
  • 66
  • Yes i did that several times. But no luck – Illep Dec 19 '14 at 12:17
  • What does the "Problems" view tell you about the errors (Eclipse -> Window -> Show View -> Other -> Problems)? That lifecycle thing is only a warning, not the problem. – Stefan Dec 19 '14 at 12:21
  • I have updated my post with the problem view. Please have a look. – Illep Dec 19 '14 at 12:26