Maven出现错误No plugin found for prefix 'jetty' in the current project and in the plugin groups的问题解决

只需在maven的setting.xml文件上加入如下节点:

<pluginGroups>  
    <pluginGroup>org.mortbay.jetty</pluginGroup>  
</pluginGroups> 

setting.xml文件放在maven运行文件夹的conf文件夹下。

如果不想像上面增加额外的节点,可以通过以下的命令启动:

mvn org.mortbay.jetty:maven-jetty-plugin:run   

 

posted @ 2017-01-31 03:32  EasonJim  阅读(19809)  评论(0编辑  收藏  举报