我们在 java + maven 项目上使用 groovy 并在构建过程中出现以下错误:
INFO] Unable to get Groovy version from GroovySystem, trying InvokerHelper.
[ERROR] Your Groovy version (1.1-rc-1) doesn't support compilation. The minimum version of Groovy required is 1.5.0. Skipping compiling.
我的 pom.xml 有这个依赖:
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.12</version>
<scope>compile</scope>
</dependency>
有什么想法吗?
最佳答案
试试这个,它对我有用:
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.7</version>
<type>pom</type>
</dependency>
关于java - 无法从 GroovySystem 获取 Groovy 版本,尝试 InvokerHelper,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46767321/