This repository was archived by the owner on May 8, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/resources/com/example/bigtable Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949
5050 <!-- compile and run all snippet tests -->
5151 <build >
52+ <resources >
53+ <resource >
54+ <directory >../snippets/src/main/resources</directory >
55+ </resource >
56+ </resources >
5257 <plugins >
5358 <plugin >
5459 <groupId >org.codehaus.mojo</groupId >
Original file line number Diff line number Diff line change 4848
4949 <!-- compile and run all snippet tests -->
5050 <build >
51+ <resources >
52+ <resource >
53+ <directory >../snippets/src/main/resources</directory >
54+ </resource >
55+ </resources >
5156 <plugins >
5257 <plugin >
5358 <groupId >org.codehaus.mojo</groupId >
Original file line number Diff line number Diff line change 11<?xml version =' 1.0' encoding =' UTF-8' ?>
2- <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/xsd/maven-4.0.0.xsd" >
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
35 <modelVersion >4.0.0</modelVersion >
46 <groupId >com.google.cloud</groupId >
57 <artifactId >google-cloud-bigtable-snippets</artifactId >
5658 <scope >test</scope >
5759 </dependency >
5860 </dependencies >
61+
62+ <build >
63+ <plugins >
64+ <plugin >
65+ <groupId >org.apache.maven.plugins</groupId >
66+ <artifactId >maven-checkstyle-plugin</artifactId >
67+ <version >3.3.1</version >
68+ <configuration >
69+ <!-- exclude protoc generated file from checkstyle validation -->
70+ <excludes >**/SingerProto.java</excludes >
71+ </configuration >
72+ </plugin >
73+ </plugins >
74+ </build >
5975</project >
Original file line number Diff line number Diff line change 11#### To generate SingerProto.java and descriptors.pb file from singer.proto using ` protoc `
22``` shell
33cd samples/snippets/src/main/resources/
4- protoc --proto_path=com/example/bigtable/ --include_imports --descriptor_set_out=com/example/bigtable/descriptors.pb
5- --java_out=. com/example/bigtable/singer.proto
4+ protoc --proto_path=com/example/bigtable/ --include_imports --descriptor_set_out=com/example/bigtable/descriptors.pb \
5+ --java_out=. com/example/bigtable/singer.proto
66```
You can’t perform that action at this time.
0 commit comments