Affects Version/s: None
Fix Version/s: None
when i do mvn clean install on a maven grails project, and i have the 'maven-war' goal configured, then the MvnWarMojo gets called.
It calls runGrails("War") which works fine.
But after that, the mojo tries to delete the projects war file and rename the grails war to the "right spot" in ./target
For me, this fails and hence my build fails.
The problem is that the Mojo thinks that grails wrote the war to ./<war-name> (which would be bad for a maven project), but in fact grails writes it to the right place ./target/<war_name>. the Mojo thinks it wrote it to the wrong place and tries to correct it, and fails.
I've commented a line in the attachment to show where I think the Mojo might be wrong (for my usage anyway).
I simply removed all the code in the mojo after runGrails("War") and it works fine for me.