HBASE-18667 Add @Generated to protobuf classes
This commit is contained in:
parent
e7b4f6046a
commit
883c3584b8
|
@ -122,6 +122,15 @@
|
|||
<token>([^\.])com.google.protobuf</token>
|
||||
<value>$1org.apache.hadoop.hbase.shaded.com.google.protobuf</value>
|
||||
</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>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
@ -82,6 +82,36 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</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>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
|
|
Loading…
Reference in New Issue