Maven Jetty Plugin运行时报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Maven Jetty Plugin运行时报错相关的知识,希望对你有一定的参考价值。

今天leader修改了pom文件的配置,更新代码后突然发现项目无法启动,具体的报错内容是:

[ERROR] No plugin found for prefix ‘jetty‘ in the current project and in the plu
gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo
sitories [local (C:\Documents and Settings\reymont.li\.m2\repository), central (
http://repo.maven.apache.org/maven2)] -> [Help 1]

大概意思就是缺少jetty的插件,然后加上下面的这段话就可以正常启动了

<plugins>
 <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.10</version>
 </plugin>
</plugins>

 

以上是关于Maven Jetty Plugin运行时报错的主要内容,如果未能解决你的问题,请参考以下文章