0
我有一個在grails 1.3.x中開發的應用程序,並且我升級到了2.0.4,因此彈簧安全插件中存在依賴性錯誤,所以我做了grails install-plugin spring-security-core
,它安裝了1.2.7.3版本。然後我跑了grails應用程序,我得到了下面的錯誤。在將Grails從1.3.x升級到2.0.4時出現Spring Security core插件錯誤
Compilation error: startup failed:
Compile error during compilation with javac.
C:\Users\Vinay.hs\.grails\2.0.4\projects\steer\plugins\spring-security-core-1.2.7.3\src\java\org\codehaus\groovy\grails\plugins\springs
ecurity\AjaxAwareAuthenticationFailureHandler.java:48: cannot find symbol
symbol : method saveException(javax.servlet.http.HttpServletRequest,org.springframework.security.core.AuthenticationException)
location: class org.codehaus.groovy.grails.plugins.springsecurity.AjaxAwareAuthenticationFailureHandler
saveException(request, exception);
^
然後我加了compile ':spring-security-core:1.2.7.3'
。我有一個不同的錯誤如下
:::: WARNINGS
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: #spring-security-core;1.2.7.3: java.text.ParseException: inconsistent module descriptor file found in 'http://plugin
s.grails.org/grails-spring-security-core/tags/RELEASE_1_2_7_3/spring-security-core-1.2.7.3.pom': bad organisation: expected='' found='o
rg.grails.plugins';
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
grailsCentral: bad organisation found in http://plugins.grails.org/grails-spring-security-core/tags/RELEASE_1_2_7_3/spr
ing-security-core-1.2.7.3.pom: expected='' found='org.grails.plugins'
我提到this jira issue,根據我們必須改變依賴於運行時,但它給我下面的錯誤
inconsistent module descriptor file found in 'http://plugins.grails.org/grails-spring-security-core/tags/RELEASE_1_2_7_3/spring-security-core-1.2.7.3.pom': bad organisation: expected='' found='org.grails.plugins';
那麼,如何解決這個問題。
不,我加了它前面,這是給我的錯誤 – n92
看,我有編輯帖子 – n92
你可以顯示你的BuildConfig.groovy嗎? –