首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OpenDJ发布/3.0.0编译错误

OpenDJ发布/3.0.0编译错误
EN

Stack Overflow用户
提问于 2016-08-12 12:22:31
回答 1查看 64关注 0票数 0

很奇怪,我从Forgerock的stash下载源代码到我的linux本地,但是它总是抱怨ant的编译错误。下面是详细的错误消息。知道为什么吗?

代码语言:javascript
复制
generateadmin:
     [exec] 
     [exec] BUILD FAILED
     [exec] /home/xifeng/Downloads/new_test/3rd/opendj/release-3.0.0/opendj/opendj-server-legacy/build.xml:99: Fatal error during transformation using /home/xifeng/Downloads/new_test/3rd/opendj/release-3.0.0/opendj/opendj-server-legacy/resource/admin/metaMO.xsl: Cannot find external method 'java.io.File.toURI' (must be public).


[INFO] OpenDJ ............................................. FAILURE [ 31.211 s]
[INFO] OpenDJ DSML Gateway ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (generate-config) on project opendj-server-legacy: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] /home/xifeng/Downloads/new_test/3rd/opendj/release-3.0.0/opendj/opendj-server-legacy/build.xml:76: exec returned: 1
[ERROR] around Ant part ...<ant antfile="/home/xifeng/Downloads/new_test/3rd/opendj/release-3.0.0/opendj/opendj-server-legacy/build.xml">... @ 4:113 in /home/xifeng/Downloads/new_test/3rd/opendj/release-3.0.0/opendj/opendj-server-legacy/target/antrun/build-main.xml
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-12 14:36:29

我终于明白原因了。

在我的opendj/.gitignore文件中,我有:

代码语言:javascript
复制
# Package Files #
*.jar

这意味着当我将这些档案提交给我自己的git时,它们并没有被提交。

因此,当其他人克隆我的回购时,他们将无法编译。

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

https://stackoverflow.com/questions/38917893

复制
相关文章

相似问题

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