-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile a maven project since groovy-eclipse feature update #262
Comments
When you look at your project in Project Explorer, do you see groovy-all jar anywhere? |
Yes, it's in Maven dependencies (groovy-all-2.4.7.jar). More info from project properties:
pom.xml: ...
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.7</version>
<scope>test</scope>
</dependency>
...
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
<executions>
<execution>
<id>test-compile</id>
<phase>process-test-sources</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.2-01</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.4.3-01</version>
</dependency>
</dependencies>
</plugin> |
There is also a strange record in the eclipse log file:
|
I solved the problem updating the groovy to 2.4.8 in my pom.xml file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a maven project where I use groovy files for unit testing (Spock). I didn't change anything except update groovy-eclipse feature to 2.9.2.xx-201702030026-e46. Since then the project can't be build because of "The project was not built since its build path is incomplete. Cannot find the class file for groovy.lang.GroovyObject. Fix the build path then try building this project".
My system description:
Windows 10 x64
jdk 1.8.0_121
Eclipse 4.6.2
The text was updated successfully, but these errors were encountered: