From a556c9234d6c995a6e006644a3b88f24f16ad7ff Mon Sep 17 00:00:00 2001 From: "drew.dahlke" Date: Tue, 4 Aug 2015 15:07:09 -0400 Subject: [PATCH] setting up to deploy to sonatype --- pom.xml | 63 +++++++++++++++++++ .../index/analysis/PhoneTokenizer.java | 2 +- 2 files changed, 64 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 44f155e..154b8c8 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,15 @@ oss-sonatype https://oss.sonatype.org/content/groups/public + + central + Maven Repository Switchboard + default + http://repo1.maven.org/maven2 + + false + + @@ -135,6 +144,30 @@ + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.3 + true + + ossrh + https://oss.sonatype.org/ + true + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + org.apache.maven.plugins maven-compiler-plugin @@ -152,6 +185,36 @@ org.apache.maven.plugins maven-source-plugin + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + gpg + + + + sign-artifacts + verify + + sign + + + + maven-assembly-plugin 2.3 diff --git a/src/main/java/org/elasticsearch/index/analysis/PhoneTokenizer.java b/src/main/java/org/elasticsearch/index/analysis/PhoneTokenizer.java index aadf9a3..2bfdfb0 100644 --- a/src/main/java/org/elasticsearch/index/analysis/PhoneTokenizer.java +++ b/src/main/java/org/elasticsearch/index/analysis/PhoneTokenizer.java @@ -99,7 +99,7 @@ private void generateTokens() { PhoneNumber numberProto = null; String countryCode = null; try{ - // ZZ is the generic "I don't know the country code" region. Wish we got country code from our edge, but we don't currently. + // ZZ is the generic "I don't know the country code" region. Google's libphone library will try to infer it. numberProto = phoneUtil.parse(number, "ZZ"); if(numberProto != null) { // Libphone likes it!