File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,21 +25,23 @@ cd docker
2525docker compose up -d
2626```
2727
28- Build the client jars:
28+ Build the client jars and fetch all runtime dependencies :
2929
3030``` bash
3131# From the repo root
3232mvn -DskipTests package
33+ mvn -pl danube-client dependency:copy-dependencies -DoutputDirectory=target/dependency -DincludeScope=runtime -q
3334```
3435
3536## Running an Example
3637
37- Set up the classpath with both the client and its proto dependency :
38+ Build the full classpath (all transitive deps + client jars) :
3839
3940``` bash
40- CP=danube-client/target/danube-client-0.2.0. jar: danube-client-proto /target/ danube-client-proto-0.2.0 .jar
41+ CP=$( find danube-client/target/dependency -name " *. jar" | tr ' \n ' ' : ' ) $( find danube-client/target danube-client-proto/target -maxdepth 1 -name " *.jar " ! -name " *-sources.jar " ! -name " *-javadoc .jar" | tr ' \n ' ' : ' )
4142
4243# Compile
44+ mkdir -p examples/out
4345javac -cp " $CP " examples/SimpleProducerConsumer.java -d examples/out
4446
4547# Run
You can’t perform that action at this time.
0 commit comments