alfalasas.blogg.se

Maven install jar to local repository example
Maven install jar to local repository example









maven install jar to local repository example

Note: If you would like to develop an SOE with both REST and SOAP functions implemented, it's recommended that you start with rest-soap-soe-archetype. They have the same groupId .sdk and version 10.9.1 (for 10.9 Enterprise SDK, use 10.9.0 as the version value), with artifactId rest-soe-archetype for building REST SOEs, soap-soe-archetype for building SOAP SOEs, rest-soap-soe-archetype for SOEs that support both REST and SOAP functions, and soi-archetype for SOIs. ArcGIS Enterprise SDK provides the four archetypes above. Maven archetypes help create a ready-to-use SOE or SOI project from a Maven project template that consists of metadata defining how the project is constructed and built. REST SOAP SOE archetype ( rest-soap-soe-archetype) In terms of a REST SOE or SOI, the third-party dependency is only required to be added to the project's dependencies, but not the sdk-plugin's dependencies. This helps the sdk-plugin serialize the SOAP method's parameters or return values to be complex types in the generated WSDL.

maven install jar to local repository example maven install jar to local repository example

Note: If a SOAP SOE references classes from a third-party dependency as the SOAP method's parameters or return values, the dependency must be included under both the project's dependencies and the sdk-plugin's dependencies in the POM (compare the comments of the two POM examples above). When an SOE or SOI project is created from the archetype, this dependency will be added automatically under the project's dependencies in the pom.xml file (see POM dependencies). It must be specified as a dependency in the Maven project's POM, so that its classes or interfaces can be referenced in the code. The arcgis-enterprise-sdk.jar file contains all the ArcGIS libraries that will be used by an SOE or SOI. If you would like to read more about Maven archetypes, see Introduction to Archetypes.ĪrcGIS Enterprise SDK JAR ( arcgis-enterprise-sdk.jar) The SDK's archetypes help developers create an SOE or SOI Maven project based on a template defining the project structure, build behavior, and boilerplate code. To learn more about POM, refer to the Maven POM Reference page. The POM is an XML representation of the Maven project, containing project configuration information such as the project's dependencies, the Java compiler used, the developers involved, the URL of where the project lives, and so on. They are referenced at the project's POM ( pom.xml file). The ArcGIS Enterprise SDK JAR ( arcgis-enterprise-sdk.jar) and Maven plugin ( sdk-plugin.jar) will be used by the SOE or SOI project at the generate-resources and package Maven lifecycle phases, to generate the.

MAVEN INSTALL JAR TO LOCAL REPOSITORY EXAMPLE SOFTWARE

They are shipped with the SDK software installation and must be installed to your local repository. Note: The ArcGIS Enterprise SDK Maven artifacts are not present in the Maven central repository. By default, it's in the following locations: The Maven local repository is a directory on the computer where Maven runs. ArcGIS Enterprise SDK Maven artifactsĪrcGIS Enterprise SDK includes six Maven artifacts that must be installed to your Maven local repository by running the install-maven-artifacts tool. This topic illustrates the Maven artifacts included in the SDK and the Maven patterns applied for SOE and SOI project management. Creating and developing an SOE or SOI project follows the Maven patterns.

maven install jar to local repository example

It also provides the tool to install those artifacts to the local Maven repository. The SDK integrates multiple Maven artifacts, including dependencies, archetypes, and plugins, to build and manage an SOE or SOI project. Starting with 10.8.1, ArcGIS Enterprise SDK provides Maven support for Java SOE and SOI development.











Maven install jar to local repository example