“Plugin not found for prefix” error in Eclipse

后端 未结 5 774
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 13:54

In Eclipse I imported a maven-based project which uses maven jetty plugin. If I run mvn jetty:run from command line, everything works fine. If I add a run con

5条回答
  •  暖寄归人
    2020-12-16 14:37

    I apologize for wasting your time. Now I looked through maven warnings which appeared in Eclipse console after I ran the run configuration. I noticed

    [WARNING] Failed to retrieve plugin descriptor for Plugin [org.mortbay.jetty:maven-jetty-plugin]: null

    so it became obvious why it couldn't recognize jetty: prefix. Couple of lines above I saw a bunch of warnings about missing plugin versions. So I added a version specification for the jetty plugin ( entry in pom.xml) and it solved the problem. I forgot a common rule that if something breaks the first thing to check is warnings you get.

提交回复
热议问题