File tree 2 files changed +26
-1
lines changed 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`.
47
47
```
48
48
mvn exec:java -Dexec.mainClass=com.example.pubsub.SubscriberExample -Dexec.args=my-sub
49
49
```
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.
51
51
52
52
#### Testing
53
53
Run the test with Maven.
Original file line number Diff line number Diff line change 56
56
<version >0.42</version >
57
57
<scope >test</scope >
58
58
</dependency >
59
+ <dependency >
60
+ <groupId >org.apache.maven</groupId >
61
+ <artifactId >maven-plugin-api</artifactId >
62
+ <version >3.3.3</version >
63
+ </dependency >
59
64
</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 >
60
85
</project >
You can’t perform that action at this time.
0 commit comments