【问题标题】:Problem in build java maven clean install CreateProcess error=206构建 java maven clean install CreateProcess 时出现问题 error=206
【发布时间】:2021-01-18 18:45:31
【问题描述】:

我正在尝试构建项目,但遇到以下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.0.0:run (compile-reports) on project saude-command: An Ant BuildException has occured: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_271\jre\bin\java.exe" (in directory "E:\saude-server\saude-command"): CreateProcess error=206, O nome do arquivo ou a extensão é muito grande

[ERROR] around Ant part ...<java fork="true" classname="br.com.ksisolucoes.report.CompilaReports" failonerror="on">... @ 5:93 in E:\saude-server\saude-command\target\antrun\build-main.xml
[ERROR] -> [Help 1]

有人遇到过这个问题吗?

【问题讨论】:

标签: java eclipse maven java-8


【解决方案1】:

问题是您拥有的目录导致构建超过 256 个字符,这在使用旧式 ms-dos 路径时无法在 Windows 上完成。您必须从 UNC 路径运行,或者缩短主目录的路径(或将项目下载到的位置)以避免将来出现此问题。

【讨论】:

    猜你喜欢
    • 2015-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-18
    • 2021-12-16
    • 2020-10-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多