Skip to content

Commit 6a60c8f

Browse files
committed
Prefer mvn:exec when accessing Cloud client library.
1 parent 0dd39e8 commit 6a60c8f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

iot/api-client/manager/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ run the sample as:
5454

5555
Create a PubSub topic, `hello-java`, for the project, `blue-jet-123`:
5656

57-
java -cp target/cloudiot-manager-demo-1.0-jar-with-dependencies.jar \
58-
com.example.cloud.iot.examples.DeviceRegistryExample \
59-
-project_id=blue-jet-123 -pubsub_topic=hello-java
60-
-command=create-iot-topic
57+
mvn exec:java \
58+
-Dexec.mainClass="com.example.cloud.iot.examples.DeviceRegistryExample" \
59+
-Dexec.args="-project_id=blue-jet-123 \
60+
-command=create-iot-topic \
61+
-pubsub_topic=hello-java "
6162

6263
Create an ES device:
6364

0 commit comments

Comments
 (0)