From 865bf011093341382a2c70f5530e9f7ef58b2d5a Mon Sep 17 00:00:00 2001 From: Elena Felder <41136058+elefeint@users.noreply.github.com> Date: Tue, 23 Mar 2021 23:47:31 -0400 Subject: [PATCH] fix: update link and directory (#1012) --- samples/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/README.md b/samples/README.md index 8f3cad9254..6df90704ed 100644 --- a/samples/README.md +++ b/samples/README.md @@ -1,6 +1,6 @@ # Getting Started with Cloud Spanner and the Google Cloud Client libraries - + Open in Cloud Shell [Cloud Spanner][Spanner] is a horizontally-scalable database-as-a-service @@ -13,15 +13,15 @@ the [Google Cloud Client Library for Java][java-spanner]. ## Quickstart -Every command here should be run from the root directory of your project (`java-spanner`). - Install [Maven](http://maven.apache.org/). -Build your project with: +Build your project from the root directory (`java-spanner`): mvn clean package -DskipTests -DskipUTs -Penable-samples -You can then run a given `ClassName` via: +Every subsequent command here should be run from a subdirectory (`cd samples/snippets`). + +You can run a given `ClassName` via: mvn exec:java -Dexec.mainClass=com.example.spanner.ClassName \ -DpropertyName=propertyValue \