idea報錯:Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on


  • idea版本:2020.3
  • idea 報錯:在查閱了資料以后發現是IDEA2020的兼容問題

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project sms: Command execution failed.

  • 解決方法:
  1. 測試不要用main方法測試,使用junit測試
  2. 更換版本至IDEA2017
  3. File ->Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Runner
    取消將IDE生成/運行操作委托給Maven
    在這里插入圖片描述


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 IDEA運行Main報錯Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on project education: Command execution failed. Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.1:rpm (default) on project ** [ERROR ]Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.1.0:flatten (flatten) on project 【原創】[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project 工程名: Unable to request: /batch/project?key=xxx:xxxx&preview=false: Read timed o IDEA 打包Spring Boot項目報錯:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project randomaward: Input length = 1 -> [Help 1] Maven項目報錯:Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clea intelij idea 使用maven打包報錯 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1 Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default-cli) on project boot-docker-demo: Exception caught: ADD failed: file not found in build context or... Maven進行install的時候報錯,COMPILATION ERROR : Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project cmu: There are test failures. 通過Maven導出war包時報錯:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM