/** * 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). The new instance will be created * by the current {@link Thread#getContextClassLoader()}. * * @return The {@link MavenResolverSystem} configured with <code>settings.xml</code> and POM metadata as picked up * from the environment * @throws InvalidEnvironmentException * If this is executed outside the context of the ShrinkWrap Maven Resolver Plugin Environment */ public static PomEquippedResolveStage configureResolverViaPlugin() throws InvalidEnvironmentException { return configureResolverViaPlugin(SecurityActions.getThreadContextClassLoader()); }
artifacts = new MavenResolvedArtifact[0]; } else { artifacts = Maven.configureResolverViaPlugin(cls) .importDependencies(scopes) .resolve()