Make dependency caching dependent on pom changes