Thanks @Matt (pactflow.io / pact-js / pact-go) However, those examples are for Springboot which don't use pom.xml but gradle. I did exercise that good repo.
Since I'm interested in kafka/messaging, hence I tried consumer-kafka and producer-kafka examples and ran into issue on producer, which also Springboot using gradle and Makefile.