Some patches to cache

- PMD warnings
- disable flaky tests
- use auto-generated port number