Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
Description
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.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.2-RC1 [ 15959 ] | |
| Priority | Minor [ 4 ] | Blocker [ 1 ] |
| Attachment | MvnWarMojo.java [ 45818 ] |
| Attachment | MvnWarMojo.java [ 45818 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
| Fix Version/s | 1.2-RC1 [ 11021 ] | |
| Assignee | Graeme Rocher [ graemerocher ] | |
| Key | GRAILS-5354 |
|
| Project | Grails [ 10020 ] | Grails Maven Plugin [ 10284 ] |
| Affects Version/s | 1.2-M4 [ 11020 ] |