Search code examples
eclipsespringgradleeclipse-plugingradle-eclipse

Could not fetch model of type 'EclipseProject' using Gradle


I have a gradle project which is configured and working fine in Windows environment but the same is not working when I try and run it in Mac.

Project and Environment Configuration:

Gradle 2.5/2.6
Eclipse Luna/Mars
Gradle Project using SpringBoot

The gradle project is checked out from the SVN but when I run the project as Gradle project it gives me the below error:

Configuration with name 'default' not found. Could not fetch model of type 'EclipseProject' using Gradle installation '/Users/vips/Documents/Software/gradle-2.6'.

I have downloaded and configured Gradle 2.5 and 2.6 both but I get the same error.

Again: It works fine in Windows 7, but not in Mac.

Any help here is much appreciated.

Additional Information:
I noticed that the above issue comes only for a project that is dependent on another project. For an independent gradle project, this just works fine. All dependencies are loaded.


Solution

  • I have figured it out. In my case, somehow one of the dependent project was not checked out correctly.

    I deleted that project and did a fresh checkout from SVN and it worked.

    Hope this helps.