Deploying apps from the command line to WebSphere Application Server

You can deploy apps from the command line for environments that do not include IBM MobileFirst® Platform Studio but that do include one of the IBM® WebSphere® Application Server profiles.

Before you begin

  • Install Maximo Anywhere.
  • Add users to the Maximo Anywhere security groups.
  • If you plan to preview the deployed apps in the MobileFirst Operations Console, Google Chrome must be installed on the IBM Maximo Anywhere build server. The preview function for the deployed apps does not support other web browsers. To avoid app login issues due to cached data, you can enable private browsing in Google Chrome.
  • The IBM MobileFirst Platform Server instance and the Application Center console must be running.
  • Verify that the MobileFirst Server properties and the Application Center properties are correct for your environment.

Procedure

  1. Deploy the distributable files to the MobileFirst Server:
    1. On the Maximo Anywhere build server, in the maximoanywhere_home\Anywhere\MaximoAnywhere directory, open the build.properties file.
    2. Choose one of the following options for building the apps:
    Option Action
    To build all applications Run the build all command. This command is build.cmd on Microsoft Windows, and build.sh on UNIX and Linux systems. The .apk, .ipa, or .appx artifact file is generated and all distributable files for the Maximo Anywhere project are deployed to MobileFirst Server.
    To build only some applications Specify a comma-separated list of apps. The possible values are AssetDataManager, Inspection, IssuesReturns, PhysicalCount, ServiceRequest, WorkApproval, AssetAudit, Transfers, and WorkExecution. For example, to build and deploy the IBM Maximo Anywhere Inspection app and the IBM Maximo Anywhere Service Request app, run the following command: appsToBuild=Inspection, ServiceRequest.
  2. Verify deployment of the Maximo Anywhere apps in the MobileFirst Operations Console. In Google Chrome, open the MobileFirst Operations Console and select Preview as common resources for any Maximo Anywhere app.

What to do next