Получение ошибки компиляции при построении spring с помощью gradle
Я учусь использовать Spring и gradle, загрузив источник spring с помощью git. Я скачал его с помощью git clone git:/ / github. com / SpringSource/spring-framework.git Также у меня есть настройка gradle в моем местном.
Пока я пытаюсь выполнить
Gradle build
Я получаю ошибку компиляции следующим образом:
C:Usersmahendranspring-framework>gradle build
:spring-core:asmRepackJar
:spring-core:cglibRepackJar
:spring-core:compileJava
C:Usersmahendranspring-frameworkspring-coresrcmainjavaorgspringframeworkutilxmlStaxUtils.java:318:
cannot find symbol symbol : method newFactory()
location: class javax.xml.stream.XMLEventFactory
return new XMLEventStreamWriter(eventWriter, XMLEventFactory.newFactory());
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:spring-core:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':spring-core:compileJava'.
Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 5.58 secs