[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project message-service: Failed to deploy artifacts: Could not transfer artifact com.ceres:message-service:jar:2.0.0-20191121.060950-9 from/to baina-central (http://nexus.lmt.trade/content/repositories/snapshots/): Failed to transfer file: http://nexus.lmt.trade/content/repositories/snapshots/com/ceres/message-service/2.0.0-SNAPSHOT/message-service-2.0.0-20191121.060950-9.jar. Return code is: 500, ReasonPhrase: Server Error. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :message-service Build step 'Execute shell' marked build as failure
Finished: FAILURE
翻譯:
[錯誤]無法在項目消息服務上執行目標org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy(默認部署):無法部署工件:無法傳輸工件com.ceres:從/到baina-central的message-service:jar:2.0.0-20191121.060950-9(http://nexus.lmt.trade/content/repositories/snapshots/):無法傳輸文件:http://nexus.lmt .trade / content / repository / snapshots / com / ceres / message-service / 2.0.0-SNAPSHOT / message-service-2.0.0-20191121.060950-9.jar。返回碼是:500,ReasonPhrase:服務器錯誤。 -> [幫助1] [錯誤] [錯誤]要查看錯誤的完整堆棧跟蹤,請使用-e開關重新運行Maven。 [錯誤]使用-X開關重新運行Maven以啟用完整的調試日志記錄。 [錯誤] [ERROR]有關錯誤和可能的解決方案的詳細信息,請閱讀以下文章: [錯誤] [幫助1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [錯誤] [錯誤]糾正問題后,您可以使用以下命令恢復構建 [錯誤] mvn <目標> -rf:消息服務 構建步驟“執行外殼”將構建標記為失敗 完成:失敗
原因:
Maven倉庫所在服務器磁盤空間已滿,導致無法deploy
驗證:
在Maven倉庫所在服務器,檢查磁盤空間是否足夠。
Linux 查看磁盤空間
Linux 查看磁盤空間
分類 編程技術
Linux 查看磁盤空間可以使用 df 和 du 命令。
df
df 以磁盤分區為單位查看文件系統,可以獲取硬盤被占用了多少空間,目前還剩下多少空間等信息。
例如,我們使用df -h命令來查看磁盤信息, -h 選項為根據大小適當顯示:
解決:
釋放一些磁盤空間
Linux 刪除命令