无法在gmaven-plugin插件中加载mojo'execute'

时间:2019-07-04 10:11:26

标签: java-11 gmaven-plugin

我将Java-8升级到Java-11,此后我在gmaven-plugin上收到错误消息:

  

错误注入构造函数java.lang.ExceptionInInitializerError     在org.codehaus.groovy.maven.plugin.execute.ExecuteMojo。(来源未知)     定位org.codehaus.groovy.maven.plugin.execute.ExecuteMojo

     

[错误]无法在项目项目名称上执行目标org.codehaus.groovy.maven:gmaven-plugin:1.0:execute(tmp-id):目标org.codehaus.groovy.maven的执行tmp-id: gmaven-plugin:1.0:execute失败:由于API不兼容,无法在插件org.codehaus.groovy.maven:gmaven-plugin:1.0'中加载mojo“ execute”:org.codehaus.plexus.component.repository .exception.ComponentLookupException:null

        <plugin>
            <groupId>org.codehaus.groovy.maven</groupId>
            <artifactId>gmaven-plugin</artifactId>
            <executions>
                <execution>
                    <id>tmp-id</id>
                    <phase>install</phase>
                    <goals>
                        <goal>execute</goal>
                    </goals>
                    <configuration>
                        <source>
                            println 'Hello'
                        </source>
                    </configuration>
                </execution>
            </executions>
        </plugin>

有什么想法吗?

0 个答案:

没有答案