执行失败:java.io.IOException:无法运行程序“mkdir”

时间:2014-08-15 07:33:58

标签: maven ant maven-3

我正在尝试构建maven项目。我遇到了以下错误。完整的堆栈跟踪在

之下
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (rpmbuild) on project ers: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] C:\Users\XYZ-PC\git\ers\target\rpm-spec-template\rpmbuild.xml:4: Execute failed: java.io.IOException: Cannot run program "mkdir": CreateProcess error=2, The system cannot find the file specified
[ERROR] around Ant part ...<ant antfile="C:\Users\XYZ-PC\git\ers\target/rpm-spec-template/rpmbuild.xml"/>... @ 4:93 in C:\Users\XYZ-PC\git\ers\target\antrun\build-main.xml
[ERROR] -> [Help 1]

我试过找出这个问题,但我发现的可能是它的JRE问题,我已经检查并确保我的源代码使用的是JDK而不是JRE。

我被困住了,任何帮助都会受到赞赏。

0 个答案:

没有答案