Gmaven alternative?

We have a couple dozen java projects with maven build and eclipse as an IDE. Now I want to add support for groovy in these projects, so I inevitably got into the gmaven plugin for integration. Unfortunately, gmaven seems abandoned at the moment (no updates on the site and almost no activity in JIRA).

Given that groovy, maven and eclipse are mature software, and java / groovy mixed projects aren't that unusual, I expect you to have a solid integration solution. I know that some people moved their builds to gradle, but I don’t want to make such serious changes just to add groovy support for our projects.

So, how do you all feel about groovy / java mixed projects in maven / eclipse? What tool chain does the groovy community recommend?

Note. I somehow managed to get gmaven to work with groovy 1.8 by fixing the source code from JIRA, but I do not consider this a reliable strategy for the future.

+6
source share
4 answers

I had problems with gmaven when I tried this a few months ago and ended up working with the Groovy Eclipse compiler plugin for Maven :

Here is a link to my project if you want to see an example of POM using this plugin: https://github.com/countvajhula/pilot

NTN

+5
source

At that moment, when the answer was accepted, this answer was correct. GMaven was not supported, and Groovy -Eclipse was the only alternative (except for calling the groovyc Ant task from Maven). I was quite upset about the state of affairs that I took for a while in the maintenance of GMaven.

However, the situation is now completely different than then, so I decided that this issue should be updated for new visitors. Groovy -Eclipse is still a viable option, but many consider GMavenPlus to be a more functional alternative. This page will help you understand your options.

+2
source

ASAIK gmaven is still the preferred plugin for compiling groovy / maven. Perhaps it is just stable and does not need much more updates, and there are very small JIRA problems.

0
source

I am reluctant to use the gmaven version 1.3 plugin. It works well, although I ran into some problems when creating stubs for annotated classes. Fortunately, I do not need to create stubs for successful compilation.

I suspect your experience with Gradle will be much better than Maven for Java-Groovy collaborative projects.

0
source

Source: https://habr.com/ru/post/893634/


All Articles