我有问题。重新安装win 7.后,我无法重新导入我的Grails项目。我确定在重新安装win7之前,我的项目和我的插件运行得很流畅。
我有自己的插件“grails-melanin-2.0.0.zip”并将其放入项目中。 我不得不重新安装STS 3.1.0,jdk,设置java和grails environtment ......但是当我运行这个命令:“install-plugin grails-melanin-2.0.0.zip”来安装我自己的插件时,出现这个错误:
| Loading Grails 2.1.1
| Configuring classpath.
| Environment set to development.....
:: problems summary ::
:::: WARNINGS
module not found: commons-collections#commons-collections;3.1
==== grailsHome: tried
D:\grails-2.1.1/lib/commons-collections/commons-collections/ivy-3.1.xml
-- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
D:\grails-2.1.1/lib/commons-collections/commons-collections/jars/commons-collections-3.1.jar
D:\grails-2.1.1/lib/commons-collections/commons-collections/bundles/commons-collections-3.1.jar
==== grailsHome: tried
D:\grails-2.1.1\src\libs/commons-collections-3.1.xml
-- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
D:\grails-2.1.1\src\libs/commons-collections-3.1.jar
==== grailsHome: tried
D:\grails-2.1.1\dist/commons-collections-3.1.xml
-- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
D:\grails-2.1.1\dist/commons-collections-3.1.jar
==== grailsHome: tried
C:\Users\LAM\.grails\2.1.1\cached-installed-plugins/commons-collections-3.1.xml
-- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
C:\Users\LAM\.grails\2.1.1\cached-installed-plugins/commons-collections-3.1.jar
==== grailsHome: tried
-- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
D:\grails-2.1.1/plugins/commons-collections-3.1.jar
==== melanin plugin install resolver: tried
-- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
D:\CMC Soft\Collection System\CICDS/commons-collections-3.1.jar
D:\CMC Soft\Collection System\CICDS/grails-commons-collections-3.1.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: commons-collections#commons-collections;3.1: not found
::::::::::::::::::::::::::::::::::::::::::::::
Error Could not resolve all dependencies for plugin melanin
请告诉我如何修复它?对不起,我的英语不好。非常感谢。
编辑:我将项目放在:D:\ CMC Soft \ Collection System \ CICDS
我的Grails at:D:\ grails-2.1.1
我的插件位于:D:\ CMC Soft \ Collection System \ CICDS \ grails-melanin-2.0.0.zip
答案 0 :(得分:1)
尝试从application.properties中删除所有内容,但以下行除外:
app.grails.version=2.1.1
app.name=connectwebapp
plugins.tomcat=2.1.1
plugins.hibernate=2.1.1
然后,运行
grails clean
然后,还原你的application.properties
并运行
grails run-app
希望有所帮助!!!