Path (File localRepository, String groupId, String artifactId) { String relativePath = StringUtil.replace(groupId, ".", File.separator) + File.separator + artifactId; return localRepository.toPath().resolve(relativePath); }