score:0
seems like a versioning problem to me. are you sure you used all the right versions of the jars?
score:0
getting groovy-eclipse, gmaven, and eclipse all working together seems to be pretty tricky at the present. once you've got a project created with mvn archetype:generate
, as awhitford mentions, this site will show you a few of the tweaks you'll need to make it work.
gmaven's stub creation for java files interferes with groovy-eclipse, hence the section on that page about commenting out stub creation. however, i went with the method mentioned in the comments for the relevant bug (gmaven-61) and created multiple executions for the gmaven plugin, like so:
<build>
<plugins>
<plugin>
<groupid>org.codehaus.groovy.maven</groupid>
<artifactid>gmaven-plugin</artifactid>
<version>1.0-rc-3</version>
<!-- http://jira.codehaus.org/browse/gmaven-61 -->
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>compile</goal>
<goal>testcompile</goal>
</goals>
</execution>
<execution>
<id>stubsonly</id>
<goals>
<goal>generatestubs</goal>
<goal>generateteststubs</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
i'm still not certain myself that this is clean for both pure maven usage as well as within eclipse, but it at least got me to the point where i stopped spending hours trying to get anything to work and got me coding on my actual project.
the groovy-eclipse and gmaven documentation are good reading for background info.
score:2
at a command prompt, enter this: mvn archetype:generate
then, choose 40
(gmaven-archetype-basic)
then, follow the prompts.
once you have a maven project, you can enable eclipse support by saying: mvn eclipse:eclipse
you can read building groovy projects for more information.
Source: stackoverflow.com
Related Query
- Eclipse Maven Plugin fails to create groovy-maven-archetype project
- Create an eclipse plugin with dependency on a maven project
- Eclipse Juno and Maven plugin fails with project update
- Maven Eclipse Plugin Doesn't Create Project Dependencies Properly
- gwt maven plugin - unable to run archetype generated sample project in eclipse
- Unable to create project from archetype using playn eclipse and maven
- Create a Maven project in Eclipse complains "Could not resolve archetype"
- Cannot create Maven Project in eclipse
- Restore maven plugin for a project on eclipse
- Eclipse Plugin and ADT modification for API Integration in Create Project menu
- How to create Jar file from Maven project in eclipse
- Create complete EAR Project with Maven and Eclipse Helios
- Maven project in eclipse - deployment assembly fails build
- create eclipse groovy-java project with maven
- GWT Maven Eclipse Plugin - Compilation Fails Due to Duplicate Class
- How to create a Maven project in Eclipse with AspectJ support?
- How to create packages (folders) in an Eclipse project via plugin
- Groovy Eclipse compiler plugin for maven not compiling anything
- Maven project dependency error in eclipse using m2e plugin (for maven)
- How do I create an Eclipse plugin release using Maven and Tycho?
- How to create runnable jar with resources in Eclipse from Maven project
- Eclipse fails to import Maven project
- Unable to create project from archetype in Eclipse Luna
- How to create a struts 2 project using m2eclipse plugin using Eclipse Indigo?
- Cannot create a maven project from my archetype
- Converting eclipse java project to maven doesn't create src/test/java directory
- Create a maven webapp project using the eclipse kelper, I got an eclipse error
- Unable to create Maven project in eclipse
- how to create maven plugin using archetype
- adding Maven dependencies of an Eclipse plugin project
More Query from same tag
- How to run pre build gradle java project in intellij
- Android Emulator can't start, 'cause of wrong folder
- Latest update to Android SDK has made my x86 AVD unusably slow to load .apk
- How to add double back-slashes insead of a single back-slashes using JFileChooser
- Android emulator not installing new apk
- Spring Integration STS Plugin integration-graph "manual mode"
- Eclipse Tomcat Error in Mac OS X
- Free JSP plugin for eclipse?
- Invalid resource path specified
- SVN - lock local changes for check in
- An internal error occurred during: "Java Search". -1
- Can't import any referenced libraries from build path in eclipse
- Timer that run every seconds on android eclipse
- Cannot properly deploy WAR file created by Eclipse to Tomcat
- lost the ability to view memory, etc via Eclipse CDT debug perspective
- Create a jar file including an external library (OpenCV) in eclipse
- Eclipse CDT: Glib headers not parsed correctly
- Save output from PMD Eclipse plugin
- Importing git project into workspace without using egit
- Maven build path error
- How to avoid non-default constructors in fragments?
- create xml from java using Jdom
- Debugging recursive methods in Eclipse -- any clever way to avoid getting trapped into ever more nested calls?
- Eclipse import files into project
- Dojo syntax for Eclipse Aptana plugin
- Cannot start Tomcat 8 server Eclipse
- Point of exit from a method in Java
- Java - Multiple markers at this line - java.io.ObjectInputStream
- Eclipse same name file include path c c++
- Codebase of Eclipse using generic