code: public static PomEquippedResolveStage configureResolverViaPlugin(final ClassLoader cl)
          throws InvalidEnvironmentException, IllegalArgumentException {
          final ConfigurableMavenResolverSystem resolverSystem = Resolvers.use(ConfigurableMavenResolverSystem.class, cl);
          return resolverSystem.configureViaPlugin();
      }
docs: Configures the {@link MavenResolverSystem} with <code>settings.xml</code> and POM metadata as picked up from the
  environment (these properties are set by the ShrinkWrap Maven Resolver Plugin).
  
  @param cl The {@link ClassLoader} used to create the new instance; required
  @return The {@link MavenResolverSystem} configured with <code>settings.xml</code> and POM metadata as picked up
  from the environment
  @throws IllegalArgumentException
  If the {@link ClassLoader} is not specified
  @throws InvalidEnvironmentException
  If this is executed outside the context of the ShrinkWrap Maven Resolver Plugin Environment