summaryrefslogtreecommitdiff
path: root/qpid/java/client/example/README.txt
blob: 36e4351a5116d50772b75e030418fccdde2fb0b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
===========================
Running the client examples
===========================

Use maven to build the module, and additionally copy the dependencies
alongside their output:

  mvn clean package dependency:copy-dependencies -DincludeScope=runtime -DskipTests

Now you can run the examples using commands of the format:

  java -cp "target/classes/:target/dependency/*" org.apache.qpid.example.Hello


NOTE: The earlier build command will cause Maven to resolve the client artifact
dependencies against its local and remote repositories. If you wish to use a
locally-built client, ensure to install it in your local maven repo first.