import to intellij IDEA翻译

The following has been tested against IntelliJ IDEA 2016.2.2

以下内容已经过IntelliJ IDEA 2016.2.2的测试

Steps

Within your locally cloned spring-framework working directory:

  1. Precompile spring-oxm with ./gradlew :spring-oxm:compileTestJava

  2. Import into IntelliJ (File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)

  3. When prompted exclude the spring-aspects module (or after the import via File-> Project Structure -> Modules)

  4. Code away

在本地克隆的spring framework工作目录中:

  1. 先用./gradlew :spring-oxm:compileTestJava编译spring-oxm
  2. 导入到IntelliJ(File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
  3. 不重要
  4. 随意编码

Known issues

  1. spring-core and spring-oxm should be pre-compiled due to repackaged dependencies.
    See *RepackJar tasks in the build and https://youtrack.jetbrains.com/issue/IDEA-160605).

  2. spring-aspects does not compile due to references to aspect types unknown to
    IntelliJ IDEA. See https://youtrack.jetbrains.com/issue/IDEA-64446 for details. In the meantime, the
    ‘spring-aspects’ can be excluded from the project to avoid compilation errors.

  3. While JUnit tests pass from the command line with Gradle, some may fail when run from
    IntelliJ IDEA. Resolving this is a work in progress. If attempting to run all JUnit tests from within
    IntelliJ IDEA, you will likely need to set the following VM options to avoid out of memory errors:
    -XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m

  4. If you invoke “Rebuild Project” in the IDE, you’ll have to generate some test
    resources of the spring-oxm module again (./gradlew :spring-oxm:compileTestJava)

  5. 由于重新打包的依赖关系,应该先预编译spring-corespring-oxm 。可以在 https://youtrack.jetbrains.com/issue/IDEA-160605查看*RepackJar任务

  6. 由于IntelliJ IDEA对引用切面类型处于未知的情况,spring-aspects不能被编译。可以把spring-aspects在项目中排除掉,以防止编译报错。

  7. 编译的过程中有可能会出现OOM错误,设置-XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m,以防止编译过程报错。

  8. 如果编译出错,解决出错后,可以重新运行命令./gradlew :spring-oxm:compileTestJava进行再编译

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值