首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从源代码构建Freemarker

从源代码构建Freemarker
EN

Stack Overflow用户
提问于 2009-07-01 02:04:13
回答 4查看 2.2K关注 0票数 0

我在我的大学做一个开源软件的安全项目。我试图从源码建立freemarker,但我遇到了一些问题。我在网上找到的所有东西都表明,在根目录中运行'ant‘就可以构建项目。惟一的要求是您安装了ANTV1.7.0,我也是这样做的。

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

代码语言:javascript
复制
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
EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2009-07-01 04:29:03

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

代码语言:javascript
复制
ant compile

编辑:更改了目标

票数 2
EN

Stack Overflow用户

发布于 2009-07-01 08:34:19

您还需要Apache Ivy。我们已经改变了一段时间的构建过程;它现在使用Ivy而不是手动的依赖管理。

票数 1
EN

Stack Overflow用户

发布于 2012-03-09 01:40:23

在Ubuntu/Debian上,安装Ivy还需要手动将其添加到ant类路径中。

虽然这可能不是最干净的方法1

代码语言:javascript
复制
sudo ln -s /usr/share/java/ivy.jar /usr/share/ant/lib/ivy.jar

1

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1066976

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档