protobuf-java-format-shaded
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.google.cloud.bigtable</groupId> <artifactId>protobuf-java-format-shaded</artifactId> <version>0.10.2</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <artifactId>bigtable-hbase-mirroring-client-core-parent</artifactId> <groupId>com.google.cloud.bigtable</groupId> <version>0.10.2</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>protobuf-java-format-shaded</artifactId> <version>0.10.2</version> <description>This is a wrapper around `com.googlecode.protobuf-java-format:protobuf-java-format` that rewrites the bytecode to use `org.apache.hadoop.hbase.shaded.com.google.protobuf` instead of plain `com.google.protobuf` for compatibility with `hbase-shaded-client`. Classes using shaded protobufs are exposed in `com.google.bigtable.hbase.mirroring.shaded.com.googlecode.protobuf.format` package.</description> <build> <plugins> <plugin> <artifactId>maven-shade-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <shadedArtifactAttached>false</shadedArtifactAttached> <createDependencyReducedPom>true</createDependencyReducedPom> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/MANIFEST.MF</exclude> <exclude>com/google/cloud/bigtable/mirroring/protobuf_java_format_shaded/MavenPlaceholderProtobufJavaFormatShaded.class</exclude> </excludes> </filter> </filters> <relocations> <relocation> <pattern>com.google.protobuf</pattern> <shadedPattern>${hbase-shading-prefix}.com.google.protobuf</shadedPattern> </relocation> <relocation> <pattern>com.googlecode.protobuf.format</pattern> <shadedPattern>${shading-prefix}.com.googlecode.protobuf.format</shadedPattern> </relocation> </relocations> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.google.cloud.bigtable.test</groupId> <artifactId>bigtable-build-helper</artifactId> <version>2.15.2</version> <executions> <execution> <id>verify-shaded-jar-entries</id> <phase>verify</phase> <goals> <goal>verify-shaded-jar-entries</goal> </goals> <configuration> <allowedJarClassEntries> <classEntry>${shading-prefix-path}/com/googlecode/protobuf/format</classEntry> </allowedJarClassEntries> </configuration> </execution> </executions> </plugin> </plugins> </build> <properties> <hbase-shading-prefix-path>org/apache/hadoop/hbase/shaded</hbase-shading-prefix-path> <shading-prefix-path>com/google/bigtable/hbase/mirroring/shaded</shading-prefix-path> <hbase-shading-prefix>org.apache.hadoop.hbase.shaded</hbase-shading-prefix> <shading-prefix>com.google.bigtable.hbase.mirroring.shaded</shading-prefix> </properties> </project>