private static boolean isRepositoryUrl(MavenArtifact artifact, String url) {
    return url.contains(artifact.getGroupId().replace('.', '/') +
                        '/' +
                        artifact.getArtifactId() +
                        '/' +
                        artifact.getBaseVersion() +
                        '/' +
                        artifact.getArtifactId() +
                        '-');
  }
private static boolean isRepositoryUrl(MavenArtifact artifact, String url)