java - 无法运行 ant clean jar ide-dependencies 命令

标签 java ant freemarker ivy

我正在尝试设置 Freemarker,但为了能够使用它,我安装了 Ant (bin) 和 Ivy。

如果我输入 ant -version 一切看起来都很好,但每次我输入任何涉及 ant 的命令时,它都会显示“Buildfile: build.xml 不存在!构建失败”。我已经将ivy jar 文件复制到ant 的lib 文件夹中。但是,我仍然遇到同样的问题。 Error msg

最佳答案

您应该使用build.xml文件执行ant,

如果您不在其目录中,则可以使用 -buildfile or -file or -f 指定路径

-buildfile use given buildfile

-file ''

-f ''

例如:

 ant -f c:\temp\build.xml clean jar ide-dependencies

关于java - 无法运行 ant clean jar ide-dependencies 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53700592/

相关文章:

java - 从方法中获取变量

java - 包 com.sun.xml.internal.messaging.saaj.soap.dynamic 不存在

java - 生成的 html 显示 ?而不是国际字符

java - MySQL:未知系统变量 'tx_read_only'

java - 求同长钉子锤击后的最大值

java - 在 OS X 中设置 ANT_OPTS 的正确方法是什么?

javascript - 如何在 FTL 中访问 Jquery 的变量?

Freemarker removeIntrospectionInfo 在模型热交换后不适用于 DCEVM

java - Jersey 的 JSON MediaType

java - Maven Spring Boot项目的Ant构建