HBASE-22098 Backport HBASE-18667 "Disable error-prone for hbase-protocol-shaded" to branch-2
Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
parent
dddebe5ad6
commit
973c0cf293
|
@ -127,6 +127,15 @@
|
||||||
<token>([^\.])com.google.protobuf</token>
|
<token>([^\.])com.google.protobuf</token>
|
||||||
<value>$1org.apache.hbase.thirdparty.com.google.protobuf</value>
|
<value>$1org.apache.hbase.thirdparty.com.google.protobuf</value>
|
||||||
</replacement>
|
</replacement>
|
||||||
|
<replacement>
|
||||||
|
<token>(public)(\W+static)?(\W+final)?(\W+class)</token>
|
||||||
|
<value>@javax.annotation.Generated("proto") $1$2$3$4</value>
|
||||||
|
</replacement>
|
||||||
|
<!-- replacer doesn't support anchoring or negative lookbehind -->
|
||||||
|
<replacement>
|
||||||
|
<token>(@javax.annotation.Generated\("proto"\) ){2}</token>
|
||||||
|
<value>$1</value>
|
||||||
|
</replacement>
|
||||||
</replacements>
|
</replacements>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -79,6 +79,36 @@
|
||||||
<groupId>net.revelc.code</groupId>
|
<groupId>net.revelc.code</groupId>
|
||||||
<artifactId>warbucks-maven-plugin</artifactId>
|
<artifactId>warbucks-maven-plugin</artifactId>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
||||||
|
<artifactId>replacer</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>replace</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<basedir>${basedir}/target/generated-sources/</basedir>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.java</include>
|
||||||
|
</includes>
|
||||||
|
<replacements>
|
||||||
|
<replacement>
|
||||||
|
<token>(public)(\W+static)?(\W+final)?(\W+class)</token>
|
||||||
|
<value>@javax.annotation.Generated("proto") $1$2$3$4</value>
|
||||||
|
</replacement>
|
||||||
|
<!-- replacer doesn't support anchoring or negative lookbehind -->
|
||||||
|
<replacement>
|
||||||
|
<token>(@javax.annotation.Generated\("proto"\) ){2}</token>
|
||||||
|
<value>$1</value>
|
||||||
|
</replacement>
|
||||||
|
</replacements>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
Loading…
Reference in New Issue