Deploy GeoMesa release to a local maven repository

GeoMesa is not yet available on the Maven central repository.  In the meantime, you can deploy a copy of the release versions of GeoMesa to your local maven repository

Step-by-step guide

  1. Clone the GeoMesa git repository

    git clone git@github.com:geomesa/geomesa
    cd geomesa
  2. Checkout the desired release tag

    git tag -l   # lists tags
    git checkout geomesa-version-tag
  3. If needed, add a section to your ~/.m2/settings.xml listing the username and password for your maven repository

    	<server>
    		<id>repo1</id>
    		<username>user1</username>
    		<password>password1</password>
    	</server>
  4. Run mvn deploy to deploy the geomesa artifacts to your local repository

    mvn deploy -DaltDeploymentRepository=repo1::default::http://host:port/path/to/repository
  5. Maven will build and deploy the GeoMesa artifacts for the release you selected to your local repository.