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

Posted Jim

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的的主要内容,如果未能解决你的问题,请参考以下文章

No plugin found for prefix ‘tomcat7’ in the current project and in the plugin groups

No plugin found for prefix ‘tomcat7’ in the current project and in the plugin groups

No plugin found for prefix ‘install‘ in the current project and in the plugin groups 的解决方法

No plugin found for prefix ‘install‘ in the current project and in the plugin groups 的解决方法

Eclipse通过Maven构建时出现: Fatal error compiling: tools.jar not found: Fatal error compiling: tools.jar no

No plugin found for prefix 'war' in the current project and in the plugin groups