Which grails-maven-plugin version is compatible with Maven 3.0.4?

时间:2015-12-14 18:06:48

标签: maven grails maven-plugin grails-plugin

I have a project running grails 2.3.9 and right now I'm using the following grails-maven-plugin:

<plugin>
    <groupId>org.grails</groupId>
    <artifactId>grails-maven-plugin</artifactId>
    <version>2.4.3</version>
    <configuration>
        <grailsVersion>2.3.9</grailsVersion>
        <!-- Whether for Fork a JVM to run Grails commands -->
        <fork>false</fork>
    </configuration>
    <extensions>true</extensions>
</plugin>

But when I try to run some mvn command I'm getting this error:

[ERROR] Failed to execute goal org.grails:grails-maven-plugin:2.4.3:clean (default-clean) on project my-portal: The plugin org.grails:grails-maven-plugin:2.4.3 requires Maven version 3.1.0 -> [Help 1]

I'm not able to upgrade my Maven version right now, so I need to run grails-maven-plugin compatible with Maven 3.0.4.

Where can I find the compatible version for grails-maven-plugin to run it with Maven 3.0.4?

1 个答案:

答案 0 :(得分:0)

grails-maven-plugin版本2.4.3需要Maven 3.1.0。这被定义为该插件的pom.xml的先决条件(source code)。

版本this commit2.3.8之间的2.4.0进行了更改。

由于您提到您无法升级Maven,因此您需要降级到grails-maven-plugin版本2.3.8(最多),这只需要至少2.0.5的Maven版本。