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
3
votes
1 answer

gmaven no test found

Hi i m running into some error I have a really small project in groovy. I want to use maven. I was able to compile my files, source and test(i have my .class in the target folder). But no test are executed. here is my pom file.
benzen
  • 6,204
  • 4
  • 25
  • 37
3
votes
1 answer

Jenkins GMavenPlus plugin cannot import local class in groovy script

I have a Jenkins job that call a maven build file that calls a groovy script. In Jenkins I have: Maven version 3.0 Goals and options: -U -P hudson gplus:execute The Groovy script is called using the GMavenPlus. In the pom.xml I have
dawez
  • 2,714
  • 2
  • 29
  • 50
3
votes
1 answer

Showing errors when running groovy script in maven vs. running it in IDE

It is a maven project. To build and run groovy script "gmavenplus" plugin is used. When I run script in maven, even when I apply the -X option, the error looks like: mvn -X clean install gplus:execute [ERROR] Failed to execute goal …
Alexandr
  • 9,213
  • 12
  • 62
  • 102
3
votes
2 answers

Setting properties in maven with gmaven

I am trying to overwrite the following property in maven using gmaven: org.codehaus.gmaven gmaven-plugin
u123
  • 15,603
  • 58
  • 186
  • 303
3
votes
2 answers

How do you setup a maven java project that can also make use of groovy?

I'm working on a large existing java project using maven to manage our builds / releases. I'm interested in using groovy to replace some of our Java classes where we can benefit from it's dynamic nature. How do I go about doing this using maven?
ScArcher2
  • 85,501
  • 44
  • 121
  • 160
3
votes
0 answers

m2eclipse and gmaven plugin

I have a project that contains several groovy classes and m2e is not compiling those groovy classes. I'm using eclipse STS (spring tools suit) with m2eclipse 1.3.1. Here is my the groovy plugin configuration in my pom.xml
Jime
  • 195
  • 1
  • 1
  • 6
3
votes
4 answers

gmaven-plugin works for groovy 1.7.5 but not for 2.1.0

I have working maven 2 setup which compiles jUnit tests written in groovy. Both java and groovy tests are located at /src/test/java See a snapshot of the pom.xml org.codehaus.gmaven
banterCZ
  • 1,551
  • 1
  • 22
  • 37
2
votes
1 answer

Why is class not in classpath inside gmaven-plugin script?

This is my pom.xml: [...] org.codehaus.gmaven gmaven-plugin 1.3
yegor256
  • 102,010
  • 123
  • 446
  • 597
2
votes
3 answers

How to load/find a JAR resource from inside GMaven script?

This is my gmaven script, which is trying to find and load a file located somewhere inside the provided dependency (it's a section of pom.xml): [...] org.codehaus.gmaven gmaven-plugin
yegor256
  • 102,010
  • 123
  • 446
  • 597
2
votes
4 answers

How do I set JDK version for gmaven plugin?

Is it possible to force the gmaven plugin to use a different JDK than the one specified in JAVA_HOME? We need to build a specific project using Java 7, but most developers will have JAVA_HOME set to a Java 6 install as all our other projects are…
Malakim
  • 1,333
  • 2
  • 18
  • 34
2
votes
2 answers

A required class was missing while executing org.codehaus.gmaven:gmaven-plugin:1.3:testCompile: groovy/lang/Closure

I'm trying to mvn clean install a maven project that has landed on my plate, however I'm getting an exception which I believe may be due to a version conflict of Groovy, this is what I get : Failed to execute goal…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
1
vote
2 answers

Why can't the maven-deploy-plugin resolve my custom system property?

I'm using the gmaven-plugin to set a custom system property in my POM. This seems to work, as I'm able to successfully echo the property using the maven-antrun-plugin; however, the maven-deploy-plugin seems completely unaware of the property and is…
Justin Garrick
  • 14,767
  • 7
  • 41
  • 66
1
vote
1 answer

Unable to resolve the class util in gmaven plugin

org.codehaus.gmaven gmaven-plugin 1.5
Maha
  • 77
  • 1
  • 8
1
vote
2 answers

Run unbound groovy script in gmaven

According to documentation, it is possible to bind a groovy script to a phase of maven lifecycle, but how do I run it "unbound" ? In other words, I want to do the following thing Declare my groovy script to use :
Riduidel
  • 22,052
  • 14
  • 85
  • 185
1
vote
0 answers

Setting properties in maven using gmaven plugin

I am using gmaven-plugin to convert the maven user.name property to lower case. The plugin configuration looks like this org.codehaus.groovy.maven gmaven-plugin 1.0
Sri Jay
  • 53
  • 1
  • 4