2011-12-05 18:05:44 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<name>elasticsearch</name>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
2013-12-02 11:10:07 -05:00
|
|
|
<version>1.0.0.RC1-SNAPSHOT</version>
|
2011-12-05 18:05:44 -05:00
|
|
|
<packaging>jar</packaging>
|
2014-01-06 15:58:46 -05:00
|
|
|
<description>Elasticsearch - Open Source, Distributed, RESTful Search Engine</description>
|
2011-12-05 18:05:44 -05:00
|
|
|
<inceptionYear>2009</inceptionYear>
|
|
|
|
<licenses>
|
|
|
|
<license>
|
|
|
|
<name>The Apache Software License, Version 2.0</name>
|
|
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
|
|
<distribution>repo</distribution>
|
|
|
|
</license>
|
|
|
|
</licenses>
|
|
|
|
<scm>
|
|
|
|
<connection>scm:git:git@github.com:elasticsearch/elasticsearch.git</connection>
|
|
|
|
<developerConnection>scm:git:git@github.com:elasticsearch/elasticsearch.git</developerConnection>
|
|
|
|
<url>http://github.com/elasticsearch/elasticsearch</url>
|
|
|
|
</scm>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.sonatype.oss</groupId>
|
|
|
|
<artifactId>oss-parent</artifactId>
|
|
|
|
<version>7</version>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<properties>
|
2013-11-14 04:17:12 -05:00
|
|
|
<lucene.version>4.6.0</lucene.version>
|
2013-09-17 15:30:27 -04:00
|
|
|
<tests.jvms>1</tests.jvms>
|
2013-07-19 08:38:59 -04:00
|
|
|
<tests.shuffle>true</tests.shuffle>
|
2013-09-04 06:45:18 -04:00
|
|
|
<tests.output>onerror</tests.output>
|
2013-10-10 07:23:02 -04:00
|
|
|
<tests.client.ratio></tests.client.ratio>
|
2013-08-15 08:35:23 -04:00
|
|
|
<es.logger.level>INFO</es.logger.level>
|
2011-12-05 18:05:44 -05:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<repositories>
|
2011-12-05 19:42:25 -05:00
|
|
|
<repository>
|
|
|
|
<id>elasticsearch</id>
|
|
|
|
<name>elasticsearch repo</name>
|
|
|
|
<url>http://elasticsearch.googlecode.com/svn/maven</url>
|
|
|
|
</repository>
|
2011-12-05 18:05:44 -05:00
|
|
|
</repositories>
|
|
|
|
|
|
|
|
<dependencies>
|
2013-07-24 14:24:23 -04:00
|
|
|
<dependency>
|
2013-07-19 08:38:59 -04:00
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-all</artifactId>
|
|
|
|
<version>1.3</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-12-04 09:02:40 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.carrotsearch.randomizedtesting</groupId>
|
|
|
|
<artifactId>randomizedtesting-runner</artifactId>
|
|
|
|
<version>2.0.15</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-07-19 08:38:59 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-test-framework</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-12-07 09:41:51 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpclient</artifactId>
|
|
|
|
<version>4.3.1</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-11-20 15:45:25 -05:00
|
|
|
|
2011-12-05 18:05:44 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-core</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
2012-10-25 15:51:34 -04:00
|
|
|
<artifactId>lucene-analyzers-common</artifactId>
|
2011-12-05 18:05:44 -05:00
|
|
|
<version>${lucene.version}</version>
|
2012-10-25 16:43:32 -04:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-codecs</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
2011-12-05 18:05:44 -05:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-queries</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
2011-12-06 06:41:49 -05:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>jakarta-regexp</groupId>
|
|
|
|
<artifactId>jakarta-regexp</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2011-12-05 18:05:44 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-memory</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-highlighter</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2012-12-02 16:29:49 -05:00
|
|
|
<dependency>
|
2012-10-28 04:58:11 -04:00
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-queryparser</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
2013-02-23 04:52:30 -05:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>jakarta-regexp</groupId>
|
|
|
|
<artifactId>jakarta-regexp</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2012-10-28 04:58:11 -04:00
|
|
|
</dependency>
|
Added suggest api.
# Suggest feature
The suggest feature suggests similar looking terms based on a provided text by using a suggester. At the moment there the only supported suggester is `fuzzy`. The suggest feature is available since version `0.21.0`.
# Fuzzy suggester
The `fuzzy` suggester suggests terms based on edit distance. The provided suggest text is analyzed before terms are suggested. The suggested terms are provided per analyzed suggest text token. The `fuzzy` suggester doesn't take the query into account that is part of request.
# Suggest API
The suggest request part is defined along side the query part as top field in the json request.
```
curl -s -XPOST 'localhost:9200/_search' -d '{
"query" : {
...
},
"suggest" : {
...
}
}'
```
Several suggestions can be specified per request. Each suggestion is identified with an arbitary name. In the example below two suggestions are requested. The `my-suggest-1` suggestion uses the `body` field and `my-suggest-2` uses the `title` field. The `type` field is a required field and defines what suggester to use for a suggestion.
```
"suggest" : {
"suggestions" : {
"my-suggest-1" : {
"type" : "fuzzy",
"field" : "body",
"text" : "the amsterdma meetpu"
},
"my-suggest-2" : {
"type" : "fuzzy",
"field" : "title",
"text" : "the rottredam meetpu"
}
}
}
```
The below suggest response example includes the suggestions part for `my-suggest-1` and `my-suggest-2`. Each suggestion part contains a terms array, that contains all terms outputted by the analyzed suggest text. Each term object includes the term itself, the original start and end offset in the suggest text and if found an arbitary number of suggestions.
```
{
...
"suggest": {
"my-suggest-1": {
"terms" : [
{
"term" : "amsterdma",
"start_offset": 5,
"end_offset": 14,
"suggestions": [
...
]
}
...
]
},
"my-suggest-2" : {
"terms" : [
...
]
}
}
```
Each suggestions array contains a suggestion object that includes the suggested term, its document frequency and score compared to the suggest text term. The meaning of the score depends on the used suggester. The fuzzy suggester's score is based on the edit distance.
```
"suggestions": [
{
"term": "amsterdam",
"frequency": 77,
"score": 0.8888889
},
...
]
```
# Global suggest text
To avoid repitition of the suggest text, it is possible to define a global text. In the example below the suggest text is a global option and applies to the `my-suggest-1` and `my-suggest-2` suggestions.
```
"suggest" : {
"suggestions" : {
"text" : "the amsterdma meetpu",
"my-suggest-1" : {
"type" : "fuzzy",
"field" : "title"
},
"my-suggest-2" : {
"type" : "fuzzy",
"field" : "body"
}
}
}
```
The suggest text can be specied as global option or as suggestion specific option. The suggest text specified on suggestion level override the suggest text on the global level.
# Other suggest example.
In the below example we request suggestions for the following suggest text: `devloping distibutd saerch engies` on the `title` field with a maximum of 3 suggestions per term inside the suggest text. Note that in this example we use the `count` search type. This isn't required, but a nice optimalization. The suggestions are gather in the `query` phase and in the case that we only care about suggestions (so no hits) we don't need to execute the `fetch` phase.
```
curl -s -XPOST 'localhost:9200/_search?search_type=count' -d '{
"suggest" : {
"suggestions" : {
"my-title-suggestions" : {
"suggester" : "fuzzy",
"field" : "title",
"text" : "devloping distibutd saerch engies",
"size" : 3
}
}
}
}'
```
The above request could yield the response as stated in the code example below. As you can see if we take the first suggested term of each suggest text term we get `developing distributed search engines` as result.
```
{
...
"suggest": {
"my-title-suggestions": {
"terms": [
{
"term": "devloping",
"start_offset": 0,
"end_offset": 9,
"suggestions": [
{
"term": "developing",
"frequency": 77,
"score": 0.8888889
},
{
"term": "deloping",
"frequency": 1,
"score": 0.875
},
{
"term": "deploying",
"frequency": 2,
"score": 0.7777778
}
]
},
{
"term": "distibutd",
"start_offset": 10,
"end_offset": 19,
"suggestions": [
{
"term": "distributed",
"frequency": 217,
"score": 0.7777778
},
{
"term": "disributed",
"frequency": 1,
"score": 0.7777778
},
{
"term": "distribute",
"frequency": 1,
"score": 0.7777778
}
]
},
{
"term": "saerch",
"start_offset": 20,
"end_offset": 26,
"suggestions": [
{
"term": "search",
"frequency": 1038,
"score": 0.8333333
},
{
"term": "smerch",
"frequency": 3,
"score": 0.8333333
},
{
"term": "serch",
"frequency": 2,
"score": 0.8
}
]
},
{
"term": "engies",
"start_offset": 27,
"end_offset": 33,
"suggestions": [
{
"term": "engines",
"frequency": 568,
"score": 0.8333333
},
{
"term": "engles",
"frequency": 3,
"score": 0.8333333
},
{
"term": "eggies",
"frequency": 1,
"score": 0.8333333
}
]
}
]
}
}
...
}
```
# Common suggest options:
* `suggester` - The suggester implementation type. The only supported value is 'fuzzy'. This is a required option.
* `text` - The suggest text. The suggest text is a required option that needs to be set globally or per suggestion.
# Common fuzzy suggest options
* `field` - The field to fetch the candidate suggestions from. This is an required option that either needs to be set globally or per suggestion.
* `analyzer` - The analyzer to analyse the suggest text with. Defaults to the search analyzer of the suggest field.
* `size` - The maximum corrections to be returned per suggest text token.
* `sort` - Defines how suggestions should be sorted per suggest text term. Two possible value:
** `score` - Sort by sore first, then document frequency and then the term itself.
** `frequency` - Sort by document frequency first, then simlarity score and then the term itself.
* `suggest_mode` - The suggest mode controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. Three possible values can be specified:
** `missing` - Only suggest terms in the suggest text that aren't in the index. This is the default.
** `popular` - Only suggest suggestions that occur in more docs then the original suggest text term.
** `always` - Suggest any matching suggestions based on terms in the suggest text.
# Other fuzzy suggest options:
* `lowercase_terms` - Lower cases the suggest text terms after text analyzation.
* `max_edits` - The maximum edit distance candidate suggestions can have in order to be considered as a suggestion. Can only be a value between 1 and 2. Any other value result in an bad request error being thrown. Defaults to 2.
* `min_prefix` - The number of minimal prefix characters that must match in order be a candidate suggestions. Defaults to 1. Increasing this number improves spellcheck performance. Usually misspellings don't occur in the beginning of terms.
* `min_query_length` - The minimum length a suggest text term must have in order to be included. Defaults to 4.
* `shard_size` - Sets the maximum number of suggestions to be retrieved from each individual shard. During the reduce phase only the top N suggestions are returned based on the `size` option. Defaults to the `size` option. Setting this to a value higher than the `size` can be useful in order to get a more accurate document frequency for spelling corrections at the cost of performance. Due to the fact that terms are partitioned amongst shards, the shard level document frequencies of spelling corrections may not be precise. Increasing this will make these document frequencies more precise.
* `max_inspections` - A factor that is used to multiply with the `shards_size` in order to inspect more candidate spell corrections on the shard level. Can improve accuracy at the cost of performance. Defaults to 5.
* `threshold_frequency` - The minimal threshold in number of documents a suggestion should appear in. This can be specified as an absolute number or as a relative percentage of number of documents. This can improve quality by only suggesting high frequency terms. Defaults to 0f and is not enabled. If a value higher than 1 is specified then the number cannot be fractional. The shard level document frequencies are used for this option.
* `max_query_frequency` - The maximum threshold in number of documents a sugges text token can exist in order to be included. Can be a relative percentage number (e.g 0.4) or an absolute number to represent document frequencies. If an value higher than 1 is specified then fractional can not be specified. Defaults to 0.01f. This can be used to exclude high frequency terms from being spellchecked. High frequency terms are usually spelled correctly on top of this this also improves the spellcheck performance. The shard level document frequencies are used for this option.
Closes #2585
2013-01-24 09:38:35 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-suggest</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
Remove scope support in query and facet dsl.
Remove support for the `scope` field in facets and `_scope` field in the nested and parent/child queries. The scope support for nested queries will be replaced by the `nested` facet option and a facet filter with a nested filter. The nested filters will now support the a `join` option. Which controls whether to perform the block join. By default this enabled, but when disabled it returns the nested documents as hits instead of the joined root document.
Search request with the current scope support.
```
curl -s -XPOST 'localhost:9200/products/_search' -d '{
"query" : {
"nested" : {
"path" : "offers",
"query" : {
"match" : {
"offers.color" : "blue"
}
},
"_scope" : "my_scope"
}
},
"facets" : {
"size" : {
"terms" : {
"field" : "offers.size"
},
"scope" : "my_scope"
}
}
}'
```
The following will be functional equivalent of using the scope support:
```
curl -s -XPOST 'localhost:9200/products/_search?search_type=count' -d '{
"query" : {
"nested" : {
"path" : "offers",
"query" : {
"match" : {
"offers.color" : "blue"
}
}
}
},
"facets" : {
"size" : {
"terms" : {
"field" : "offers.size"
},
"facet_filter" : {
"nested" : {
"path" : "offers",
"query" : {
"match" : {
"offers.color" : "blue"
}
},
"join" : false
}
},
"nested" : "offers"
}
}
}'
```
The scope support for parent/child queries will be replaced by running the child query as filter in a global facet.
Search request with the current scope support:
```
curl -s -XPOST 'localhost:9200/products/_search' -d '{
"query" : {
"has_child" : {
"type" : "offer",
"query" : {
"match" : {
"color" : "blue"
}
},
"_scope" : "my_scope"
}
},
"facets" : {
"size" : {
"terms" : {
"field" : "size"
},
"scope" : "my_scope"
}
}
}'
```
The following is the functional equivalent of using the scope support with parent/child queries:
```
curl -s -XPOST 'localhost:9200/products/_search' -d '{
"query" : {
"has_child" : {
"type" : "offer",
"query" : {
"match" : {
"color" : "blue"
}
}
}
},
"facets" : {
"size" : {
"terms" : {
"field" : "size"
},
"global" : true,
"facet_filter" : {
"term" : {
"color" : "blue"
}
}
}
}
}'
```
Closes #2606
2013-01-31 09:09:57 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-join</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2013-02-23 04:52:30 -05:00
|
|
|
<!-- Lucene spatial, make sure when upgrading to work with latest version of jts/spatial4j dependencies -->
|
|
|
|
<dependency>
|
2013-02-15 14:54:19 -05:00
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-spatial</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2013-02-23 04:52:30 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.spatial4j</groupId>
|
|
|
|
<artifactId>spatial4j</artifactId>
|
|
|
|
<version>0.3</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.vividsolutions</groupId>
|
|
|
|
<artifactId>jts</artifactId>
|
|
|
|
<version>1.12</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<optional>true</optional>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>xerces</groupId>
|
|
|
|
<artifactId>xercesImpl</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<!-- Lucene spatial -->
|
2012-12-02 16:29:49 -05:00
|
|
|
|
2011-12-05 18:05:44 -05:00
|
|
|
|
2011-12-05 19:42:25 -05:00
|
|
|
<!-- START: dependencies that are shaded -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
2013-09-16 03:13:42 -04:00
|
|
|
<version>15.0</version>
|
2011-12-06 06:41:49 -05:00
|
|
|
<scope>compile</scope>
|
2011-12-06 14:09:28 -05:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
|
|
<artifactId>jsr305</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2013-09-13 17:54:04 -04:00
|
|
|
<groupId>com.carrotsearch</groupId>
|
|
|
|
<artifactId>hppc</artifactId>
|
2013-11-10 14:38:24 -05:00
|
|
|
<version>0.5.3</version>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>joda-time</groupId>
|
|
|
|
<artifactId>joda-time</artifactId>
|
2012-06-14 15:57:01 -04:00
|
|
|
<!-- joda 2.0 moved to using volatile fields for datetime -->
|
|
|
|
<!-- When updating to a new version, make sure to update our copy of BaseDateTime -->
|
2013-08-23 18:07:57 -04:00
|
|
|
<version>2.3</version>
|
2011-12-06 06:41:49 -05:00
|
|
|
<scope>compile</scope>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
2014-01-08 16:14:24 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.joda</groupId>
|
|
|
|
<artifactId>joda-convert</artifactId>
|
|
|
|
<version>1.2</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2011-12-05 19:42:25 -05:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mvel</groupId>
|
|
|
|
<artifactId>mvel2</artifactId>
|
2013-05-11 17:17:00 -04:00
|
|
|
<version>2.1.5.Final</version>
|
2011-12-06 06:41:49 -05:00
|
|
|
<scope>compile</scope>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2012-07-10 17:44:02 -04:00
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-core</artifactId>
|
2013-12-13 18:53:44 -05:00
|
|
|
<version>2.3.0</version>
|
2011-12-06 06:41:49 -05:00
|
|
|
<scope>compile</scope>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2012-07-10 17:44:02 -04:00
|
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
|
|
<artifactId>jackson-dataformat-smile</artifactId>
|
2013-12-13 18:53:44 -05:00
|
|
|
<version>2.3.0</version>
|
2011-12-06 06:41:49 -05:00
|
|
|
<scope>compile</scope>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2012-08-20 11:40:19 -04:00
|
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
2013-12-13 18:53:44 -05:00
|
|
|
<version>2.3.0</version>
|
2011-12-06 06:41:49 -05:00
|
|
|
<scope>compile</scope>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2012-01-19 16:32:59 -05:00
|
|
|
<groupId>io.netty</groupId>
|
2011-12-05 19:42:25 -05:00
|
|
|
<artifactId>netty</artifactId>
|
2013-12-23 14:06:35 -05:00
|
|
|
<version>3.9.0.Final</version>
|
2011-12-06 06:41:49 -05:00
|
|
|
<scope>compile</scope>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
2012-06-18 22:07:11 -04:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.ning</groupId>
|
|
|
|
<artifactId>compress-lzf</artifactId>
|
2012-09-06 08:55:01 -04:00
|
|
|
<version>0.9.6</version>
|
2012-06-18 22:07:11 -04:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2011-12-05 19:42:25 -05:00
|
|
|
<!-- END: dependencies that are shaded -->
|
|
|
|
|
2011-12-05 18:05:44 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
2012-09-15 04:16:18 -04:00
|
|
|
<version>1.2.17</version>
|
2011-12-06 08:43:59 -05:00
|
|
|
<scope>compile</scope>
|
|
|
|
<optional>true</optional>
|
2011-12-05 18:05:44 -05:00
|
|
|
</dependency>
|
|
|
|
|
2011-12-05 19:42:25 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<version>1.6.2</version>
|
2011-12-06 08:43:59 -05:00
|
|
|
<scope>compile</scope>
|
|
|
|
<optional>true</optional>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.java.dev.jna</groupId>
|
|
|
|
<artifactId>jna</artifactId>
|
|
|
|
<version>3.3.0</version>
|
2011-12-06 08:43:59 -05:00
|
|
|
<scope>compile</scope>
|
|
|
|
<optional>true</optional>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
|
|
|
|
2012-02-14 05:49:15 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.fusesource</groupId>
|
|
|
|
<artifactId>sigar</artifactId>
|
|
|
|
<version>1.6.4</version>
|
2012-02-14 05:49:31 -05:00
|
|
|
<scope>compile</scope>
|
2012-02-14 05:49:15 -05:00
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- We don't use this since the publish pom is then messed up -->
|
|
|
|
<!--
|
2011-12-05 19:42:25 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>sigar</groupId>
|
|
|
|
<artifactId>sigar</artifactId>
|
|
|
|
<version>1.6.4</version>
|
|
|
|
<scope>system</scope>
|
|
|
|
<systemPath>${basedir}/lib/sigar/sigar-1.6.4.jar</systemPath>
|
2011-12-13 12:03:32 -05:00
|
|
|
<optional>true</optional>
|
2011-12-05 19:42:25 -05:00
|
|
|
</dependency>
|
2012-02-14 05:49:15 -05:00
|
|
|
-->
|
2011-12-05 18:05:44 -05:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
2011-12-05 19:42:25 -05:00
|
|
|
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${basedir}/src/main/java</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/*.json</include>
|
|
|
|
<include>**/*.yml</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/*.*</include>
|
|
|
|
</includes>
|
2013-07-24 14:24:23 -04:00
|
|
|
<filtering>true</filtering>
|
2011-12-05 19:42:25 -05:00
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>${basedir}/src/test/java</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/*.json</include>
|
|
|
|
<include>**/*.yml</include>
|
|
|
|
<include>**/*.txt</include>
|
|
|
|
</includes>
|
|
|
|
</testResource>
|
|
|
|
<testResource>
|
|
|
|
<directory>${basedir}/src/test/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/*.*</include>
|
|
|
|
</includes>
|
|
|
|
</testResource>
|
2013-12-07 09:41:51 -05:00
|
|
|
<testResource>
|
2013-12-27 14:36:12 -05:00
|
|
|
<directory>${basedir}/rest-api-spec</directory>
|
|
|
|
<targetPath>rest-api-spec</targetPath>
|
2013-12-07 09:41:51 -05:00
|
|
|
<includes>
|
|
|
|
<include>api/*.json</include>
|
|
|
|
<include>test/**/*.yaml</include>
|
|
|
|
</includes>
|
|
|
|
</testResource>
|
2011-12-05 19:42:25 -05:00
|
|
|
</testResources>
|
|
|
|
|
2011-12-05 18:05:44 -05:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2013-11-27 10:20:05 -05:00
|
|
|
<version>3.1</version>
|
2011-12-05 18:05:44 -05:00
|
|
|
<configuration>
|
|
|
|
<source>1.6</source>
|
|
|
|
<target>1.6</target>
|
2013-11-28 12:21:42 -05:00
|
|
|
<fork>true</fork>
|
2014-01-09 05:24:55 -05:00
|
|
|
<maxmem>512m</maxmem>
|
2013-12-14 15:56:01 -05:00
|
|
|
<!-- REMOVE WHEN UPGRADE:
|
|
|
|
see https://jira.codehaus.org/browse/MCOMPILER-209 it's a bug where
|
|
|
|
incremental compilation doesn't work unless it's set to false causeing
|
|
|
|
recompilation of the entire codebase each time without any changes. Should
|
|
|
|
be fixed in version > 3.1
|
|
|
|
-->
|
|
|
|
<useIncrementalCompilation>false</useIncrementalCompilation>
|
2011-12-05 18:05:44 -05:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2013-07-19 08:38:59 -04:00
|
|
|
<groupId>com.carrotsearch.randomizedtesting</groupId>
|
|
|
|
<artifactId>junit4-maven-plugin</artifactId>
|
2013-12-04 09:02:40 -05:00
|
|
|
<version>2.0.15</version>
|
2013-07-19 08:38:59 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>tests</id>
|
|
|
|
<phase>test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>junit4</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<heartbeat>20</heartbeat>
|
|
|
|
<jvmOutputAction>pipe,warn</jvmOutputAction>
|
|
|
|
<leaveTemporary>true</leaveTemporary>
|
|
|
|
<listeners>
|
2013-07-24 14:24:23 -04:00
|
|
|
<report-ant-xml mavenExtensions="true"
|
|
|
|
dir="${project.build.directory}/surefire-reports"/>
|
|
|
|
<report-text
|
|
|
|
showThrowable="true"
|
|
|
|
showStackTraces="true"
|
2013-09-04 06:45:18 -04:00
|
|
|
showOutput="${tests.output}"
|
2013-07-24 14:24:23 -04:00
|
|
|
showStatusOk="false"
|
|
|
|
showStatusError="true"
|
|
|
|
showStatusFailure="true"
|
|
|
|
showStatusIgnored="true"
|
|
|
|
showSuiteSummary="true"
|
|
|
|
timestamps="false"/>
|
|
|
|
<report-execution-times file="${basedir}/.local-execution-hints.log"/>
|
2013-07-19 08:38:59 -04:00
|
|
|
</listeners>
|
|
|
|
<assertions>
|
2013-12-30 13:33:58 -05:00
|
|
|
<enable />
|
|
|
|
<disable package="${tests.assertion.disabled}"/> <!-- pass org.elasticsearch to run without assertions -->
|
2013-07-19 08:38:59 -04:00
|
|
|
</assertions>
|
|
|
|
<parallelism>${tests.jvms}</parallelism>
|
|
|
|
<balancers>
|
|
|
|
<execution-times>
|
2013-07-24 14:24:23 -04:00
|
|
|
<fileset dir="${basedir}" includes=".local-execution-hints.log"/>
|
2013-07-19 08:38:59 -04:00
|
|
|
</execution-times>
|
|
|
|
</balancers>
|
|
|
|
<includes>
|
|
|
|
<include>**/*Tests.class</include>
|
2013-08-13 11:27:08 -04:00
|
|
|
<include>**/*Test.class</include>
|
2013-07-19 08:38:59 -04:00
|
|
|
</includes>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/Abstract*.class</exclude>
|
2013-08-13 11:27:08 -04:00
|
|
|
<exclude>**/*StressTest.class</exclude>
|
2013-07-19 08:38:59 -04:00
|
|
|
</excludes>
|
2013-11-25 08:35:12 -05:00
|
|
|
<argLine>
|
|
|
|
${tests.jvm.argline}
|
|
|
|
</argLine>
|
2013-07-19 08:38:59 -04:00
|
|
|
<jvmArgs>
|
|
|
|
<param>-Xmx512m</param>
|
2013-11-26 05:16:02 -05:00
|
|
|
<param>-Xss256k</param>
|
2013-12-30 03:56:47 -05:00
|
|
|
<param>-XX:MaxPermSize=128m</param>
|
2013-11-07 03:44:19 -05:00
|
|
|
<param>-XX:MaxDirectMemorySize=512m</param>
|
2013-07-19 08:38:59 -04:00
|
|
|
<param>-Des.logger.prefix=</param>
|
|
|
|
</jvmArgs>
|
|
|
|
<shuffleOnSlave>${tests.shuffle}</shuffleOnSlave>
|
|
|
|
<sysouts>${tests.verbose}</sysouts>
|
|
|
|
<seed>${tests.seed}</seed>
|
|
|
|
<haltOnFailure>${tests.failfast}</haltOnFailure>
|
|
|
|
<systemProperties>
|
|
|
|
<!-- RandomizedTesting library system properties -->
|
2013-11-25 08:35:12 -05:00
|
|
|
<tests.jvm.argline>${tests.jvm.argline}</tests.jvm.argline>
|
2013-12-07 09:41:51 -05:00
|
|
|
<tests.appendseed>${tests.appendseed}</tests.appendseed>
|
2013-07-19 08:38:59 -04:00
|
|
|
<tests.iters>${tests.iters}</tests.iters>
|
2013-08-12 07:16:21 -04:00
|
|
|
<tests.maxfailures>${tests.maxfailures}</tests.maxfailures>
|
|
|
|
<tests.failfast>${tests.failfast}</tests.failfast>
|
2013-07-19 08:38:59 -04:00
|
|
|
<tests.class>${tests.class}</tests.class>
|
|
|
|
<tests.method>${tests.method}</tests.method>
|
|
|
|
<tests.nightly>${tests.nightly}</tests.nightly>
|
|
|
|
<tests.badapples>${tests.badapples}</tests.badapples>
|
|
|
|
<tests.weekly>${tests.weekly}</tests.weekly>
|
|
|
|
<tests.slow>${tests.slow}</tests.slow>
|
|
|
|
<tests.awaitsfix>${tests.awaitsfix}</tests.awaitsfix>
|
|
|
|
<tests.slow>${tests.slow}</tests.slow>
|
2013-08-12 07:16:21 -04:00
|
|
|
<tests.timeoutSuite>${tests.timeoutSuite}</tests.timeoutSuite>
|
|
|
|
<tests.showSuccess>${tests.showSuccess}</tests.showSuccess>
|
2013-09-11 16:16:43 -04:00
|
|
|
<tests.integration>${tests.integration}</tests.integration>
|
2013-09-13 13:33:18 -04:00
|
|
|
<tests.cluster_seed>${tests.cluster_seed}</tests.cluster_seed>
|
2013-09-22 16:16:53 -04:00
|
|
|
<tests.client.ratio>${tests.client.ratio}</tests.client.ratio>
|
2013-12-28 18:50:10 -05:00
|
|
|
<tests.enable_mock_modules>${tests.enable_mock_modules}</tests.enable_mock_modules>
|
2013-12-30 13:33:58 -05:00
|
|
|
<tests.assertion.disabled>${tests.assertion.disabled}</tests.assertion.disabled>
|
2013-12-07 09:41:51 -05:00
|
|
|
<tests.rest>${tests.rest}</tests.rest>
|
|
|
|
<tests.rest.suite>${tests.rest.suite}</tests.rest.suite>
|
|
|
|
<tests.rest.spec>${tests.rest.spec}</tests.rest.spec>
|
2013-12-30 09:18:18 -05:00
|
|
|
<tests.network>${tests.network}</tests.network>
|
2013-07-19 08:38:59 -04:00
|
|
|
<es.node.local>${env.ES_TEST_LOCAL}</es.node.local>
|
2013-09-16 18:33:42 -04:00
|
|
|
<es.node.mode>${es.node.mode}</es.node.mode>
|
2013-08-15 08:35:23 -04:00
|
|
|
<es.logger.level>${es.logger.level}</es.logger.level>
|
2013-07-19 08:38:59 -04:00
|
|
|
<java.awt.headless>true</java.awt.headless>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<!-- we skip surefire to work with randomized testing above -->
|
2011-12-05 18:05:44 -05:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
2013-11-27 10:21:27 -05:00
|
|
|
<version>2.16</version>
|
2011-12-05 18:05:44 -05:00
|
|
|
<configuration>
|
2013-07-24 14:24:23 -04:00
|
|
|
<skipTests>true</skipTests>
|
2011-12-05 18:05:44 -05:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
2013-11-27 10:22:36 -05:00
|
|
|
<version>2.2.1</version>
|
2011-12-05 18:05:44 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2011-12-06 06:41:49 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
2013-11-20 15:45:25 -05:00
|
|
|
<version>2.2</version>
|
2011-12-06 06:41:49 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
2013-11-20 15:45:25 -05:00
|
|
|
<shadeTestJar>true</shadeTestJar>
|
2011-12-06 06:41:49 -05:00
|
|
|
<minimizeJar>true</minimizeJar>
|
2013-11-20 15:45:25 -05:00
|
|
|
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
|
2011-12-06 06:41:49 -05:00
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
|
|
|
<include>com.google.guava:guava</include>
|
2013-09-13 17:54:04 -04:00
|
|
|
<include>com.carrotsearch:hppc</include>
|
2011-12-06 06:41:49 -05:00
|
|
|
<include>org.mvel:mvel2</include>
|
2012-07-10 19:18:59 -04:00
|
|
|
<include>com.fasterxml.jackson.core:jackson-core</include>
|
|
|
|
<include>com.fasterxml.jackson.dataformat:jackson-dataformat-smile</include>
|
2012-08-20 11:40:19 -04:00
|
|
|
<include>com.fasterxml.jackson.dataformat:jackson-dataformat-yaml</include>
|
2011-12-06 06:41:49 -05:00
|
|
|
<include>joda-time:joda-time</include>
|
2014-01-08 16:14:24 -05:00
|
|
|
<include>org.joda:joda-convert</include>
|
2012-01-19 16:32:59 -05:00
|
|
|
<include>io.netty:netty</include>
|
2012-06-18 22:07:11 -04:00
|
|
|
<include>com.ning:compress-lzf</include>
|
2011-12-06 06:41:49 -05:00
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
|
|
|
<relocations>
|
|
|
|
<relocation>
|
|
|
|
<pattern>com.google.common</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.common</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
2013-09-13 17:54:04 -04:00
|
|
|
<pattern>com.carrotsearch.hppc</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.common.hppc</shadedPattern>
|
2011-12-06 06:41:49 -05:00
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>jsr166y</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.common.util.concurrent.jsr166y</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>jsr166e</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.common.util.concurrent.jsr166e</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.mvel2</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.common.mvel2</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
2012-07-10 19:18:59 -04:00
|
|
|
<pattern>com.fasterxml.jackson</pattern>
|
2011-12-06 06:41:49 -05:00
|
|
|
<shadedPattern>org.elasticsearch.common.jackson</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.joda</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.common.joda</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.jboss.netty</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.common.netty</shadedPattern>
|
|
|
|
</relocation>
|
2012-06-18 22:07:11 -04:00
|
|
|
<relocation>
|
|
|
|
<pattern>com.ning.compress</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.common.compress</shadedPattern>
|
|
|
|
</relocation>
|
2011-12-06 06:41:49 -05:00
|
|
|
</relocations>
|
|
|
|
<filters>
|
|
|
|
<filter>
|
|
|
|
<artifact>*:*</artifact>
|
|
|
|
<excludes>
|
2013-02-18 17:05:44 -05:00
|
|
|
<exclude>META-INF/license/**</exclude>
|
|
|
|
<exclude>META-INF/*</exclude>
|
|
|
|
<exclude>META-INF/maven/**</exclude>
|
2011-12-06 06:41:49 -05:00
|
|
|
<exclude>LICENSE</exclude>
|
|
|
|
<exclude>NOTICE</exclude>
|
|
|
|
<exclude>/*.txt</exclude>
|
|
|
|
<exclude>build.properties</exclude>
|
|
|
|
</excludes>
|
|
|
|
</filter>
|
|
|
|
</filters>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2012-06-26 10:45:29 -04:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
2013-11-27 10:23:45 -05:00
|
|
|
<version>2.6</version>
|
2012-06-26 10:45:29 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-resources</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.directory}/bin</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${basedir}/bin</directory>
|
|
|
|
<filtering>true</filtering>
|
2013-09-16 05:57:55 -04:00
|
|
|
<excludes>
|
|
|
|
<exclude>*.exe</exclude>
|
|
|
|
</excludes>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>${basedir}/bin</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
<includes>
|
|
|
|
<include>*.exe</include>
|
|
|
|
</includes>
|
2012-06-26 10:45:29 -04:00
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2011-12-06 06:41:49 -05:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
2013-11-27 10:24:45 -05:00
|
|
|
<version>2.4</version>
|
2011-12-06 06:41:49 -05:00
|
|
|
<configuration>
|
2012-02-26 03:06:18 -05:00
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
2012-02-08 02:45:40 -05:00
|
|
|
<outputDirectory>${project.build.directory}/releases/</outputDirectory>
|
2011-12-06 06:41:49 -05:00
|
|
|
<descriptors>
|
|
|
|
<descriptor>${basedir}/src/main/assemblies/targz-bin.xml</descriptor>
|
|
|
|
<descriptor>${basedir}/src/main/assemblies/zip-bin.xml</descriptor>
|
2012-02-08 02:45:40 -05:00
|
|
|
</descriptors>
|
2011-12-06 06:41:49 -05:00
|
|
|
</configuration>
|
2011-12-08 06:05:05 -05:00
|
|
|
<executions>
|
2011-12-08 06:40:09 -05:00
|
|
|
<execution>
|
2011-12-08 06:05:05 -05:00
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
2011-12-08 06:40:09 -05:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
2013-07-24 14:24:23 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
|
|
|
<version>1.2</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>create</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<doCheck>false</doCheck>
|
|
|
|
<doUpdate>false</doUpdate>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2011-12-08 03:48:00 -05:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
2013-11-27 10:25:49 -05:00
|
|
|
<version>2.8</version>
|
2011-12-08 03:48:00 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2011-12-08 06:05:05 -05:00
|
|
|
<phase>prepare-package</phase>
|
2011-12-08 03:48:00 -05:00
|
|
|
<goals>
|
|
|
|
<goal>copy-dependencies</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
2013-08-06 09:13:25 -04:00
|
|
|
<includeScope>runtime</includeScope>
|
2011-12-08 06:40:09 -05:00
|
|
|
</configuration>
|
2011-12-08 03:48:00 -05:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2012-02-08 02:45:40 -05:00
|
|
|
<plugin>
|
2012-02-08 02:31:41 -05:00
|
|
|
<!-- some infos https://github.com/tcurdt/jdeb/blob/master/docs/maven.md
|
2012-02-08 02:45:40 -05:00
|
|
|
-->
|
2011-12-08 03:48:00 -05:00
|
|
|
<artifactId>jdeb</artifactId>
|
|
|
|
<groupId>org.vafer</groupId>
|
2013-06-07 07:34:07 -04:00
|
|
|
<version>1.0.1</version>
|
2011-12-08 06:05:05 -05:00
|
|
|
<configuration>
|
2011-12-08 06:40:09 -05:00
|
|
|
<deb>${project.build.directory}/releases/${project.artifactId}-${project.version}.deb</deb>
|
|
|
|
</configuration>
|
2011-12-08 03:48:00 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jdeb</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2011-12-08 06:40:09 -05:00
|
|
|
<dataSet>
|
|
|
|
<data>
|
2011-12-08 03:48:00 -05:00
|
|
|
<src>${project.basedir}/</src>
|
|
|
|
<includes>*.txt, *.textile</includes>
|
2013-06-07 07:34:07 -04:00
|
|
|
<excludes>LICENSE.txt, .DS_Store</excludes>
|
2011-12-08 03:48:00 -05:00
|
|
|
<type>directory</type>
|
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
2011-12-08 06:40:09 -05:00
|
|
|
<prefix>/usr/share/elasticsearch</prefix>
|
2011-12-08 03:48:00 -05:00
|
|
|
<user>root</user>
|
|
|
|
<group>root</group>
|
|
|
|
</mapper>
|
2011-12-08 06:40:09 -05:00
|
|
|
</data>
|
|
|
|
<data>
|
2012-06-26 10:45:29 -04:00
|
|
|
<!-- use the filtered one from the resources plugin -->
|
|
|
|
<src>${project.build.directory}/bin</src>
|
2011-12-08 03:48:00 -05:00
|
|
|
<type>directory</type>
|
2013-09-16 05:57:55 -04:00
|
|
|
<excludes>*.bat, .DS_Store, *.exe</excludes>
|
2011-12-08 03:48:00 -05:00
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
2011-12-08 06:40:09 -05:00
|
|
|
<prefix>/usr/share/elasticsearch/bin</prefix>
|
2011-12-08 03:48:00 -05:00
|
|
|
<filemode>755</filemode>
|
|
|
|
<user>root</user>
|
|
|
|
<group>root</group>
|
2011-12-08 06:40:09 -05:00
|
|
|
</mapper>
|
|
|
|
</data>
|
|
|
|
<data>
|
2011-12-08 03:48:00 -05:00
|
|
|
<src>${project.build.directory}/</src>
|
2011-12-08 06:40:09 -05:00
|
|
|
<includes>${project.build.finalName}.jar</includes>
|
2011-12-08 03:48:00 -05:00
|
|
|
<type>directory</type>
|
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
|
|
|
<prefix>/usr/share/elasticsearch/lib</prefix>
|
|
|
|
<user>root</user>
|
|
|
|
<group>root</group>
|
|
|
|
</mapper>
|
2011-12-08 06:40:09 -05:00
|
|
|
</data>
|
2011-12-08 06:05:05 -05:00
|
|
|
<data>
|
2011-12-08 06:40:09 -05:00
|
|
|
<src>${project.basedir}/lib/sigar/</src>
|
|
|
|
<includes>sigar-*.jar, libsigar-*-linux.*</includes>
|
|
|
|
<type>directory</type>
|
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
|
|
|
<prefix>/usr/share/elasticsearch/lib/sigar</prefix>
|
|
|
|
<user>root</user>
|
|
|
|
<group>root</group>
|
|
|
|
</mapper>
|
|
|
|
</data>
|
2011-12-08 06:05:05 -05:00
|
|
|
<data>
|
2011-12-08 06:40:09 -05:00
|
|
|
<src>${project.build.directory}/lib</src>
|
2012-12-03 06:30:13 -05:00
|
|
|
<includes>lucene*, log4j*, jna*, spatial4j*, jts*</includes>
|
2011-12-08 03:48:00 -05:00
|
|
|
<type>directory</type>
|
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
|
|
|
<prefix>/usr/share/elasticsearch/lib</prefix>
|
|
|
|
<user>root</user>
|
|
|
|
<group>root</group>
|
|
|
|
</mapper>
|
2011-12-08 06:05:05 -05:00
|
|
|
</data>
|
2011-12-08 06:40:09 -05:00
|
|
|
<data>
|
2011-12-08 03:48:00 -05:00
|
|
|
<src>${project.basedir}/src/deb/default/</src>
|
|
|
|
<type>directory</type>
|
2012-06-11 15:06:52 -04:00
|
|
|
<excludes>.DS_Store</excludes>
|
2011-12-08 03:48:00 -05:00
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
2011-12-08 06:40:09 -05:00
|
|
|
<prefix>/etc/default</prefix>
|
2011-12-08 03:48:00 -05:00
|
|
|
<user>root</user>
|
|
|
|
<group>root</group>
|
|
|
|
</mapper>
|
2011-12-08 06:05:05 -05:00
|
|
|
</data>
|
2011-12-08 06:40:09 -05:00
|
|
|
<data>
|
2011-12-08 03:48:00 -05:00
|
|
|
<src>${project.basedir}/src/deb/init.d/</src>
|
|
|
|
<type>directory</type>
|
2012-06-11 15:06:52 -04:00
|
|
|
<excludes>.DS_Store</excludes>
|
2011-12-08 03:48:00 -05:00
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
|
|
|
<prefix>/etc/init.d</prefix>
|
|
|
|
<filemode>755</filemode>
|
|
|
|
<user>root</user>
|
|
|
|
<group>root</group>
|
|
|
|
</mapper>
|
2011-12-08 06:05:05 -05:00
|
|
|
</data>
|
2011-12-08 06:40:09 -05:00
|
|
|
<data>
|
2011-12-08 03:48:00 -05:00
|
|
|
<src>${project.basedir}/config</src>
|
|
|
|
<type>directory</type>
|
2012-06-11 15:06:52 -04:00
|
|
|
<excludes>.DS_Store</excludes>
|
2011-12-08 03:48:00 -05:00
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
2011-12-08 06:40:09 -05:00
|
|
|
<prefix>/etc/elasticsearch</prefix>
|
2011-12-08 03:48:00 -05:00
|
|
|
<user>root</user>
|
|
|
|
<group>root</group>
|
|
|
|
</mapper>
|
2011-12-08 06:40:09 -05:00
|
|
|
</data>
|
2013-06-07 07:34:07 -04:00
|
|
|
<data>
|
|
|
|
<src>${project.basedir}/src/deb/lintian</src>
|
|
|
|
<type>directory</type>
|
|
|
|
<excludes>.DS_Store</excludes>
|
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
|
|
|
<prefix>/usr/share/lintian/overrides</prefix>
|
|
|
|
<user>root</user>
|
|
|
|
<group>root</group>
|
|
|
|
</mapper>
|
|
|
|
</data>
|
|
|
|
<data>
|
|
|
|
<src>${project.basedir}/src/deb/copyright</src>
|
|
|
|
<dst>/usr/share/doc/elasticsearch/copyright</dst>
|
|
|
|
<type>file</type>
|
|
|
|
</data>
|
2011-12-08 06:40:09 -05:00
|
|
|
</dataSet>
|
2011-12-08 03:48:00 -05:00
|
|
|
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2012-02-08 02:45:40 -05:00
|
|
|
</plugin>
|
2013-03-11 03:54:24 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>rpm-maven-plugin</artifactId>
|
2013-11-27 10:28:25 -05:00
|
|
|
<version>2.1-alpha-3</version>
|
2013-03-11 03:54:24 -04:00
|
|
|
<configuration>
|
|
|
|
<copyright>2013, Elasticsearch</copyright>
|
|
|
|
<distribution>Elasticsearch</distribution>
|
|
|
|
<group>Application/Internet</group>
|
|
|
|
<packager>Elasticsearch</packager>
|
|
|
|
<prefix>/usr</prefix>
|
|
|
|
<changelogFile>src/changelog</changelogFile>
|
|
|
|
<defineStatements>
|
2013-04-08 08:46:26 -04:00
|
|
|
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
|
|
|
|
<defineStatement>_binaries_in_noarch_packages_terminate_build 0</defineStatement>
|
2013-03-11 03:54:24 -04:00
|
|
|
</defineStatements>
|
|
|
|
<defaultFilemode>644</defaultFilemode>
|
|
|
|
<defaultDirmode>755</defaultDirmode>
|
|
|
|
<defaultUsername>root</defaultUsername>
|
|
|
|
<defaultGroupname>root</defaultGroupname>
|
|
|
|
<mappings>
|
2013-04-08 08:46:26 -04:00
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/etc/elasticsearch/</directory>
|
2013-05-31 10:18:32 -04:00
|
|
|
<configuration>noreplace</configuration>
|
2013-03-11 03:54:24 -04:00
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<location>config/</location>
|
|
|
|
<includes>
|
|
|
|
<include>*.yml</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</sources>
|
2013-04-08 08:46:26 -04:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/etc/sysconfig/</directory>
|
2013-05-31 10:18:32 -04:00
|
|
|
<configuration>noreplace</configuration>
|
2013-03-11 03:54:24 -04:00
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<location>src/rpm/sysconfig</location>
|
|
|
|
<includes>
|
|
|
|
<include>elasticsearch</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</sources>
|
2013-04-08 08:46:26 -04:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/etc/rc.d/init.d/</directory>
|
|
|
|
<filemode>755</filemode>
|
|
|
|
<configuration>true</configuration>
|
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<location>src/rpm/init.d/elasticsearch</location>
|
|
|
|
</source>
|
|
|
|
</sources>
|
2013-04-08 08:46:26 -04:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/etc/systemd/system/</directory>
|
|
|
|
<filemode>755</filemode>
|
|
|
|
<configuration>true</configuration>
|
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<location>src/rpm/systemd</location>
|
|
|
|
<includes>
|
|
|
|
<include>elasticsearch.service</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</sources>
|
2013-12-11 03:19:22 -05:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
|
|
|
<directory>/usr/lib/sysctl.d/</directory>
|
|
|
|
<filemode>755</filemode>
|
|
|
|
<configuration>true</configuration>
|
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<location>src/rpm/systemd/sysctl.d</location>
|
|
|
|
<includes>
|
|
|
|
<include>elasticsearch.conf</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</sources>
|
2013-04-08 08:46:26 -04:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/etc/tmpfiles.d/</directory>
|
|
|
|
<configuration>true</configuration>
|
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<location>src/rpm/systemd/</location>
|
|
|
|
<includes>
|
|
|
|
<include>elasticsearch.conf</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</sources>
|
2013-04-08 08:46:26 -04:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/var/run/elasticsearch/</directory>
|
|
|
|
<filemode>755</filemode>
|
|
|
|
<username>elasticsearch</username>
|
|
|
|
<groupname>elasticsearch</groupname>
|
2013-04-08 08:46:26 -04:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/var/lib/elasticsearch/</directory>
|
|
|
|
<filemode>755</filemode>
|
|
|
|
<username>elasticsearch</username>
|
|
|
|
<groupname>elasticsearch</groupname>
|
2013-04-08 08:46:26 -04:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/var/log/elasticsearch/</directory>
|
|
|
|
<filemode>755</filemode>
|
|
|
|
<username>elasticsearch</username>
|
|
|
|
<groupname>elasticsearch</groupname>
|
2013-04-08 08:46:26 -04:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/usr/share/elasticsearch/bin/</directory>
|
|
|
|
<filemode>755</filemode>
|
|
|
|
<sources>
|
2013-04-08 08:46:26 -04:00
|
|
|
<source>
|
|
|
|
<location>target/bin</location>
|
|
|
|
<includes>
|
|
|
|
<include>elasticsearch</include>
|
|
|
|
<include>elasticsearch.in.sh</include>
|
|
|
|
<include>plugin</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
2013-03-11 03:54:24 -04:00
|
|
|
</sources>
|
|
|
|
</mapping>
|
|
|
|
<mapping>
|
|
|
|
<directory>/usr/share/elasticsearch/lib</directory>
|
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<location>target/lib/</location>
|
|
|
|
<includes>
|
|
|
|
<include>lucene*</include>
|
|
|
|
<include>log4j*</include>
|
|
|
|
<include>jna*</include>
|
|
|
|
<include>spatial4j*</include>
|
|
|
|
<include>jts*</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
<source>
|
|
|
|
<location>${project.build.directory}/</location>
|
|
|
|
<includes>
|
|
|
|
<include>${project.build.finalName}.jar</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</sources>
|
2013-04-08 08:46:26 -04:00
|
|
|
</mapping>
|
|
|
|
<mapping>
|
2013-03-11 03:54:24 -04:00
|
|
|
<directory>/usr/share/elasticsearch/lib/sigar</directory>
|
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<location>lib/sigar</location>
|
|
|
|
<includes>
|
2013-04-08 08:46:26 -04:00
|
|
|
<include>sigar*.jar</include>
|
|
|
|
<include>libsigar-*-linux.*</include>
|
2013-03-11 03:54:24 -04:00
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</sources>
|
|
|
|
</mapping>
|
|
|
|
<mapping>
|
|
|
|
<directory>/usr/share/elasticsearch/</directory>
|
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<location>.</location>
|
|
|
|
<includes>
|
|
|
|
<include>LICENSE.txt</include>
|
|
|
|
<include>NOTICE.txt</include>
|
|
|
|
<include>README.textile</include>
|
|
|
|
</includes>
|
|
|
|
</source>
|
|
|
|
</sources>
|
|
|
|
</mapping>
|
|
|
|
</mappings>
|
|
|
|
<preinstallScriptlet>
|
|
|
|
<scriptFile>src/rpm/scripts/preinstall</scriptFile>
|
|
|
|
<fileEncoding>utf-8</fileEncoding>
|
|
|
|
</preinstallScriptlet>
|
|
|
|
<postinstallScriptlet>
|
|
|
|
<scriptFile>src/rpm/scripts/postinstall</scriptFile>
|
|
|
|
<fileEncoding>utf-8</fileEncoding>
|
|
|
|
</postinstallScriptlet>
|
|
|
|
<preremoveScriptlet>
|
|
|
|
<scriptFile>src/rpm/scripts/preremove</scriptFile>
|
|
|
|
<fileEncoding>utf-8</fileEncoding>
|
|
|
|
</preremoveScriptlet>
|
|
|
|
<postremoveScriptlet>
|
|
|
|
<scriptFile>src/rpm/scripts/postremove</scriptFile>
|
|
|
|
<fileEncoding>utf-8</fileEncoding>
|
|
|
|
</postremoveScriptlet>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-06-11 14:35:27 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>de.thetaphi</groupId>
|
|
|
|
<artifactId>forbiddenapis</artifactId>
|
2013-11-22 02:01:09 -05:00
|
|
|
<version>1.4</version>
|
2013-06-11 14:35:27 -04:00
|
|
|
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>check-forbidden-apis</id>
|
|
|
|
<configuration>
|
|
|
|
<targetVersion>1.6</targetVersion>
|
|
|
|
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
|
|
|
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
|
|
|
<!-- if the used Java version is too new, don't fail, just do nothing: -->
|
|
|
|
<failOnUnsupportedJava>false</failOnUnsupportedJava>
|
|
|
|
<excludes>
|
|
|
|
<exclude>jsr166e/**</exclude>
|
|
|
|
<exclude>jsr166y/**</exclude>
|
2013-07-26 12:57:21 -04:00
|
|
|
<!-- start excludes for valid system-out -->
|
2013-06-11 14:35:27 -04:00
|
|
|
<exclude>org/elasticsearch/common/logging/log4j/ConsoleAppender*</exclude>
|
|
|
|
<exclude>org/elasticsearch/plugins/PluginManager.class</exclude>
|
|
|
|
<exclude>org/elasticsearch/bootstrap/Bootstrap.class</exclude>
|
2013-07-26 12:57:21 -04:00
|
|
|
<exclude>org/elasticsearch/Version.class</exclude>
|
|
|
|
<!-- end excludes for valid system-out -->
|
2013-12-03 10:02:31 -05:00
|
|
|
<!-- start excludes for Unsafe -->
|
|
|
|
<exclude>org/elasticsearch/common/util/UnsafeUtils.class</exclude>
|
|
|
|
<!-- end excludes for Unsafe -->
|
2013-06-11 14:35:27 -04:00
|
|
|
</excludes>
|
|
|
|
<bundledSignatures>
|
|
|
|
<!-- This will automatically choose the right signatures based on 'maven.compiler.target': -->
|
|
|
|
<bundledSignature>jdk-unsafe</bundledSignature>
|
|
|
|
<bundledSignature>jdk-deprecated</bundledSignature>
|
2013-07-26 12:57:21 -04:00
|
|
|
<bundledSignaure>jdk-system-out</bundledSignaure>
|
2013-06-11 14:35:27 -04:00
|
|
|
</bundledSignatures>
|
|
|
|
<signaturesFiles>
|
|
|
|
<signaturesFile>core-signatures.txt</signaturesFile>
|
|
|
|
</signaturesFiles>
|
|
|
|
</configuration>
|
2013-06-28 07:12:52 -04:00
|
|
|
<phase>compile</phase>
|
2013-06-11 14:35:27 -04:00
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>check-forbidden-test-apis</id>
|
|
|
|
<configuration>
|
|
|
|
<targetVersion>1.6</targetVersion>
|
|
|
|
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
|
|
|
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
|
|
|
<!-- if the used Java version is too new, don't fail, just do nothing: -->
|
|
|
|
<failOnUnsupportedJava>false</failOnUnsupportedJava>
|
|
|
|
<bundledSignatures>
|
|
|
|
<!-- This will automatically choose the right signatures based on 'maven.compiler.target': -->
|
|
|
|
<bundledSignature>jdk-unsafe</bundledSignature>
|
|
|
|
<bundledSignature>jdk-deprecated</bundledSignature>
|
|
|
|
</bundledSignatures>
|
|
|
|
</configuration>
|
2013-06-28 07:12:52 -04:00
|
|
|
<phase>test-compile</phase>
|
2013-06-11 14:35:27 -04:00
|
|
|
<goals>
|
|
|
|
<goal>testCheck</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2013-09-27 08:38:50 -04:00
|
|
|
<plugin>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<version>1.2.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>Java Version</id>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
2013-12-07 09:41:51 -05:00
|
|
|
<configuration>
|
|
|
|
<executable>java</executable>
|
|
|
|
<arguments>
|
|
|
|
<argument>-version</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
2013-09-27 08:38:50 -04:00
|
|
|
</execution>
|
|
|
|
</executions>
|
2013-12-07 09:41:51 -05:00
|
|
|
|
2013-09-27 08:38:50 -04:00
|
|
|
</plugin>
|
2013-11-08 04:51:26 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
2013-11-27 10:30:16 -05:00
|
|
|
<version>2.4</version>
|
2013-11-08 04:51:26 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2013-11-20 15:45:25 -05:00
|
|
|
<phase>prepare-package</phase>
|
2013-11-08 04:51:26 -05:00
|
|
|
<goals>
|
|
|
|
<goal>test-jar</goal>
|
|
|
|
</goals>
|
2013-11-08 17:14:56 -05:00
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>org/elasticsearch/test/**/*</include>
|
2013-11-11 12:07:18 -05:00
|
|
|
<include>org/apache/lucene/util/AbstractRandomizedTest.class</include>
|
2013-11-14 07:49:37 -05:00
|
|
|
<include>org/apache/lucene/util/AbstractRandomizedTest$*.class</include> <!-- inner classes -->
|
2013-12-07 09:41:51 -05:00
|
|
|
<include>com/carrotsearch/randomizedtesting/StandaloneRandomizedContext.class</include>
|
2013-11-08 17:14:56 -05:00
|
|
|
</includes>
|
2013-12-07 09:41:51 -05:00
|
|
|
<excludes>
|
|
|
|
<!-- we only distribute the REST tests runner, not the executable test -->
|
|
|
|
<exclude>org/elasticsearch/test/rest/ElasticsearchRestTests.class</exclude>
|
|
|
|
<!-- unit tests for yaml suite parser & rest spec parser need to be excluded -->
|
|
|
|
<exclude>org/elasticsearch/test/rest/test/**/*</exclude>
|
|
|
|
</excludes>
|
2013-11-08 17:14:56 -05:00
|
|
|
</configuration>
|
2013-11-08 04:51:26 -05:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2011-12-05 18:05:44 -05:00
|
|
|
</plugins>
|
2013-01-02 07:14:34 -05:00
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<!-- make m2e stfu -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.eclipse.m2e</groupId>
|
|
|
|
<artifactId>lifecycle-mapping</artifactId>
|
|
|
|
<version>1.0.0</version>
|
|
|
|
<configuration>
|
|
|
|
<lifecycleMappingMetadata>
|
|
|
|
<pluginExecutions>
|
|
|
|
<!-- copy-dependency plugin -->
|
|
|
|
<pluginExecution>
|
|
|
|
<pluginExecutionFilter>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<versionRange>[1.0.0,)</versionRange>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-dependencies</goal>
|
|
|
|
</goals>
|
|
|
|
</pluginExecutionFilter>
|
|
|
|
<action>
|
2013-11-06 15:49:21 -05:00
|
|
|
<execute />
|
|
|
|
</action>
|
|
|
|
</pluginExecution>
|
|
|
|
<!-- forbidden-apis plugin -->
|
|
|
|
<pluginExecution>
|
|
|
|
<pluginExecutionFilter>
|
|
|
|
<groupId>de.thetaphi</groupId>
|
|
|
|
<artifactId>forbiddenapis</artifactId>
|
|
|
|
<versionRange>[1.0.0,)</versionRange>
|
|
|
|
<goals>
|
|
|
|
<goal>testCheck</goal>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</pluginExecutionFilter>
|
|
|
|
<action>
|
|
|
|
<execute />
|
|
|
|
</action>
|
|
|
|
</pluginExecution>
|
|
|
|
<!-- exec-maven plugin -->
|
|
|
|
<pluginExecution>
|
|
|
|
<pluginExecutionFilter>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<versionRange>[1.0.0,)</versionRange>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
</pluginExecutionFilter>
|
|
|
|
<action>
|
|
|
|
<execute />
|
|
|
|
</action>
|
|
|
|
</pluginExecution>
|
|
|
|
<!-- copy-dependency plugin -->
|
|
|
|
<pluginExecution>
|
|
|
|
<pluginExecutionFilter>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<versionRange>[1.0.0,)</versionRange>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
</pluginExecutionFilter>
|
|
|
|
<action>
|
|
|
|
<execute />
|
2013-01-02 07:14:34 -05:00
|
|
|
</action>
|
|
|
|
</pluginExecution>
|
|
|
|
</pluginExecutions>
|
|
|
|
</lifecycleMappingMetadata>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-08-29 04:26:06 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-eclipse-plugin</artifactId>
|
2013-11-27 10:32:11 -05:00
|
|
|
<version>2.9</version>
|
2013-08-29 04:26:06 -04:00
|
|
|
<configuration>
|
2013-09-16 03:13:42 -04:00
|
|
|
<buildOutputDirectory>eclipse-build</buildOutputDirectory>
|
2013-08-29 04:26:06 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-01-02 07:14:34 -05:00
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
2011-12-05 18:05:44 -05:00
|
|
|
</build>
|
2013-01-22 06:21:37 -05:00
|
|
|
</project>
|