问题如下所示(忘记截图,只复制了一部分错误代码):
No plugin found for prefix 'http' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\nacy\.m2\repository), central (https://repo.maven.apache.org/maven2)]
解决方法:
1.在maven的setting.xml文件上加入如下节点:
<pluginGroup>org.mortbay.http</pluginGroup>
后期屏蔽掉了,运行也不会出现问题;
2.可以通过以下的命令启动:
mvn org.mortbay.http:maven-http-plugin:run
只需要运行一次就行
如果错误消息里面标记的不是“http”,如果标记的其他的,也可以用这个方法。