OpenDJ发布/ 3.0.0编译错误

时间:2016-08-12 12:22:31

标签: opendj

我将源代码从Forgerock的stash repo下载到我的linux本地,这真的很奇怪,但它始终抱怨蚂蚁的编译错误。以下是详细的错误消息。知道为什么吗?

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

1 个答案:

答案 0 :(得分:0)

我终于理解了原因。

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

# Package Files #
*.jar

意思是当我将这些档案提交给我自己的git仓库时,它们没有被提交。

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