private static boolean artifactsMatch(org.apache.maven.model.Dependency d, Artifact a) {
        return isEqualOrNull(a.getArtifactId(), d.getArtifactId())
                && isEqualOrNull(a.getGroupId(), d.getGroupId())
                && isEqualOrNull(a.getVersion(), d.getVersion());
    }
private static boolean artifactsMatch ( org . apache . maven . model . Dependency d , Artifact a ) { return isEqualOrNull ( a . getArtifactId ( ) , d . getArtifactId ( ) ) && isEqualOrNull ( a . getGroupId ( ) , d . getGroupId ( ) ) && isEqualOrNull ( a . getVersion ( ) , d . getVersion ( ) ) ; }
Determines if the groupId, artifactId, and version of the Maven
dependency and artifact match.

@param d the Maven dependency
@param a the Maven artifact
@return true if the groupId, artifactId, and version match