Replace Dependency in maven api with MavenCoordinate

Align with ConflictingDependency.