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
1
vote
2 answers

AspectJ Maven plugin corrupting Groovy classes built by GMaven

I am trying to run Groovy and AspectJ on a module but when I add AspectJ, the classes seem to return very diferent values than I expected: junit.framework.ComparisonFailure: null expected:<2011-04-03> but…
Mick Knutson
  • 2,297
  • 3
  • 25
  • 48
1
vote
1 answer

How access a variable with Groovy Plugin in Maven

I have an application with React in a children module and I'd like use the node.exe which exist in the parent module. In Parent POM I defined a variable with path of the node.exe Corretor Online
Gustavo Rey
  • 115
  • 9
1
vote
0 answers

Tell gmaven plugin to skip/exclude certain files

Is it possible to tell the gmaven plugin to "skip" the compilation of a single groovy file inside of a directory that has already been given as a source? For some background, I'm using gmaven + junit to unit test some Jenkins pipeline libraries. …
blindsnowmobile
  • 3,868
  • 6
  • 32
  • 47
1
vote
0 answers

Updating groovy to latest version 2.4.11 causes gmaven build failure

When I upgraded groovy to latest version 2.4.11 and tried to build maven project I get the below error. I tried the following: Updated pom.xml with dependency of groovy-all-2.4.11 but is seems like gmaven plugin is outdated tried using gmaven-plus…
frndlyguru
  • 11
  • 1
1
vote
1 answer

How can I run two gmaven scripts in one pom.xml?

I want to have two scripts run from maven, one of which depends on an environment variable. I'm trying something like this: org.codehaus.groovy.maven gmaven-plugin
Graeme Perrow
  • 56,086
  • 21
  • 82
  • 121
1
vote
1 answer

Skip compilation in gmavenplus plugin

I currently work in big project built by Maven which has many integration tests modules which are marked as main (not testing) sources. I am trying to create a profile which would skip compilation of these modules. I expected gmaven plugin to allow…
Denis Gburg
  • 23
  • 1
  • 4
1
vote
1 answer

groovy java gmaven and traits

I'm trying to write test and use groovy trait feature. Here is my gmaven plugin configuration org.codehaus.gmaven gmaven-plugin
Capacytron
  • 3,425
  • 6
  • 47
  • 80
1
vote
0 answers

gmaven plugin is giving object heap space error

I am getting error due to gmaven-plugin and groovy is giving error saying that groovy classpath could not find enough object heap space.I am using 32 bit system & Intellij idea ide. I have tried various options but could not resolve it ? What i…
1
vote
1 answer

Call groovy 'main' method from Maven

I want to call the 'main' method in a groovy class in the 'package' phase from maven. I tried the gmaven plugin org.codehaus.groovy.maven gmaven-plugin
user3230140
  • 43
  • 1
  • 5
1
vote
1 answer

Failed to execute goal org.codehaus.groovy.maven:gmaven-plugin:1.0:execute

I am trying to compile the code of georchestra 13.09 and it was working fine for some time but now i can't compile the code I run the next code ./mvn clean install -Dmaven.test.skip=true -Dserver=MyServer and the error is the next The maven version…
Daniel Cabrera
  • 81
  • 2
  • 6
  • 13
1
vote
1 answer

Groovy Maven Plugins

I am trying to run Spock tests and perhaps some Groovy scripts, currently for a Groovy app, but in future for Java projects as well. I am really confused about which plugins should be used and how to best configure them, aka least amount of code. I…
Daniil Shevelev
  • 11,739
  • 12
  • 50
  • 73
1
vote
0 answers

Create a maven property through gmaven plugin and accessing through maven-site plugin

The sample code to reproduce the issue: https://github.com/ajorpheus/gmaven-site-test Try doing a mvn site:site on that project and then looking at the target\site\index.html. I want to create a property via the gmaven plugin which is accessible in…
Ashutosh Jindal
  • 18,501
  • 4
  • 62
  • 91
1
vote
2 answers

Getting a source error building Groovy project with Maven

I am trying to build my first groovy project with maven but I am getting the following error from maven.. its somettype of source error but Idont understand why I am getting it. [INFO] BUILD FAILURE [INFO]…
techsjs2013
  • 2,607
  • 5
  • 20
  • 25
1
vote
0 answers

Groovy tests runned by maven doesn't display non ASCI symbols

I'm using gmaven plugin to compile sources. I have got following configuration file org.codehaus.gmaven gmaven-plugin 1.3
fedor.belov
  • 22,343
  • 26
  • 89
  • 134
0
votes
2 answers

How to include groovy test-sources in generated jar or sources-jar using Maven

I'm using Maven with gmaven plugin. Also I use maven-source-plugin that allows me to generate source.jar containing my sources. Also I have groovy tests that reside in a standard src/test/groovy directory. I configured pom.xml so that tests run when…
dhblah
  • 9,751
  • 12
  • 56
  • 92