首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从源头上建立共济会者?

如何从源头上建立共济会者?
EN

Stack Overflow用户
提问于 2021-08-02 10:59:19
回答 1查看 47关注 0票数 0

我有一个项目git克隆-深度1-分支v2.3.30 https://github.com/apache/freemarker.git,并希望建立它的来源。为此,我发布了一个逗号

代码语言:javascript
复制
ant jar

具有以下输出

代码语言:javascript
复制
└─$ ant -version                                                                                                                                         1 ⨯
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Apache Ant(TM) version 1.10.9 compiled on December 25 1969
                                                                                                                                                             
┌──(katya12㉿kali)-[/home/…/prostor/offline/ito-kpo-mka/freemarker]
└─$ ant jar     
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Buildfile: /home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build.xml
     [copy] Copying 1 file to /home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build
   [delete] Deleting: /home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build/version.properties.tmp

_autoget-deps:
     [copy] Copying 1 file to /home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build
   [delete] Deleting: /home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build/version.properties.tmp

_autoget-deps-condition-workaround:
     [copy] Copying 1 file to /home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build
   [delete] Deleting: /home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build/version.properties.tmp

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

BUILD FAILED
/home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build.xml:968: The following error occurred while executing this line:
/home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build.xml:977: The following error occurred while executing this line:
/home/katya/work/prostor/offline/ito-kpo-mka/freemarker/build.xml:985: 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.
No types or tasks have been defined in this namespace yet

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


Total time: 0 seconds

我不知道这是什么意思。你能告诉我吗?有可能用蚂蚁或常春藤来建立资源吗?谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-08-02 11:02:58

遵循GitHub页面指南

大楼FreeMarker

如果您还没有下载源代码发行版,或者从源代码存储库签出FreeMarker。参见此处的存储库位置:https://freemarker.apache.org/sourcecode.html

您需要安装JDK 8(不是JDK 9!)、Apache (用1.9.6测试)和Ivy (用2.5.0测试)。要安装Ivy (但要确保它尚未安装),可以发出ant download;它将在~/.ant/lib下面复制Ivy。(或者,您可以手动将ivy-..jar复制到Ant home lib子文件夹中。)

建议将build.properties.sample复制到build.properties中,并编辑其内容以适应您的系统。(虽然在没有build.properties文件的情况下,基本的jar构建也应该成功。)

要构建freemarker.jar,只需在项目根目录中发出ant命令,它就应该自动下载所有依赖项并构建freemarker.jar。(Depencies将被缓存到项目的. .ivy/cache子目录中。)

若要测试您的构建,请发出ant测试。

要生成文档,可以发出ant和ant manualOffline。

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

https://stackoverflow.com/questions/68620437

复制
相关文章

相似问题

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