1

我有个问题。重新安装 win 7 后。我无法重新导入我的 Grails 项目。我确定在重新安装我的win7之前,我的项目和我的插件运行流畅。

这是我的圣杯项目

我有我自己的插件“grails-melanin-2.0.0.zip”并将其放在项目中。我不得不重新安装 STS 3.1.0、jdk、设置 java 和 grails 环境......但是当我运行这个命令:“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 位于:D:\grails-2.1.1

我的插件位于:D:\CMC Soft\Collection System\CICDS\grails-melanin-2.0.0.zip

4

1 回答 1

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

希望有帮助!!!

于 2013-09-02T06:13:31.963 回答