解决webx项目启动时提示 No plugin found for prefix 'jetty' in the current project and in the plugin group错误

一、创建webx项目

按照网上的教程创建webx项目时,采用的命令如下:

mvn archetype:generate -DgroupId=com.alibaba.webx -DartifactId=tutorial1 -Dversion=1.0-SNAPSHOT -Dpackage=com.alibaba.webx.tutorial1 -DarchetypeArtifactId=archetype-webx-quickstart -DarchetypeGroupId=com.alibaba.citrus.sample -DarchetypeVersion=1.0 -DinteractiveMode=false

运行mvn jetty:run时,出现的错误为:

No plugin found for prefix 'jetty' in the current project and in the plugin groups [com.alibaba.org.apache.maven.plugins, com.alibaba.maven.plugins, org.apache.maven.plugins, org.codehaus.mojo] available from the repositorie
s [local (d:\mvn\repo), tbmirror-all (http://mvnrepo.alibaba-inc.com/mvn/repository)] -> [Help 1]

二、问题排查

方法一:直接查看pom.xml中,发现没有dependency的依赖,添加 之后,运行显示:

<groupId>org.mortbay.jetty</gro
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值