OpenDJ release/3.0.0 编译错误

OpenDJ release/3.0.0 compile error

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

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

终于明白原因了

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

# Package Files #
*.jar

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

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