2016-08-12 2 views
0

Forgerock의 stash repo 소스 코드를 내 Linux 로컬에 다운로드 한 것은 정말 이상하지만, 항상 ant에 대한 컴파일 오류가 발생합니다. 아래는 자세한 오류 메시지입니다. 왜 그런가?OpenDJ 릴리스/3.0.0 컴파일 오류

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 

답변

0

나는 결국 원인을 이해했습니다. 내 opendj/.gitignore 파일에서

, 나는이 :

# Package Files # 
*.jar 

내가 내 자신의 자식의 repo에 그 아카이브를 제출할 때, 그들은 노력하지 않는 것을 의미한다.

따라서 누군가 다른 사람이 내 저장소를 복제하면 컴파일되지 않습니다.