運行maven出現“No plugin found for prefix 'http' in the current project……”

問題如下所示(忘記截圖,只複製了一部分錯誤代碼):

 

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”,如果標記的其他的,也可以用這個方法。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章