无法使用Gradle获取'EclipseProject'类型的模型 [英] Could not fetch model of type 'EclipseProject' using Gradle

查看:2758
本文介绍了无法使用Gradle获取'EclipseProject'类型的模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个gradle项目,在Windows环境下配置和工作正常,但当我在Mac上尝试并运行它时,这种项目不工作。



项目和环境配置:
Gradle 2.5 / 2.6
Eclipse Luna / Mars
使用SpringBoot的Gradle项目



Gradle项目从SVN但是当我作为Gradle项目运行项目时,它给了我下面的错误:
$ b

找不到名称为'default'的配置
无法使用Gradle安装'/Users/vips/Documents/Software/gradle-2.6'来获取'EclipseProject'类型的模型。



我已经下载并配置了Gradle 2.5和2.6,但是我得到了同样的错误。



再说一遍:它在Windows 7中工作正常,但在Mac中无法正常工作。 >

这里的任何帮助都非常感谢。



其他信息:

我注意到上述问题仅出现在依赖o的项目中另一个项目。对于一个独立的gradle项目,这可以正常工作。所有依赖项都被加载。

解决方案

我弄明白了。在我的情况下,不知怎的,其中一个依赖项目没有正确检出。



我删除了该项目,并从SVN进行了全新结算,并且工作正常。



希望这有助于。


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.

解决方案

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.

这篇关于无法使用Gradle获取'EclipseProject'类型的模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆