Clean a Play framework build in IntelliJ

2019-06-26 02:37发布

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?

2条回答
家丑人穷心不美
2楼-- · 2019-06-26 03:13

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

cd <project-dir>

../play clean-all
查看更多
贪生不怕死
3楼-- · 2019-06-26 03:15

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

or

create a run configuration to make it directly from IDEA: enter image description here

查看更多
登录 后发表回答