如圖出現如下錯誤: 解決方法如下: 1、(未測試)在pom.xml添加如下配置: 2、直接在運行的命令行上加入: 錯誤分析: 其實使用命令行時就已經指定了phase,而使用m2eclipse的【Run As】-【Maven build】時並未為其指定 ...
問題 解決方案在安裝目錄下找到lib maven model builder . . .jar選擇使用壓縮包打開,根據這個目錄META INFmavenorg.apache.mavenmaven model builder找到pom.xml然后找到第一個 lt build gt 標簽,在里面第一行添加 lt defaultGoal gt compile lt defaultGoal gt ...
2021-12-10 20:08 0 858 推薦指數:
如圖出現如下錯誤: 解決方法如下: 1、(未測試)在pom.xml添加如下配置: 2、直接在運行的命令行上加入: 錯誤分析: 其實使用命令行時就已經指定了phase,而使用m2eclipse的【Run As】-【Maven build】時並未為其指定 ...
運行maven報錯: [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or : [: ]: ...
No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> ...
pom.xml文件<build>標簽后面加上<defaultGoal>compile</defaultGoal>即可 ...