This document will guide you through the process of importing the Spring Framework projects into Eclipse or the Spring Tool Suite (STS). It is recommended that you have a recent version of Eclipse or STS. As a bare minimum you will need Eclipse with full Java 8 support, the AspectJ Development Tools (AJDT), and the Groovy Compiler.
The following instructions have been tested against Spring Tool Suite (STS) 3.9.4 and 4.0.0.M11 with Eclipse Buildship (Eclipse Plug-ins for Gradle). The instructions should work with the latest Eclipse distribution as long as you install Buildship. Note that STS 4 comes with Buildship preinstalled.
Within your locally cloned spring-framework
working directory:
spring-oxm
with ./gradlew :spring-oxm:compileTestJava
spring-aspects
module (or after the import by closing or
deleting the project)spring-oxm
project, add the two folders (castor
and jaxb
) in
build/generated-sources
to the build path (right click on them and select
Build Path -> Use as Source Folder
)./gradlew eclipseBuildship
spring-core
and spring-oxm
should be pre-compiled due to repackaged dependencies.*RepackJar
tasks in the build.spring-aspects
does not compile due to references to aspect types unknown to Eclipse.-XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m
In any case, please do not check in your own generated .classpath
file, .project
file, or .settings
folder. You'll notice these files are already intentionally in
.gitignore
. The same policy holds for IDEA metadata.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。