IntelliJ IDEA 早上构建项目

huangapple 未分类评论68阅读模式
英文:

IntelliJ IDEA build project in the morning

问题

我有IntelliJ Ultimate 2019.1.3和Java/Maven项目。

当我早上开始工作,尝试运行一个JUnit测试时,IDEA需要大约3分钟来重新构建项目,然后运行JUnit。第二次、第三次等运行JUnit的操作更快,因为它们不需要3分钟的重新构建时间。

是否可能创建一个定时任务(CRON job)在每天早上7点运行,并执行构建,这样我就不必在运行JUnit之前等待3分钟了?

我尝试过安排Maven构建,但没有解决问题。也许IDEA有单独的缓存或类似的东西。

谢谢

英文:

I have IntelliJ Ultimate 2019.1.3 and java/maven project.

When I come to work in the morning and try to run one JUnit test, it takes about 3 mins for IDEA to rebuild the project and then run JUnit. 2nd, 3rd etc. executions of JUnit are quicker as they do not require 3 mins rebuild.

Is it possible to create CRON job to run every 7am and execute that build so then I do not have to wait 3mins before running JUnit?

I tried to schedule maven build but it does not solve the problem. Maybe IDEA has separate casches or something.

Thanks

huangapple
  • 本文由 发表于 2020年4月9日 15:40:47
  • 转载请务必保留本文链接:https://java.coder-hub.com/61116186.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定