2016-04-21 56 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問題 –