spring用gradle导入eclipse时异常导致失败
来源:互联网 发布:条形码扫描软件 编辑:程序博客网 时间:2024/04/28 18:19
一、出现的异常
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':spring-webmvc-tiles3:eclipseClasspath'.
> Could not resolve all dependencies for configuration 'detachedConfiguration2'.
> Module version org.springframework:spring-webmvc-tiles3:4.0.0.M3, configura
tion 'detachedConfiguration2' declares a dependency on configuration 'runtimeMer
ge' which is not declared in the module descriptor for org.springframework:sprin
g-web:4.0.0.M3
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
二、解决办法
1、在spring主目录下找到build.gradle文件,用ultraEdit打开;
2、找到project("spring-webmvc-tiles3"),并在结尾处添加如下部分并保存。
eclipseClasspath {
downloadSources = false; // required for eclipseClasspath to work
}
3、在cmd命令行中,重新运行命令gradle eclipse -x:eclipse.
0 0
- spring用gradle导入eclipse时异常导致失败
- eclipse spring gradle 插件并导入spring gradle项目
- Gradle编译Spring源码,并导入Eclipse
- 【Gradle】eclipse导入Gradle项目
- 导入数据库时,因数据量过大,导致导入失败
- 6 spring framework导入eclipse(github下载 gradle构建)
- Gradle搭建Spring源码项目并导入Eclipse
- 使用gradle构建spring源码并导入eclipse
- eclipse导入Gradle项目
- Eclipse导入Gradle项目
- eclipse导入工程失败
- eclipse异常关闭,导致再次启动,闪退(又遇到编译项目失败)
- IDEA导入Spring源码(Gradle导入)
- 在eclipse中通过gradle项目管理工具导入spring framework源码
- centos6开机fsck失败,导致开机异常
- 数据源切换异常 导致数据源切换失败
- eclipse导入工程失败解决方法
- eclipse 导入android项目失败
- C#通过接口与线程通信(捕获线程状态)介绍
- 简单的使用exec函数
- c++类的成员函数存储方式(是否属于类的对象)---一道面试题引发的思考
- 【Android基础】listview控件的使用(3)------Map与SimpleAdapter组成的多显示条目的Listview
- UVA 11795 - Mega Man's Mission(状态压缩dp)
- spring用gradle导入eclipse时异常导致失败
- android顶部导航条
- 简单的01背包!!
- 改变工作表背景(4)
- Drawable资源---使用原始资源
- C#图像的灰度化处理:提取像素法介绍
- java和数据库
- 谁是你随时可以说话的人
- 调用模板类的模板成员函数的问题