gmaven-plugin

Getting a source error building Groovy project with Maven

无人久伴 提交于 2020-01-11 11:47:25
问题 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] ------------------------------------------------------------------------ [INFO] Total time: 3.186s [INFO] Finished at: Fri Jan 25 15:36:09 EST 2013 [INFO] Final Memory: 15M/163M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal

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

荒凉一梦 提交于 2020-01-04 09:30:12
问题 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 org.codehaus.gmaven:gmaven-plugin:1.3:testCompile (default) on project maven-myproject-plugin: Execution default of goal org.codehaus.gmaven:gmaven-plugin:1.3:testCompile failed: A required class was missing while executing org.codehaus.gmaven:gmaven-plugin:1.3:testCompile: groovy

GroovyDoc as Maven Plugin

ぃ、小莉子 提交于 2020-01-01 09:08:09
问题 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 that fits as you can see: mvn help:describe -DgroupId=org.codehaus.gmaven -DartifactId=gmaven-plugin This plugin has 9 goals: groovy:compile Description: Compiles Groovy sources. groovy:console Description: Launches the Groovy GUI console. groovy

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

回眸只為那壹抹淺笑 提交于 2019-12-12 12:22:23
问题 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 () { println "Anish" } } ThrowError.metaClass.static.getMap = {m_var -> ThrowError.instance.parse(m_var) } i'm using gmaven plugin to compile the project, while issuing mvn compile .......... [ERROR] Failed to execute goal org.codehaus.gmaven:gmaven-plugin:1.2:generateStubs (default) on project

Executing Groovy script from Maven

感情迁移 提交于 2019-12-12 01:23:19
问题 When executing Groovy script from Maven I get the following error: [ERROR] Failed to execute goal org.codehaus.groovy.maven:gmaven-plugin:1.0:execute (default) on project /path/to/project: org.codehaus.groovy.runtime.metaclass.MissingPropertyExceptionNoStack: No such property: project for class: /path/to/groovy/script/Example -> [Help 1] I searched for possible cause and solution, but still don't understand what am I doing wrong and how to fix it. My script works fine when I execute it

Creating Maven plugin written in Groovy 1.8

ⅰ亾dé卋堺 提交于 2019-12-11 19:35:36
问题 I'm attempting to create a maven plugin using groovy. I'd like to use groovy version 1.8 or higher. I've followed these instructions and got things working if I use: <groupId>org.codehaus.groovy.maven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.0-rc-4</version> This build my plugin and I'm able to use it in other projects. However, this gives an older version of groovy (1.5.7). To switch to a newer version, I tried using a new version and providerSelection: <plugin> <groupId

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

我们两清 提交于 2019-12-10 01:38:24
问题 I have a project expected to deliver a jar file: <packaging>jar</packaging> but the jar is built in a custom way, so the default packaging done with jar:jar has been disabled <plugin> <artifactId>maven-jar-plugin</artifactId> <version>2.3.2</version> <executions> <execution> <id>default-jar</id> <phase>none</phase> </execution> </executions> </plugin> but then when I want to apply shade:shade on the existing jar I get an error The project main artifact does not exist. I assume that maven

gmaven-plugin works for groovy 1.7.5 but not for 2.1.0

主宰稳场 提交于 2019-12-07 15:55:44
问题 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 <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.3</version> <executions> <execution> <id>testCompile</id> <goals> <goal>testCompile</goal> </goals> <configuration> <sources> <fileset> <directory>${pom.basedir}/src/test/java</directory> <includes> <include>**/*.groovy</include> <

Groovy file does not compile in Intellij IDEA

旧街凉风 提交于 2019-12-04 21:29:31
问题 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 compiling them. My gmaven plugin looks like <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.3</version> <executions> <execution> <goals> <goal>generateStubs</goal> <goal>compile</goal> <goal

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

时光总嘲笑我的痴心妄想 提交于 2019-12-04 03:30:16
问题 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' execution]; but unable to do so.. I've tried using in ; but not sure how to retrieve its values in the groovy script. Simply calling properties.get is not giving the property value. Snap of pom file: <plugin> <groupId>org.codehaus.gmaven</groupId>