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] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
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 Property | Description | Example |
---|---|---|
http.proxyHost | The host name (DNS name or IP address) of the proxy server to use for HTTP. | proxy-server.our-awesome-office.net |
http.proxyPort | The IP port on which to connect to the proxy server for HTTP. | 8080 |
https.proxyHost | The host name (DNS name or IP address) of the proxy server to use for HTTP over SSL. | proxy-server.our-awesome-office.net |
https.proxyPort | The 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:
Windows
SET MAVEN_OPTS=-Dhttp.proxyHost=proxy-server.our-awesome-office.net -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy-server.our-awesome-office.net -Dhttps.proxyPort=8443
Mac OS X, Linux, and other UNIX systems using bash
export MAVEN_OPTS="-Dhttp.proxyHost=proxy-server.our-awesome-office.net -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy-server.our-awesome-office.net -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.
If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.
Use our private help channel. Receive updates over email and contact our specialists directly.
If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.