I'm using google app engine to build a war and I've noticed that whenever I make local changes, they never get applied when I run locally. I've figured out that the only way to see the changes I've made is to run a mvn clean, then make, then build the artifact, then deploy. Here's a screenshot showing my configuration:

If I'm missing any of these steps, restarting the server doesn't show any of the changes I've made. I've made many non-google app engine webapps with intellij before and I don't normally have to do this. How can I avoid all these steps? They greatly increase the time it takes to restart my server.

2 Answers
2

If you're using .war artefact, yes, you have to clean and make because it is literally creating the war file and then deploy and in order to update the code within the war file, IntelliJ has to recreate the entire war file which is done by clean (delete) and make it again.

You should consider using .war exploded artefact so that IntelliJ can update the classes/jar files needed without the need to recreate the entire war file. However I see in your screenshot that you're already using war exploded artefact, perhaps the problem is that you're trying to update the jar file being used.

"perhaps the problem is that you're trying to update the jar file being used." How would I be able to accomplish that situation?
–
Daniel KaplanDec 24 '13 at 19:55

If the jar file is one of the result of your project, try not to include in the artifact as jar file, but rather as class. You could do it by modifying your war exploded in the artifact setting
–
WinsDec 25 '13 at 14:25