2017-02-21 78 views
0

我是新來的CAS和gradle兩者。Apereo CAS 4.1.0 - 使用INVALID_TICKET進行Gradle構建失敗消息

我從here下載了CAS代碼。提取下載的zip文件後,我運行了gradlew.bat文件來構建CAS項目。即使我沒有修改任何東西,我得到以下錯誤在生成過程:

org.jasig.cas.CentralAuthenticationServiceImplTests > verifyDelegateTicketGrantingTicketWithProperParams FAILED 
    org.jasig.cas.ticket.InvalidTicketException at CentralAuthenticationServiceImplTests.java:174 

47 tests completed, 1 failed 
:cas-server-core:test FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':cas-server-core:test'. 
There were failing tests. See the report at: file:///C:/Users/newbie/Downloads/cas-4.2.1/cas-server-core/build/reports/tests/index.html

作爲構建是失敗,我試圖與CAS,CAS 5.0.2的最新版本。 構建最新版本也給予了同樣的錯誤:

org.apereo.cas.CentralAuthenticationServiceImplTests > verifyDelegateTicketGrantingTicketWithProperParams FAILED 
    INVALID_TICKET 
     at org.apereo.cas.CentralAuthenticationServiceImpl.createProxyGrantingTicket(CentralAuthenticationServiceImpl.java:256) 
     at org.apereo.cas.CentralAuthenticationServiceImpl$$FastClassBySpringCGLIB$$d0ec6e1f.invoke() 
     at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) 
     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) 
     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) 
     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) 
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 
     at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) 
     at org.apereo.cas.CentralAuthenticationServiceImpl$$EnhancerBySpringCGLIB$$9bd39a43.createProxyGrantingTicket() 
     at org.apereo.cas.CentralAuthenticationServiceImplTests.verifyDelegateTicketGrantingTicketWithProperParams(CentralAuthenticationServiceImplTests.java:175) 

47 tests completed, 1 failed 
:core:cas-server-core:test FAILED 
:lintGradle 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':core:cas-server-core:test'. 
There were failing tests. See the report at: file:///C:/Users/newbie/Downloads/cas-5.0.2/core/cas-server-core/build/reports/tests/test/index.html

任何人可以幫我解決/理解這個問題。

非常感謝提前。

回答

0

似乎是你的gradlew.bat文件有一個任務來運行測試文件。當運行測試文件時,其中一個測試用例失敗,因爲您的構建失敗。如果你真的想運行測試用例,你必須修復測試用例錯誤(找到哪個測試用例失敗以及更好地檢查日誌文件的原因)。否則你可以從你的gradle構建文件中刪除特定的測試用例或者註釋測試運行任務。