Defining Predix Platform Artifactory Access

If you need Predix platform artifacts for your application development, you can set up your environment to access the Predix platform Artifactory.

About This Task

An Artifactory is a binary repository manager that provides version control (and more) for your binary artifacts (such as jar and war files). Maven uses a settings file to define proxies and define the Predix platform Artifactory.

Procedure

  1. Update your proxy settings in the settings.xml file to access the Artifactory.

    For example, if you are in the GE network, you can update the proxy settings as follows:

    <proxies>
       <proxy>
          <id>optional</id>
          <active>true</active>
          <protocol>http</protocol>
          <host><GE_proxy_server></host>
          <port>8080</port>
          <nonProxyHosts>*.ge.com</nonProxyHosts>
        </proxy>
    </proxies>
    Note: This step is required only if you are behind a proxy.
  2. Update your Maven settings to use the Predix platform Artifactory:
    <server>
        <id>artifactory.external</id>
        <username><predix-user-name></username>
        <password><predix-password></password>
    </server>

    where <predix-user-name> and <predix-password> are your Predix.io username and password.

    You can encrypt your password instead of specifying in plain text. For more information, see Maven's Password Encryption.