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 + + + +