File tree Expand file tree Collapse file tree
sdk-platform-java/gapic-generator-java
src/main/proto/gapic/metadata Expand file tree Collapse file tree Original file line number Diff line number Diff line change 121121 </configuration >
122122 </plugin >
123123
124+ <plugin >
125+ <groupId >com.googlecode.maven-download-plugin</groupId >
126+ <artifactId >download-maven-plugin</artifactId >
127+ <version >1.6.8</version >
128+ <executions >
129+ <execution >
130+ <id >download-metadata-proto</id >
131+ <phase >generate-sources</phase >
132+ <goals >
133+ <goal >wget</goal >
134+ </goals >
135+ <configuration >
136+ <url >
137+ https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit} /gapic/metadata/gapic_metadata.proto
138+ </url >
139+ <outputDirectory >target/generated-sources/proto</outputDirectory >
140+ <skipCache >true</skipCache >
141+ <overwrite >true</overwrite >
142+ </configuration >
143+ </execution >
144+ </executions >
145+ </plugin >
146+
124147 <plugin >
125148 <groupId >org.xolstice.maven.plugins</groupId >
126149 <artifactId >protobuf-maven-plugin</artifactId >
140163 <protoSourceRoot >src/main/proto</protoSourceRoot >
141164 </configuration >
142165 </execution >
166+ <execution >
167+ <id >compile-downloaded-protos</id >
168+ <goals >
169+ <goal >compile</goal >
170+ </goals >
171+ <configuration >
172+ <protoSourceRoot >target/generated-sources/proto</protoSourceRoot >
173+ <clearOutputDirectory >false</clearOutputDirectory >
174+ </configuration >
175+ </execution >
143176 <execution >
144177 <id >compile-test-protos</id >
145178 <goals >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments