Build fails when using a proxy server
If you use a proxy server, you must configure Maximo Anywhere to work with the proxy server.
Procedure
- Open a command prompt, ping the proxy server, and make a note of the proxy host and port number.
- Open a command prompt, and change directory to the <install_home>\AnywhereAppCntr directory.
- Run the following commands: If your proxy server does not require a username and password, run the following commands:
-
npm config set proxy http://<proxyhost>:<port>
-
npm config set https-proxy http://<proxyhost>:<port>
-
npm config set proxy http://<username>:password@<proxyhost>:<port>
-
npm config set https-proxy http://<username>:password@<proxyhost>:<port>
-
- In the <install_home>\AnywhereAppCntr\scripts\internal\android directory, open the gradle.properties file in a text editor.
- Add the following properties, along with the relevant values for your environment, to the
gradle.properties file:
You can remove the proxyUser and proxyPassword properties if your environment does not require them.systemProp.http.proxyHost= systemProp.http.proxyPort= systemProp.https.proxyHost= systemProp.https.proxyPort= systemProp.http.proxyUser= systemProp.http.proxyPassword=
- Open Android Studio to download and install the required android SDKs.
- Navigate to Configure > SDK Manager > System Settings > HTTP Proxy.