readme: update readme using java and compiled jar
@@ -4,42 +4,44 @@ Download and start an etcd node from [instruction](https://github.com/coreos/etc
> Note: For windows machine, run `.\mvnw.cmd` instead of `./mvnw`
-Build the example jar.
+Build the example jar `target/jetcdctl.jar` with the provided [maven wrapper][mavenwrapper]:
`./mvnw clean package`
-Put `foo` `bar` into cluster.
+Put `foo` `bar` into the cluster:
```bash
-$ ./mvnw -q exec:java -Dexec.args="put foo bar"
+$ java -jar target/jetcdctl.jar put foo bar
21:39:06.126|INFO |CommandPut - OK
```
-Put `foo` `bar2` into cluster.
+Put `foo` `bar2` into the cluster:
```bash
-$ ./mvnw -q exec:java -Dexec.args="put foo bar2"
+$ java -jar target/jetcdctl.jar put foo bar2
21:39:06.126|INFO |CommandPut - OK
```
-Get `foo`.
+Get the key `foo`:
```bash
-$ ./mvnw -q exec:java -Dexec.args="get foo"
+$ java -jar target/jetcdctl.jar get foo
21:41:00.265|INFO |CommandGet - foo
21:41:00.267|INFO |CommandGet - bar2
```
-Get `foo` at `rev` 2.
+Get the key `foo` at etcd revision 2:
+
```bash
-$ ./mvnw -q exec:java -Dexec.args="get foo --rev=2"
+$ java -cp target/jetcdctl.jar get foo --rev=2
21:42:03.371|INFO |CommandGet - foo
21:42:03.373|INFO |CommandGet - bar
```
-Watch `foo` since `rev` 2.
+Watch `foo` since revision 2:
+
```bash
-$ ./mvnw -q exec:java -Dexec.args="watch foo --rev=2"
+$ java -jar target/jetcdctl.jar watch foo --rev=2
21:43:51.360|INFO |CommandWatch - PUT
21:43:51.361|INFO |CommandWatch - foo
21:43:51.361|INFO |CommandWatch - bar
@@ -47,3 +49,5 @@ $ ./mvnw -q exec:java -Dexec.args="watch foo --rev=2"
21:43:51.362|INFO |CommandWatch - foo
21:43:51.362|INFO |CommandWatch - bar2
```
+
+[mavenwrapper]: https://github.com/takari/maven-wrapper
\ No newline at end of file
