[英]Why my Gradle Java project doesn't build in Intellij?
I'm trying to start my Java Gradle project in IntelliJ.我正在尝试在 IntelliJ 中启动我的 Java Gradle 项目。
I have configured my Tomcat configurations as same as my colleagues.我已经像我的同事一样配置了我的 Tomcat 配置。
Their project builds fine.他们的项目构建良好。
When I start the build I see the following in the build tab.当我开始构建时,我在构建选项卡中看到以下内容。
It doesn't go beyond the Writing classes
part.它没有超出
Writing classes
部分。
I don't have any ant tasks in my application.我的应用程序中没有任何蚂蚁任务。 I use only Gradle for dependency management.
我只使用 Gradle 进行依赖管理。 But for some reason, IntelliJ runs some Ant tasks and tries to 'Write' some classes.
但出于某种原因,IntelliJ 运行一些 Ant 任务并尝试“编写”一些类。
The build hangs after this and a Memory Exception
occurs after about 3 minutes.构建在此之后挂起,大约 3 分钟后发生
Memory Exception
。 Thing is only my project that fails like this.事情只是我的项目像这样失败了。 My other colleague's projects work.
我其他同事的项目有效。
Sometimes, I don't get the memory exception.有时,我没有收到内存异常。 But I get the following exception.
但我得到以下异常。
java: Compilation failed: internal java compiler error
Please let me know any information you need to resolve this issue.请告诉我解决此问题所需的任何信息。
I'm using Java 1.8, Gradle 5.6.2, IntelliJ 2020.2 Ultimate ( The latest )我使用的是 Java 1.8、Gradle 5.6.2、IntelliJ 2020.2 Ultimate(最新)
Thanks in advance提前致谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.