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
-
Open the terminal and go to the
/java/mavendirectory under Enterprise SDK:Use dark colors for code blocks Copy [ags@linuxmachine ~]$ cd /home/ags/arcgis/enterprisesdk/java/maven/ -
Use the
chomdcommand to make the script executable:Use dark colors for code blocks Copy [ags@linuxmachine ~]$ chmod +x install-maven-artifacts.sh -
Run it using bash
Use dark colors for code blocks Copy [ags@linuxmachine ~]$ ./install-maven-artifacts.sh -
The “install-maven-artifacts” script installs the following Maven artifacts with a status of
Build Successforarcgis-enterprise-sdk-parent,arcgis-enterprise-sdk,sdk-plugin,interceptor-sdk-plugin,rest-soe-archetype,soap-soe-archetype,rest-soap-soe-archetype,soi-archetype,enterprise-interceptor,server-service-interceptor-archetypeandarcgis-pbf.
Windows
-
Open the command prompt, and go to the
/java/mavendirectory under Enterprise SDK:Use dark colors for code blocks Copy C:\Users>cd "C:\Program Files\ArcGIS\EnterpriseSDK\Java\maven" -
Run the install-maven-artifacts.bat file.
Use dark colors for code blocks Copy C:\Program Files\ArcGIS\EnterpriseSDK\Java\maven>install-maven-artifacts.bat -
The “install-maven-artifacts” script installs the following Maven artifacts with a status of
Build Successforarcgis-enterprise-sdk-parent,arcgis-enterprise-sdk,sdk-plugin,interceptor-sdk-plugin,rest-soe-archetype,soap-soe-archetype,rest-soap-soe-archetype,soi-archetype,enterprise-interceptor,server-service-interceptor-archetypeandarcgis-pbf.