Clean a Play framework build in IntelliJ

允我心安 提交于 2020-01-03 17:02:01

问题


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?


回答1:


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

or

create a run configuration to make it directly from IDEA:




回答2:


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

cd <project-dir>

../play clean-all


来源:https://stackoverflow.com/questions/18878098/clean-a-play-framework-build-in-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!