有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Grails maven插件需要Groovy 2.4.2

我升级到Grails 2.4.2,因为这可能修复了maven插件的一个错误,导致它生成了一个糟糕的pom。xml文件。现在,当我尝试使用mvn clean install运行2.4.2生成的pom时,我得到以下错误消息:

[ERROR] Failed to execute goal org.grails:grails-maven-plugin:2.4.2:maven-compile (default-maven-compile) on project PROJECT : Failed to create classpath for Grails execution. Failure to find org.codehaus.groovy:groovy-all:jar:2.4.2 in https://REPO was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

Groovy 2.4.2从2.3开始就不存在了。X是最新的版本。如何强制maven插件将2.3.2的groovy all包作为groovy的依赖项


共 (1) 个答案

  1. # 1 楼答案

    解决方案:这是Maven插件中的一个bug。我给店主发了一个代码补丁

    更新:我发送了一个bug修复程序,该程序被整合到Grails中。新的依赖项是org.grails:grails-maven-plugin:2.4.3。您应该更新Grails BuildConfig和pom文件(或重新生成它)