Matomo Java Tracker not working?

On following the steps mentioned on https://github.com/matomo-org/matomo-java-tracker there is no entry visible in matomo. Tried giving the campaign name and keyword with the action URL as mentioned on github and also tried using the .setCampaignName, .setCampaignKeyword methods from PiwikRequest. Both methods not giving any entries in matomo.

Hi! I rewrote the whole library and published it into the Maven central. The project URL is here: https://github.com/dheid/matomo-tracker Perhaps you can try this alternativ library.

@Hrutanshu_Gugale , did you first to track a single page, without campaign parameters?
Is your Matomo server reachable form the computer executing the Java?
Does your Matomo works well (you should try with a simple GET request: https://your-matomo-domain.example/matomo.php?idsite=1&rec=1&action_name=action&url=https%3A%2F%2Fwww.example.com&apiv=1&rand=123456&_id=123456789abcdef0)