Error with pom.xml in MVC Template project

后端 未结 1 1056
不思量自难忘°
不思量自难忘° 2021-01-17 03:29

I use STS and I\'ve created Spring MVC Template Project. But pom.xml tells me that there is an error and it writes this:

\"No plugin found for prefix \'war\         


        
相关标签:
1条回答
  • 2021-01-17 04:18

    mmm The first thing that I would check is the Maven Version.

    What STS version are you using? The last one is the 3.1.0 and it is supplied with Maven 3.0.4 version

    So why are you using the older Maven 2 version?

    The problem seems to depend on the absence of a specific Maven plugin

    Try to:

    1) Delete the repositery folder inside your ./m2 directory, then go in STS and do a clean or a maven install of your project and see if it works (sometimes understood you wrong to download anything)

    If don't work use the last Maven version, maybe the older version have some problem with the plugin declared in the pom.xml file of the Spring Template project...in teory, if you have dowload the latest version of STS you have also the latest version of Maven !!!

    0 讨论(0)
提交回复
热议问题