Questions tagged [gmaven-plugin]

The GMaven Plugin provides integration of Groovy into Maven

GMaven provides integration of Groovy into Maven, allowing users to

  • Build Groovy Projects
  • Execute Groovy Code from a Maven Context
  • Launch Groovy Tools
  • Implement Maven Plugins

The project is no longer under active development. Many Maven users have converted to GMavenPlus (created by a former GMaven dev) or Groovy-Eclipse.

58 questions
33
votes
3 answers

Maven compile mixed Java + Groovy 1.7 project, using gmaven-plugin

As per the top two answers in: maven dependencies groovy. I'm trying to compile a mixed Java 6 + Groovy project with Maven, using the GMaven-plugin from org.codehaus.gmaven. Up until yesterday we were using the old 1.6.0 version of Groovy (never…
Tim
  • 19,793
  • 8
  • 70
  • 95
12
votes
4 answers

How to register a custom built jar file as maven main artifact?

I have a project expected to deliver a jar file: jar but the jar is built in a custom way, so the default packaging done with jar:jar has been disabled maven-jar-plugin
Lukasz Guminski
  • 862
  • 7
  • 20
12
votes
3 answers

maven compile groovy

I have a situation where some of my groovy code references my java files, but I also have different java files that reference the same groovy code. When trying to compile in maven, I either need to compile the groovy before or after the java, and…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
8
votes
8 answers

Groovy file does not compile in Intellij IDEA

I have maven project wit java and groovy tests. In command line maven compilation all tests are running, but in my IDEA project (which is created automatically, by "AutoImport maven projects", IDEA copies groovy files to /target/test-classes without…
Pavel Bernshtam
  • 4,232
  • 8
  • 38
  • 62
8
votes
4 answers

GroovyDoc as Maven Plugin

Is there a maven plugin available somewhere that utilizes GroovyDoc, preferably as a report? I guess GMaven would be the place to look but the docs are ancient (1.0, whereas the current version is 1.3) and the GMaven plugin doesn't have any mojo…
Sean Patrick Floyd
  • 292,901
  • 67
  • 465
  • 588
6
votes
4 answers

gmaven alternative?

We have a couple dozen java projects with a maven build and eclipse as IDE. Now I want to add support for groovy in these projects so inevitably I got to the gmaven plugin for the integration. Unfortunately, gmaven seems abandoned for now (no…
Bogdan Calmac
  • 7,993
  • 6
  • 51
  • 64
6
votes
1 answer

gmaven plugin: how to set property in pom.xml for external groovy script

I'm running an external groovy script via gmaven plugin in pom.xml. The external script is say 'myscript.groovy'. I want to provide some parameters/arguments to myscript.groovy via the maven pom.xml [i.e. inside the plugin 'gmaven-plugin'…
javdev
  • 794
  • 2
  • 10
  • 23
6
votes
2 answers

Error in GMaven Plugin

Whenever I execute the gmaven plugin, I get the following problem org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5:generateStubs': Mojo…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
5
votes
4 answers

How to get the Groovy generated java source code

We have some legacy code with Groovy, and we want to remove Groovy from the application, so, we need to get the java source code generated after using the gmaven plug-in. Basically, in other words I am dynamically generating new classes (using…
jhack
  • 59
  • 1
  • 6
4
votes
1 answer

Getting org.codehaus.groovy.control.MultipleCompilationErrorsException using gmaven plugin

This is my sample program, while compiling using mvn it throws me the compilation error, i'm trying to add a Static Methods using ExpandoMetaClass - @Singleton class ThrowError { def parse () { …
anish
  • 6,884
  • 13
  • 74
  • 140
4
votes
1 answer

How do you pass args to gmaven groovy:execute?

I need to pass in some args to a groovy script that is executed via the gmaven. I can do this no problem if I execute the script directly on the command line like so: printArgs.groovy... for (a in this.args) { println("Argument: " +…
Jay Shark
  • 635
  • 1
  • 11
  • 21
4
votes
1 answer

How can I make gmaven-plugin groovy code cause maven to exit with a failure?

I have a pom.xml file with some groovy code that is run by gmaven-plugin. I would like to detect if a setting is missing and then have maven exit with 'BUILD FAILURE'. I would prefer to be able to display an error message as well, but I can manually…
Solx
  • 4,611
  • 5
  • 26
  • 29
4
votes
2 answers

Maven wont pick up Spock tests

I've been trying to set up Maven to run my Spock (0.7) tests but to no avail. I've been trying to use groovy-eclipse-compiler as gmaven which is refered to in the Spock documentation is no longer recommended according to its' website. The relevant…
Keir
  • 440
  • 6
  • 15
3
votes
2 answers

GMaven project from mvn archetype:generate doesn't `mvn compile`

I generated an empty project with: mvn archetype:generate -DarchetypeGroupId=org.codehaus.gmaven.archetypes -DarchetypeArtifactId=gmaven-archetype-basic -DarchetypeVersion=1.4 and it fails to mvn compile with a bunch messages "package groovy.lang…
Victor Sergienko
  • 13,115
  • 3
  • 57
  • 91
3
votes
2 answers

Where to get a full list of pre-defined variables in gmaven-plugin?

Where to get a complete list of variables available in Groovy scripts executed under gmaven-plugin in Maven? Besides that, maybe someone knows where to find Gmaven documentation? I'm aware about project and settings. I assume there are some others..
yegor256
  • 102,010
  • 123
  • 446
  • 597
1
2 3 4