【问题标题】:OpenDJ release/3.0.0 compile errorOpenDJ 发布/3.0.0 编译错误
【发布时间】:2016-08-12 12:22:31
【问题描述】:

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

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


    【解决方案1】:

    我终于明白了原因。

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

    # Package Files #
    *.jar
    

    这意味着当我将这些档案提交到我自己的 git 存储库时,它们不会被提交。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多