2016-04-21 39 views
1

我试图安装SAML的解释在这里: http://sphoortia.github.io/grails-spring-security-saml/docs/guide/usage.html 但我得到我的春季安全核心的依赖有关的错误:安装SAML 2.x的

plugins\spring-security-core-2.0.0\src\java\grails\plugin\springsecurity\web\access\intercept\ChannelFilterInvocationSecurityMetadataSourceFactoryBean.java:80: error: cannot find symbol   map.put(new AntPathRequestMatcher(entry.getKey()), SecurityConfig.createList(value)); 

正如你所看到的,我使用的春天 - 安全核心:2.0.0。我会说,我的应用程序和SAML的弹簧安全核心依赖关系之间存在着某种冲突。我BuildConfig可以在下面找到(有更多的依赖关系,当然插件,我只是增加了相关的)`

dependencies { 
     compile ("org.springframework.security.extensions:spring-security-saml2-core:1.0.1.RELEASE") { 
      export = false 
     } 
    } 

    plugins { 
     compile ":spring-security-core:2.0.0" 
     compile ':spring-security-saml:2.0.0' 

    }` 

我看到的是,弹簧安全SAML的2.0.0安装,但我在春季安全网络课程中,春季安全核心存在问题。 请问我可以提供一些帮助/建议吗?

回答

1

那么,我真的找到了答案。我不得不排除依赖

dependencies { 
     // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g. 
     compile ("org.springframework.security.extensions:spring-security-saml2-core:1.0.2.RELEASE"){ 
      export = false 
      excludes "spring-security-web" 
     } 
    } 
-1

我也面临着同样的问题,并能够通过执行以下

compile ("org.springframework.security.extensions:spring-security-saml2-core:1.0.1.RELEASE") { 
     export = false 
     excludes 'spring-security-core' 
     excludes 'spring-security-web' 
    } 
+0

@grailsDude请回答http://stackoverflow.com/questions/41589469/using解决-grails-spring-security-saml-plugin问题 –