the following is what works fine for me:
- First of all you need to install maven on your machine.
http://maven.apache.org/2) You need some maven repository to pull ES
artifacts from. There are two options:
a) you can pull from sonatype repository (in this case you want to use
some of releases installed there or the SNAPSHOT version)
b) you want to use the most recent version of ES which is built or
modified locally. In this case it is better to pull from your local maven
repo (typically located in .m2/repository folder). It is pretty easy to
install the most recent artifact into your local repo by issuing the
following gradle commands in the ES root folder:
gradlew clean release install
Then you need to declare dependency in your pom.xml file. The following is
example which follows the scenario b) above.
Assume ElasticSearch is installed in local mvn repository.
You can install it into local repo using: > gradlew clean
Note: If I remember correctly then those are used because of
log4j.1.2.16 dependencies (these transitive dependencies are not needed and
are problematic w/t maven dependency mechanism as there are some licencing
issues on the Sun/Oracle side).
If you want to use sonatype repository as opposed to local repository then
there are many ways how you can tell maven to use it. Probably the most
explicit one is to add sonatype repository directly into your pom.xml file.
The following you can find more info about how to do it:
On Tue, Aug 24, 2010 at 8:42 PM, Paul firstname.lastname@example.org wrote:
Hopefully a quick question...
I get that the Java APIs are in a maven repository hosted by sonatype.
I've spent a few minutes reading around on maven and how it uses
repositories, but don't feel any closer to answering my question. I'm
sure I could figure this out eventually...
Can somebody give me details on the correct way to pull these down?