Package org.codehaus.mojo.mrm.api
Class ResolverUtils
java.lang.Object
org.codehaus.mojo.mrm.api.ResolverUtils
Miscellaneous utilities for manipulating Resolver entities
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.aether.artifact.ArtifactcreateArtifact(org.apache.maven.execution.MavenSession mavenSession, Artifact artifact) Creates a newArtifactbased on anArtifactobject.
-
Method Details
-
createArtifact
public static org.eclipse.aether.artifact.Artifact createArtifact(org.apache.maven.execution.MavenSession mavenSession, Artifact artifact) Creates a new
Artifactbased on anArtifactobject.Future deprecation: This method will be replaced with the new Maven 4
org.apache.maven.api.services.ArtifactFactoryonce it becomes available.- Parameters:
mavenSession-MavenSessioninstance, may not benullartifact- object to read the data from, may not benull- Returns:
- new
Artifactinstance
-