Compare dependencies based on groupId and artifactId.