/*
* Validate components, we validate first the most abstract components so that if there are cross-references
* among components in the same build we detect errors soon and avoid cascaded errors
*/
ValidationContext context = new ValidationContext(new RepositoryChain(projectRepository,acr));
Validator validator = new Validator(projectRepository.getClasspath(),context);
ErrorReport validatorResult = new ErrorReport(getLog());
for (ComponentDeclaration component : components) {