2017-02-21 47 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构建文件中删除特定的测试用例或者注释测试运行任务。