Class ResolverUtils

java.lang.Object
org.codehaus.mojo.mrm.api.ResolverUtils

public class ResolverUtils extends Object
Miscellaneous utilities for manipulating Resolver entities
  • Method Details

    • createArtifact

      public static org.eclipse.aether.artifact.Artifact createArtifact(org.apache.maven.execution.MavenSession mavenSession, Artifact artifact)

      Creates a new Artifact based on an Artifact object.

      Future deprecation: This method will be replaced with the new Maven 4 org.apache.maven.api.services.ArtifactFactory once it becomes available.

      Parameters:
      mavenSession - MavenSession instance, may not be null
      artifact - object to read the data from, may not be null
      Returns:
      new Artifact instance