From 804949ccc9b092729c204feb96f6be2f0b8560ea Mon Sep 17 00:00:00 2001 From: zhangduo Date: Wed, 27 Mar 2019 22:03:59 +0800 Subject: [PATCH] HBASE-22098 Backport HBASE-18667 "Disable error-prone for hbase-protocol-shaded" to branch-2 Signed-off-by: Michael Stack --- hbase-protocol-shaded/pom.xml | 9 +++++++++ hbase-protocol/pom.xml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/hbase-protocol-shaded/pom.xml b/hbase-protocol-shaded/pom.xml index 69606683725..8f7b8f14622 100644 --- a/hbase-protocol-shaded/pom.xml +++ b/hbase-protocol-shaded/pom.xml @@ -127,6 +127,15 @@ ([^\.])com.google.protobuf $1org.apache.hbase.thirdparty.com.google.protobuf + + (public)(\W+static)?(\W+final)?(\W+class) + @javax.annotation.Generated("proto") $1$2$3$4 + + + + (@javax.annotation.Generated\("proto"\) ){2} + $1 + diff --git a/hbase-protocol/pom.xml b/hbase-protocol/pom.xml index bc4eeb437ff..03f5fada9d6 100644 --- a/hbase-protocol/pom.xml +++ b/hbase-protocol/pom.xml @@ -79,6 +79,36 @@ net.revelc.code warbucks-maven-plugin + + com.google.code.maven-replacer-plugin + replacer + 1.5.3 + + + generate-sources + + replace + + + + + ${basedir}/target/generated-sources/ + + **/*.java + + + + (public)(\W+static)?(\W+final)?(\W+class) + @javax.annotation.Generated("proto") $1$2$3$4 + + + + (@javax.annotation.Generated\("proto"\) ){2} + $1 + + + +