Skip to content

Commit

Permalink
fix(samples): re-add maven exec config for Quickstart sample (#347)
Browse files Browse the repository at this point in the history
copied from original implementation in GoogleCloudPlatform/java-docs-samples#1523
  • Loading branch information
BenWhitehead committed Aug 27, 2020
1 parent ecf52a8 commit 4c2329b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions samples/snippets/pom.xml
Expand Up @@ -21,6 +21,9 @@
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Define a default empty value property which can be overridden on the command line if
necessary by passing `-Dfirestore.project.id="some-id"` when running maven exec -->
<firestore.project.id/>
</properties>


Expand Down Expand Up @@ -57,4 +60,30 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>com.example.firestore.Quickstart</argument>
<argument>${firestore.project.id}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 4c2329b

Please sign in to comment.