Friday, September 04, 2009

Remove version from grails war file name

Grails by default creates strange looking war files ApplicationName-0.1.war. I am not able to deploy the files on Tomcat with the trailing -0.1 since Tomcat thinks the application context is http://hostname/ApplicationName-0.1 when it is just http://hostname/ApplicationName

Remove the following line from application.properties file:-
app.version=0.1

My application.properties looks like
app.servlet.version=2.4
app.grails.version=1.1
plugins.searchable=0.5.5
plugins.hibernate=1.1
plugins.export=0.3
app.name=ApplicationName

And now grails prod war generates ApplicationName.war

No comments:

Post a Comment

Thank you for your feedback