FAILURE: Build failed with an exception.
-
What went wrong:
A problem occurred configuring project ':spring-orm-hibernate4'.Cannot change configuration ':spring-orm-hibernate4:runtimeMerge' after it has been resolved.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
:spring-aspects:compileJava
[ant:iajc] /home/tianshaokai/Project/JavaSE/workspace/3.2.13/spring-framework/spring-aspects/src/main/java/org/springframework/cache/aspectj/AnnotationCacheAspect.aj:1 [error] The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
[ant:iajc] (no source information available)
[ant:iajc] /home/tianshaokai/Project/JavaSE/workspace/3.2.13/spring-framework/spring-aspects/src/main/java/org/springframework/mock/staticmock/AbstractMethodMockingControl.aj:19 [error] The import java.util.Arrays cannot be resolved
[ant:iajc] import java.util.Arrays;
[ant:iajc] ^^^^^^^^^^^^^^^
[ant:iajc] /home/tianshaokai/Project/JavaSE/workspace/3.2.13/spring-framework/spring-aspects/src/main/java/org/springframework/mock/staticmock/AbstractMethodMockingControl.aj:103 [error] Arrays cannot be resolved
[ant:iajc] if (!Arrays.equals(this.args, args)) {
[ant:iajc] ^
[ant:iajc]
[ant:iajc] 3 errors
:spring-aspects:compileJava FAILED
FAILURE: Build failed with an exception.
Where:
Script '/home/tianshaokai/Project/JavaSE/workspace/3.2.13/spring-framework/spring-aspects/aspects.gradle' line: 37-
What went wrong:
Execution failed for task ':spring-aspects:compileJava'.compile errors: 3
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
希望大神们给说一下 编译spring 步骤和方法,gradle 编译代码时不时就报错了,大神们有什么解决方案
数据库的锁机制和事务经常配合一起用