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 \