2017-04-19 242 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