Search code examples
javaibm-cloudwebsphere-libertybuildpack

When I deploy my java app to IBM Bluemix using Liberty, the buildpack renames it to myapp.war. How to retain my original war file name?


I have created a sample java application and packaged it JavaHelloWorldApp.war.

I deploy it to IBM Bluemix using the command cf push MyHelloWorldApp -p JavaHelloWorldApp.war

After deploy, when I navigate to Runtime file of my deployed application I see that the war file name is shown as myapp.war. See the image in the link below

Image showing generated war file with default name

I would like to retain my original war file name. As I want to encode my app version details in the war file name and would like the retain it for the reference. How to achieve it?


Solution

  • Push a liberty server package zip instead of the war

    https://www.ibm.com/blogs/bluemix/2015/01/modify-liberty-server-xml-configurations-ibm-bluemix/