Within the same POM, we should be more strict with regard to the uniqueness of identifiers. For instance
is currently considered valid. However, this usually results from copy&paste errors and the missing uniqueness makes it unnecessary complicated to define Maven's behavior during inheritance or profile injection when we want to merge elements with the same id.
Of course, this extended validation must only apply to local builds and not to the metadata retrieval.