OK, I have a test case project on GitHub:
https://github.com/msgilligan/gretty-maven
If you clone the project and type:
mvn groovy:execute
You should get the error:
java.lang.ExceptionInInitializerError
at
org.mbte.groovypp.compiler.TraitASTTransform.<init>(TraitASTTransform.groovy:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
-- snip --
If you comment out the groovy++ dependency like this:
<!--
<dependency>
<groupId>org.mbte.groovypp</groupId>
<artifactId>gretty</artifactId>
<version>0.4.279</version>
</dependency>
-->
Then the script runs fine and outputs:
Hi
So, I'm guessing there's some conflict between groovypp and the gmaven
plugin.
-- Sean