prasannads
prasannads

Reputation: 649

How to set maven pom file to a bintray version?

One of my project's dependencies is in the bintray under the link

https://bintray.com/azavea/geotrellis/geotrellis-spark/view

And they have given maven snippet as below

<dependency>
  <groupId>com.azavea.geotrellis</groupId>
  <artifactId>geotrellis-spark_2.10</artifactId>
  <version>0.10.0-a9ab100</version>
  <type>pom</type>
</dependency>

Can i just use it in the POM file of my maven project, or do I have to add anything in the <repository></repository> to configure a repository to download this dependency from?

Upvotes: 2

Views: 2510

Answers (3)

kayz1
kayz1

Reputation: 7434

  1. Go to desired Bintray project/repository (example https://bintray.com/jerady/maven/FontAwesomeFX/11.0.0)

  2. Click SET ME UP! icon (upper right corner)enter image description here

  3. Click Download Settings in Popup enter image description here

  4. Save settings into your Maven user directory (example C:\Users\myusername.m2)

  5. Add dependency into your POM.xml file as usual

Upvotes: 2

Kedar Mhaswade
Kedar Mhaswade

Reputation: 4695

It seems that this artifact is in the Maven central repo, but the only published version there is: 0.10.0-M1.

My guess is that using this version in your project's pom.xml dependency snippet should be okay.

If you want to actually use the exact same version 0.10.0-a9ab100, then you could download the JAR file from bintray and use the Maven install plugin (mvn install:install-file or something similar) to install it in the local repository (~/.m2).

Upvotes: 0

JBaruch
JBaruch

Reputation: 22893

You need to configure Maven to use Geotrellis repository. In short, you need to add it to Maven's settings.xml file.

Please click on the Set Me Up button on the repo page and follow the instructions under section "Resolving artifacts using Maven".

Upvotes: 2

Related Questions