2017-04-19 254 views
0

將Grails從2.4.4升級到3.2.8。插件聲明沒有解決。Apache Shiro插件問題,Grails 2.4.4升級到3.2.8

dependencies { 
    compile "org.grails.plugins:shiro:1.2.1" 
    ... 
} 

Grails試圖在repo.grails.org上找到maven repo中的依賴關係。

有沒有其他地方尋找grails shiro插件?

Error initializing classpath: Could not find org.grails.plugins.shiro:1.2.1 
Searched the following locations 
    file:/C:/Users/Owner/.m2/repository...shiro-1.2.1.pom 
    file:/C:/Users/Owner/.m2/repository...shiro-1.2.1.jar 
    https://repo.grails.org/grails/core/org/grails/plugins/shiro/1.2.1/shiro-1.2.1.pom 
    ...shiro-1.2.1.jar 

我也試圖建立自己的插件運行,但與gradle產出和相關性問題。 Could not create task of type 'DependencyManagementReportTask'. New to Gradle

我試圖包含spring-security-shiro,但它創建了現成的登錄/授權功能,並沒有找到解決方法。見下面

enter image description here

回答

1

你要安裝的Grails 2插件,但不工作Grails的3.x中 - 你必須使用Grails的3插件(見http://plugins.grails.org/)。

但是沒有用於Grails 3的Shiro插件。有些工作是爲升級它而完成的,但是這還沒有完成,並且我沒有計劃製作一個與Grails3兼容的版本。

+0

謝謝!我試了一下,但是因爲我正在更新一個項目,所以我不需要spring-security-shiro提供的'pre made'starter代碼,我還沒有想出如何使用現成的代碼。通過這個工作最好的方法是什麼?再次感謝您的時間。 – mcroteau

+0

附加信息,如果有幫助。我正在嘗試升級https://github.com/opengreenfield/greenfield的項目。遷移到Grails 3一直是一場噩夢,比我預期的要多一點工作。任何額外的指導將不勝感激。 [email protected]。再次感謝你的時間。 – mcroteau

+0

2.4.4是否會更好?或者我會錯過? – mcroteau