diff --git a/README.md b/README.md
index 6366e91..6834133 100644
--- a/README.md
+++ b/README.md
@@ -4,26 +4,11 @@ Servlet Transport for Elasticsearch
The wares transport plugin allows to use the REST interface over servlets. You don't really install this plugin,
but instead use the jar file in addition to elasticsearch itself in your web app using the maven repo:
-```xml
-
- org.elasticsearch
- elasticsearch-transport-wares
- 2.0.0.RC1
-
-```
-
-* For master elasticsearch versions, look at [master branch](https://github.com/elasticsearch/elasticsearch-transport-wares/tree/master).
-* For 0.90.x elasticsearch versions, look at [es-0.90 branch](https://github.com/elasticsearch/elasticsearch-transport-wares/tree/es-0.90).
-
-| Wares Transport Plugin | elasticsearch | Release date |
-|-----------------------------|-----------------------|:------------:|
-| 2.0.0-SNAPSHOT | 1.0.0.RC1 -> master | XXXX-XX-XX |
-| 2.0.0.RC1 | 1.0.0.RC1 -> master | 2014-10-15 |
+## Version 2.7.1-SNAPSHOT for Elasticsearch: 1.7
-Please read documentation relative to the version you are using:
+If you are looking for another version documentation, please refer to the
+[compatibility matrix](http://github.com/elastic/elasticsearch-transport-wares).
-* [2.0.0-SNAPSHOT](https://github.com/elasticsearch/elasticsearch-transport-wares/blob/master/README.md)
-* [2.0.0.RC1](https://github.com/elasticsearch/elasticsearch-transport-wares/tree/v2.2.0.RC1/README.md)
Tomcat configuration (CORS filter)
----------------------------------
@@ -41,6 +26,14 @@ The [Tomcat configuration](http://tomcat.apache.org/tomcat-7.0-doc/config/filter
```
+Node resource
+-------------
+
+The node is registered as a servlet context attribute under `elasticsearchNode` so it is easily accessible from other web resources if needed.
+
+You can also preregister your own node using `elasticsearchNode` servlet context attribute. It will be used by the NodeServlet.
+
+
License
-------
diff --git a/dev-tools/build_release.py b/dev-tools/build_release.py
index 27a4652..9271886 100755
--- a/dev-tools/build_release.py
+++ b/dev-tools/build_release.py
@@ -63,7 +63,7 @@
(see https://github.com/settings/applications#personal-access-tokens) - Optional: default to no authentication
- SMTP_HOST - Optional: default to localhost
- MAIL_SENDER - Optional: default to 'david@pilato.fr': must be authorized to send emails to elasticsearch mailing list
- - MAIL_TO - Optional: default to 'elasticsearch@googlegroups.com'
+ - MAIL_TO - Optional: default to 'discuss+announcements@elastic.co'
"""
env = os.environ
@@ -289,14 +289,27 @@ def find_release_version(src_branch):
return match.group(1)
raise RuntimeError('Could not find release version in branch %s' % src_branch)
-# extract a value from pom.xml
-def find_from_pom(tag):
+# extract a value from pom.xml after a given line
+def find_from_pom(tag, first_line=None):
with open(POM_FILE, encoding='utf-8') as file:
+ previous_line_matched = False
+ if first_line is None:
+ previous_line_matched = True
for line in file:
- match = re.search(r'<%s>(.+)%s>' % (tag, tag), line)
- if match:
- return match.group(1)
- raise RuntimeError('Could not find <%s> in pom.xml file' % (tag))
+ if previous_line_matched:
+ match = re.search(r'<%s>(.+)%s>' % (tag, tag), line)
+ if match:
+ return match.group(1)
+
+ if first_line is not None:
+ match = re.search(r'%s' % first_line, line)
+ if match:
+ previous_line_matched = True
+
+ if first_line is not None:
+ raise RuntimeError('Could not find %s in pom.xml file after %s' % (tag, first_line))
+ else:
+ raise RuntimeError('Could not find %s in pom.xml file' % tag)
def get_artifacts(artifact_id, release):
artifact_path = ROOT_DIR + 'target/releases/%s-%s.zip' % (artifact_id, release)
@@ -380,13 +393,13 @@ def get_github_repository(reponame,
else:
g = github3.GitHub()
- return g.repository("elasticsearch", reponame)
+ return g.repository("elastic", reponame)
# Check if there are some remaining open issues and fails
def check_opened_issues(version, repository, reponame):
opened_issues = [i for i in repository.iter_issues(state='open', labels='%s' % version)]
if len(opened_issues)>0:
- raise NameError('Some issues [%s] are still opened. Check https://github.com/elasticsearch/%s/issues?labels=%s&state=open'
+ raise NameError('Some issues [%s] are still opened. Check https://github.com/elastic/%s/issues?labels=%s&state=open'
% (len(opened_issues), reponame, version))
# List issues from github: can be done anonymously if you don't
@@ -453,8 +466,7 @@ def prepare_email(artifact_id, release_version, repository,
%(issues_new)s
%(issues_doc)s
-Issues, Pull requests, Feature requests are warmly welcome on %(artifact_id)s project repository: %(project_url)s
-For questions or comments around this plugin, feel free to use elasticsearch mailing list: https://groups.google.com/forum/#!forum/elasticsearch
+For questions or comments around this plugin, feel free to use elasticsearch mailing list: https://discuss.elastic.co/c/elasticsearch
Enjoy,
@@ -486,14 +498,12 @@ def prepare_email(artifact_id, release_version, repository,
%(issues_new)s
%(issues_doc)s
-
Issues, Pull requests, Feature requests are warmly welcome on
-%(artifact_id)s project repository!
For questions or comments around this plugin, feel free to use elasticsearch
-mailing list!
+mailing list!
Enjoy,
-- The Elasticsearch team
+- The Elastic team