首页 > 代码库 > Maven出现错误No plugin found for prefix 'jetty' in the current project and in the plugin groups的问题解决

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   

 

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