简体   繁体   中英

Clean a Play framework build in IntelliJ

I had a spelling mistake in the conf/routes file which caused incorrectly named classes to be generated by Play Framework. Rebuilding project and even running Invalidate Caches does not solve the problem in IntelliJ.

The incorrect class files were re-generated when I manually run play clean from the command line.

Is there an equivalent of Build Clean for Play Framework projects in IntelliJ?

You can either cd to the project and run play clean compile

or

create a run configuration to make it directly from IDEA: 在此输入图像描述

Assuming it is is play 2.x you can run the command:

cd <project-dir>

../play clean-all

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM