File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ Publishes 5 messages to the topic `my-topic`.
4747```
4848 mvn exec:java -Dexec.mainClass=com.example.pubsub.SubscriberExample -Dexec.args=my-sub
4949```
50- Subscriber will continue to listen on the topic and print out message id and data as messages are received. Press ` Ctrl+C ` to exit the application.
50+ Subscriber will continue to listen on the topic and print out message id and data as messages are received. Press ` Ctrl+C ` to exit the application.
5151
5252#### Testing
5353Run the test with Maven.
Original file line number Diff line number Diff line change 5656 <version >0.42</version >
5757 <scope >test</scope >
5858 </dependency >
59+ <dependency >
60+ <groupId >org.apache.maven</groupId >
61+ <artifactId >maven-plugin-api</artifactId >
62+ <version >3.3.3</version >
63+ </dependency >
5964 </dependencies >
65+
66+ <build >
67+ <plugins >
68+ <plugin >
69+ <groupId >org.codehaus.mojo</groupId >
70+ <artifactId >exec-maven-plugin</artifactId >
71+ <version >1.6.0</version >
72+ <executions >
73+ <execution >
74+ <goals >
75+ <goal >java</goal >
76+ </goals >
77+ </execution >
78+ </executions >
79+ <configuration >
80+ <cleanupDaemonThreads >false</cleanupDaemonThreads >
81+ </configuration >
82+ </plugin >
83+ </plugins >
84+ </build >
6085</project >
You can’t perform that action at this time.
0 commit comments