英文:
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
专注分享java语言的经验与见解,让所有开发者获益!
评论