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/maven
directory under Enterprise SDK:Use dark colors for code blocks Copy [ags@linuxmachine ~]$ cd /home/ags/arcgis/enterprisesdk/java/maven/
-
Use the
sh
command to run the install-maven-artifacts.sh Bash file:Use dark colors for code blocks Copy [ags@linuxmachine maven]$ sh install-maven-artifacts.sh
-
The following six items,
arcgis-enterprise-sdk
,sdk-plugin
,rest-soe-archetype
,soap-soe-archetype
,rest-soap-soe-archetype
, andsoi-archetype
, should be installed successfully with theBuild Success
status for each of them.
Windows
-
Open the command prompt, and go to the
/java/maven
directory 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 following six items,
arcgis-enterprise-sdk
,sdk-plugin
,rest-soe-archetype
,soap-soe-archetype
,rest-soap-soe-archetype
, andsoi-archetype
, should be installed successfully with theBuild Success
status for each of them.