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   

猜你喜欢

转载自blog.csdn.net/Pei_hua100/article/details/93137828