1、maven簡單項目創(chuàng)建
最簡單的demo開始,eclipse中,file-->new-->maven PRoject,創(chuàng)建simple project
創(chuàng)建之后報錯,問題為:Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin。。。
問題解決方法:
C:/Users/Administrator/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin路徑(個人的可能有所不同,但可以搜索maven-deploy-plugin這個文件夾進(jìn)行定位),將這個目錄下的文件夾刪除,
然后右擊項目Maven->Update Project->Update Dependencies(如果更新無效,選擇強(qiáng)制更新如下圖)
新聞熱點(diǎn)
疑難解答