Groovy Gradle“Project is missing required library”日食错误 [英] Groovy Gradle"Project is missing required library" error in eclipse

查看:213
本文介绍了Groovy Gradle“Project is missing required library”日食错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个Groovy项目,并使用Gradle从命令行构建,一切正常。但是,在加载到eclipse之后,我在IDE中遇到了很多以下错误。项目构建路径指向这些不存在的jar。

I've created a Groovy project and build with Gradle from command line, all fine. But after load it into eclipse, I got lots of following errors inside the IDE. The project build path is pointing to these non-exist jars.

项目'nexus'缺少必需的库:'C:\Users\jironghu.gradle\cache\modules-2\files-2.1\ commons-beanutils\commons-beanutils\1.8.0\c651d5103c649c12b20d53731643e5fffceb536\commons-beanutils-1.8.0.jar'

Project 'nexus' is missing required library: 'C:\Users\jironghu.gradle\caches\modules-2\files-2.1\commons-beanutils\commons-beanutils\1.8.0\c651d5103c649c12b20d53731643e5fffceb536\commons-beanutils-1.8.0.jar'

推荐答案

我的坏,eclipse项目是在另一个公司里生成的,我的id是不同的。只需要删除eclipse .project和.classpath就可以通过gradlew eclipse重新创建它们。

My bad, the eclipse project was generated in another company where my id was different. Just need to delete the eclipse .project and .classpath re-create them by "gradlew eclipse".

这篇关于Groovy Gradle“Project is missing required library”日食错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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