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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s