我是java应用程序开发的新手。我必须使用CAS Server实现单点登录。我下载了CAS Server并尝试按照本教程中的步骤运行。
http://vamsichaithanya.blogspot.in/2013/01/cascentral-authentication-service.html
但是当我使用命令mvn package install
时,我收到此错误
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file (default-cli) on project cas-server-webapp: Error installing artifact 'mysql:mysql-connector-java:jar': Failed to install artifact mysql:mysql-connector-java:jar:5.1.27-bin: /Users/test/Desktop/cas-server-3.5.1/cas-server-webapp (Is a directory) -> [Help 1]
错误测试:
testAfterPropertiesSet(org.jasig.cas.util.AutowiringSchedulerFactoryBeanTests): Error creating bean with name 'jobDetailTicketRegistryCleaner' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set;)Ljava/util/Set;
testWiring(org.jasig.cas.WiringTests): Error creating bean with name 'serviceRegistryReloaderJobDetail' defined in file [/Users/sriseshaa/Desktop/cas-server-3.5.1/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set;)Ljava/util/Set;
请为此问题或任何样本提供任何好的教程。
提前致谢!
答案 0 :(得分:2)
您可以使用this demo测试CAS服务器3.5.x或this other demo来测试未来的CAS服务器4.0。
答案 1 :(得分:0)
查看以下链接,搜索创建pom.xml ,您可以看到如何将cas-server-webapp添加为依赖