java - 从源代码构建 Freemarker

标签 java security ant build-process freemarker

我正在大学从事开源软件的安全项目。我正在尝试从源代码构建 freemarker,但遇到了一些问题。我在网上可以找到的所有内容都表明,在根目录中简单运行“ant”就应该构建项目。唯一的要求是你安装了 ant v1.7.0,我也是这么做的。

当我进入根目录并输入“ant”时,我得到以下输出:

Buildfile: build.xml

init:

_autoget-deps:

update-deps:
     [echo] Getting dependencies...
     [echo] -------------------------------------------------------

BUILD FAILED
/media/osr/runs/java/freemarker/freemarker/trunk/freemarker/build.xml:64: The following error occurred while executing this line:
/media/osr/runs/java/freemarker/freemarker/trunk/freemarker/build.xml:567: The following error occurred while executing this line:
/media/osr/runs/java/freemarker/freemarker/trunk/freemarker/build.xml:575: Problem: failed to create task or type antlib:org.apache.ivy.ant:settings
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/home/murrayj/.ant/lib
        -a directory added on the command line with the -lib argument


Total time: 0 seconds

最佳答案

build.xml 没有默认目标。试试这个吧

ant compile

编辑:更改目标

关于java - 从源代码构建 Freemarker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1066976/

相关文章:

java - 在本地执行示例 Flink 程序

Javascript:我应该如何处理页面刷新时的 token 验证?

rest - 金融科技/银行应用程序上可能的 API 授权技术

java - iBatis 是动态 SQL 查询的正确选择吗?

java - 控制 session 时间戳是否更新

java - 使用 XML 填充 JComboBox - 缺少一些内容

python - Pyramid .security : Is getting user info from a database with unauthenticated_userid(request) really secure?

java - Ant 在 Windows 和 Linux 中的性能较慢

ant - 如何从 Ant 构建创建的 .zip 解析 7-zip 的 'Warnings: Headers Error'?

Android 单元测试未报告失败并显示 fail()