* @throws ComponentLookupException
*/
private void enforceArtifactoryResolver() throws ComponentLookupException {
logger.debug("Enforcing Artifactory artifact resolver");
DefaultArtifactDescriptorReader descriptorReader = (DefaultArtifactDescriptorReader)plexusContainer.lookup("org.eclipse.aether.impl.ArtifactDescriptorReader");
org.eclipse.aether.internal.impl.DefaultRepositorySystem repositorySystem = (org.eclipse.aether.internal.impl.DefaultRepositorySystem)plexusContainer.lookup("org.eclipse.aether.RepositorySystem");
org.eclipse.aether.impl.ArtifactResolver artifactoryResolver = (org.eclipse.aether.impl.ArtifactResolver)plexusContainer.lookup("org.jfrog.build.extractor.maven.resolver.ArtifactoryEclipseArtifactResolver");
this.artifactoryResolver = (ArtifactoryEclipseArtifactResolver)artifactoryResolver;
descriptorReader.setArtifactResolver(artifactoryResolver);
repositorySystem.setArtifactResolver(artifactoryResolver);
artifactoryRepositoriesEnforced = true;
synchronized (artifactoryRepositoriesEnforced) {
artifactoryRepositoriesEnforced.notifyAll();