File tree Expand file tree Collapse file tree 6 files changed +37
-15
lines changed Expand file tree Collapse file tree 6 files changed +37
-15
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ in Pulsar documentation to start a Pulsar standalone locally.
2727 git clone https://github.com/streamnative/pulsar-examples.git
2828 ```
2929 ``` bash
30- cd pulsar-examples
30+ cd pulsar-examples/clients
3131 ```
3232 ``` bash
3333 mvn -am -pl schema clean package
3434 ```
3535
36363 . Run the avro schema producer example to produce 10 avro messages to a pulsar topic ` avro-payments ` .
3737 ``` bash
38- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.avro.AvroSchemaProducerExample"
38+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.avro.AvroSchemaProducerExample
3939 ```
4040 After running this producer example, you will see the following successful message.
4141 ``` bash
@@ -44,7 +44,7 @@ in Pulsar documentation to start a Pulsar standalone locally.
4444
45454 . Run the auto consumer example to receive the produced avro messages as generic records from topic ` avro-payments ` .
4646 ``` bash
47- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.generic.AutoConsumeSchemaConsumerExample"
47+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.generic.AutoConsumeSchemaConsumerExample
4848 ```
4949 After running this consumer example, you will see the following output.
5050 ``` bash
Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ in Pulsar documentation to start a Pulsar standalone locally.
2727 git clone https://github.com/streamnative/pulsar-examples.git
2828 ```
2929 ``` bash
30- cd pulsar-examples
30+ cd pulsar-examples/clients
3131 ```
3232 ``` bash
3333 mvn -am -pl schema clean package
3434 ```
3535
36363 . Run the Avro producer example to produce 10 avro messages to a pulsar topic ` avro-payments ` .
3737 ``` bash
38- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.avro.AvroSchemaProducerExample"
38+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.avro.AvroSchemaProducerExample
3939 ```
4040 After running this producer example, you will see the following successful message.
4141 ``` bash
@@ -44,7 +44,7 @@ in Pulsar documentation to start a Pulsar standalone locally.
4444
45454 . Run the Avro consumer example to receive the produced avro messages from topic ` avro-payments ` .
4646 ``` bash
47- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.avro.AvroSchemaConsumerExample"
47+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.avro.AvroSchemaConsumerExample
4848 ```
4949 After running this consumer example, you will see the following output.
5050 ``` bash
Original file line number Diff line number Diff line change @@ -30,20 +30,20 @@ in Pulsar documentation to start a Pulsar standalone locally.
3030 git clone https://github.com/streamnative/pulsar-examples.git
3131 ```
3232 ``` bash
33- cd pulsar-examples
33+ cd pulsar-examples/clients
3434 ```
3535 ``` bash
3636 mvn -am -pl schema clean package
3737 ```
3838
39393 . Run the consumer example to wait for receiving the produced key/value messages from topic ` keyvalue-inline-topic ` .
4040 ``` bash
41- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.kv.KeyValueInlineSchemaConsumerExample"
41+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.kv.KeyValueInlineSchemaConsumerExample
4242 ```
4343
44444 . Open another terminal, run the producer example to produce 10 key/value messages to a pulsar topic ` keyvalue-inline-topic ` .
4545 ``` bash
46- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.kv.KeyValueInlineSchemaProducerExample"
46+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.kv.KeyValueInlineSchemaProducerExample
4747 ```
4848 After running this producer example, you will see the following successful message.
4949 ``` bash
Original file line number Diff line number Diff line change @@ -29,20 +29,20 @@ in Pulsar documentation to start a Pulsar standalone locally.
2929 git clone https://github.com/streamnative/pulsar-examples.git
3030 ```
3131 ``` bash
32- cd pulsar-examples
32+ cd pulsar-examples/clients
3333 ```
3434 ``` bash
3535 mvn -am -pl schema clean package
3636 ```
3737
38383 . Run the consumer example to wait for receiving the produced key/value messages from topic ` keyvalue-separated-topic ` .
3939 ``` bash
40- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.kv.KeyValueSeparatedSchemaConsumerExample"
40+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.kv.KeyValueSeparatedSchemaConsumerExample
4141 ```
4242
43434 . Open another terminal, run the producer example to produce 10 key/value messages to a pulsar topic ` keyvalue-separated-topic ` .
4444 ``` bash
45- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.kv.KeyValueSeparatedSchemaProducerExample"
45+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.kv.KeyValueSeparatedSchemaProducerExample
4646 ```
4747 After running this producer example, you will see the following successful message.
4848 ``` bash
Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ in Pulsar documentation to start a Pulsar standalone locally.
2727 git clone https://github.com/streamnative/pulsar-examples.git
2828 ```
2929 ``` bash
30- cd pulsar-examples
30+ cd pulsar-examples/clients
3131 ```
3232 ``` bash
3333 mvn -am -pl schema clean package
3434 ```
3535
36363 . Run the Generic schema producer example to produce 10 generic records to a pulsar topic ` avro-payments ` .
3737 ``` bash
38- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.generic.GenericSchemaProducerExample"
38+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.generic.GenericSchemaProducerExample
3939 ```
4040 After running this producer example, you will see the following successful message.
4141 ``` bash
@@ -44,7 +44,7 @@ in Pulsar documentation to start a Pulsar standalone locally.
4444
45454 . Run the Avro consumer example to receive the produced generic records from topic ` avro-payments ` .
4646 ``` bash
47- mvn -pl schema exec:java -Dexec.mainClass= " io.streamnative.examples.schema.avro.AvroSchemaConsumerExample"
47+ java -cp schema/target/pulsar-schema-examples.jar io.streamnative.examples.schema.avro.AvroSchemaConsumerExample
4848 ```
4949 After running this consumer example, you will see the following output.
5050 ``` bash
Original file line number Diff line number Diff line change 106106 </execution >
107107 </executions >
108108 </plugin >
109+ <plugin >
110+ <groupId >org.apache.maven.plugins</groupId >
111+ <artifactId >maven-assembly-plugin</artifactId >
112+ <configuration >
113+ <!-- get all project dependencies -->
114+ <descriptorRefs >
115+ <descriptorRef >jar-with-dependencies</descriptorRef >
116+ </descriptorRefs >
117+ <finalName >pulsar-schema-examples</finalName >
118+ <appendAssemblyId >false</appendAssemblyId >
119+ </configuration >
120+ <executions >
121+ <execution >
122+ <id >make-assembly</id >
123+ <!-- bind to the packaging phase -->
124+ <phase >package</phase >
125+ <goals >
126+ <goal >single</goal >
127+ </goals >
128+ </execution >
129+ </executions >
130+ </plugin >
109131 </plugins >
110132 </build >
111133</project >
You can’t perform that action at this time.
0 commit comments