2016-11-18 53 views
0

我正在嘗試學習Spring LDAP框架,並且我決定下載一些示例代碼以供玩耍。不幸的是,當過我嘗試建立任何代碼(包括從GitHub直接克隆),我得到這個錯誤,當我運行Maven依賴性問題,即使有示例代碼

mvn clean install

錯誤:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project spring-ldap-plain-sample: There are test failures. 

...我已經尋找其他人相同的問題,他們都沒有幫助過我。

這裏是我試圖運行

https://github.com/spring-projects/spring-ldap

+0

你有測試錯誤,修復它們或跳過測試:http://maven.apache.org/surefire/maven-surefire-plugin/examples/skipping-test.html – Berger

+0

是的,跳過測試確實確實有幫助,但我不明白如果我直接從別的東西上直接複製代碼,我該如何得到不斷的測試錯誤。 – Razor88

+2

也許您的本地配置與他們的不匹配,查看失敗的測試並檢查確切的錯誤(您可能有一些/ target/surefire子目錄,您將在其中找到錯誤)。 – Berger

回答