Set Up the Environment

Set Up Maven

The YaaS Service SDK uses Maven to resolve all additional software dependencies that are necessary to create, build, test, run, and debug your new service. Install Maven before you develop services using the YaaS Service SDK.

Before you continue to the next steps of this tutorial, verify that your Java and Maven installations are operational by executing this command:

mvn help:system

The output displays information about the Maven installation and the operating system environment. At the end of the output, you see this information:

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------

If you encounter errors instead, verify that your JAVA_HOME environment variable is set up correctly. If you encounter any network-related issues, follow the instructions in the next step.

Configure Maven

These configuration steps are only necessary if you don't have direct access to the Internet from your network and need to use a proxy server for HTTP and HTTPS connections instead.

To use the YaaS Service SDK from behind an HTTP(S) proxy, configure Maven by setting the following Java system properties:

System PropertyDescriptionExample
http.proxyHostThe host name (DNS name or IP address) of the proxy server to use for
http.proxyPortThe IP port on which to connect to the proxy server for HTTP.8080
https.proxyHostThe host name (DNS name or IP address) of the proxy server to use for HTTP over
https.proxyPortThe IP port on which to connect to the proxy server for HTTP over SSL.8443

To set these properties, use the -D command-line arguments every time you invoke Maven. Alternatively, you can add the properties to the MAVEN_OPTS environment variable, which is used by Maven automatically on every invocation. To set the MAVEN_OPTS environment variable on the command line for different operating systems, use these options:


SET -Dhttp.proxyPort=8080 -Dhttps.proxyPort=8443

Mac OS X, Linux, and other UNIX systems using bash

export MAVEN_OPTS=" -Dhttp.proxyPort=8080 -Dhttps.proxyPort=8443"

Once you have verified these settings, set the MAVEN_OPTS variable permanently, if desired. In Windows, set it in the System Settings. On Mac OS X, Linux, and other UNIX systems, add a corresponding line to the .profile file in the user's home directory.

  • Send feedback

    If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.

  • Get Help

    Use our private help channel. Receive updates over email and contact our specialists directly.

  • hybris Experts

    If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.