Install the Maven artifacts

The ArcGIS Enterprise SDK contains the install-maven-artifacts tool (install-maven-artifacts.bat for Windows and install-maven-artifacts.sh for Linux) which can be executed from the command line. This tool installs the Maven dependencies, archetypes, and plug-ins required by the SDK at the Maven local repository.

Before executing the install-maven-artifacts tool, be sure you set up Java and Maven properly on your development environment. Visit install ArcGIS Enterprise SDK and install Java and Maven for more details. Failure to install Java or Maven will result in issues running the install-maven-artifacts tool.

Linux

  1. Open the terminal and go to the /java/maven directory under Enterprise SDK:

    Use dark colors for code blocksCopy
    1
    [ags@linuxmachine ~]$ cd /home/ags/arcgis/enterprisesdk/java/maven/
  2. Use the sh command to run the install-maven-artifacts.sh Bash file:

    Use dark colors for code blocksCopy
    1
    [ags@linuxmachine maven]$ sh install-maven-artifacts.sh
  3. The following six items, arcgis-enterprise-sdk, sdk-plugin, rest-soe-archetype, soap-soe-archetype, rest-soap-soe-archetype, and soi-archetype, should be installed successfully with the Build Success status for each of them.

Windows

  1. Open the command prompt, and go to the /java/maven directory under Enterprise SDK:

    Use dark colors for code blocksCopy
    1
    C:\Users>cd "C:\Program Files\ArcGIS\EnterpriseSDK\Java\maven"
  2. Run the install-maven-artifacts.bat file.

    Use dark colors for code blocksCopy
    1
    C:\Program Files\ArcGIS\EnterpriseSDK\Java\maven>install-maven-artifacts.bat
  3. The following six items, arcgis-enterprise-sdk, sdk-plugin, rest-soe-archetype, soap-soe-archetype, rest-soap-soe-archetype, and soi-archetype, should be installed successfully with the Build Success status for each of them.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.