IBM Support

Maximo Anywhere Build Fails when Installation Path Contains a Space

Troubleshooting


Problem

If the Maximo Anywhere 764 installation path contains a space (e.g. C:\Anywhere\AW764IFIX 001), various build failures occur

Diagnosing The Problem

Messages in build.log are similar to
C:\Anywhere\AW764IFIX 001\MaximoAnywhere\build.xml:128: The following error occurred while executing this line:
C:\Anywhere\AW764IFIX 001\MaximoAnywhere\anywhere-platform-installer.xml:125: The following error occurred while executing this line:
C:\Anywhere\AW764IFIX 001\MaximoAnywhere\anywhere-platform-installer.xml:151: impossible to resolve dependencies:
    resolve failed - see output for details
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Messages in container_build_summary.log are similar to
  [INFO]  2021-9-14 17:4:40   [WorkExecution::android]  Initializing App WorkExecution for platform android--
  [ERROR]  2021-9-14 17:4:52   [WorkExecution::android]  Command failed: C:\Anywhere\AW764IFIX 001\MaximoAnywhereAppCntr\node_modules\cordova\bin\cordova platform add C:\Anywhere\AW764IFIX 001\MaximoAnywhereAppCntr\platforms\android\cordova-android-8.0.0.tar.gz --force
'C:\Anywhere\AW764IFIX' is not recognized as an internal or external command,
operable program or batch file.
Error: Command failed: C:\Anywhere\AW764IFIX 001\MaximoAnywhereAppCntr\node_modules\cordova\bin\cordova platform add C:\Anywhere\AW764IFIX 001\MaximoAnywhereAppCntr\platforms\android\cordova-android-8.0.0.tar.gz --force
'C:\Anywhere\AW764IFIX' is not recognized as an internal or external command,
operable program or batch file.
    at ChildProcess.exithandler (child_process.js:390:12)
    at ChildProcess.emit (events.js:400:28)
    at maybeClose (internal/child_process.js:1055:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
  [ERROR]  2021-9-14 17:4:52   [WorkExecution::android]  Could not build app: WorkExecution for Android

Resolving The Problem

Remove the space from the directory path and update path references in build.properties and container.properties 

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSPJLC","label":"Maximo Anywhere"},"ARM Category":[{"code":"a8m50000000CbH1AAK","label":"Maximo Mobility"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.6.4"}]

Document Information

Modified date:
15 September 2021

UID

ibm16489379