Class DefaultArtifactFactory
java.lang.Object
org.apache.maven.artifact.factory.DefaultArtifactFactory
- All Implemented Interfaces:
ArtifactFactory
@Component(role=ArtifactFactory.class)
public class DefaultArtifactFactory
extends Object
implements ArtifactFactory
DefaultArtifactFactory
-
Field Summary
Fields inherited from interface org.apache.maven.artifact.factory.ArtifactFactory
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateArtifactWithClassifier
(String groupId, String artifactId, String version, String type, String classifier) createBuildArtifact
(String groupId, String artifactId, String version, String packaging) createDependencyArtifact
(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope) createDependencyArtifact
(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, boolean optional) createDependencyArtifact
(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, String inheritedScope) createDependencyArtifact
(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, String inheritedScope, boolean optional) createExtensionArtifact
(String groupId, String artifactId, VersionRange versionRange) createParentArtifact
(String groupId, String artifactId, String version) createPluginArtifact
(String groupId, String artifactId, VersionRange versionRange) createProjectArtifact
(String groupId, String artifactId, String version) createProjectArtifact
(String groupId, String artifactId, String version, String scope)
-
Constructor Details
-
DefaultArtifactFactory
public DefaultArtifactFactory()
-
-
Method Details
-
createArtifact
public Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type) - Specified by:
createArtifact
in interfaceArtifactFactory
-
createArtifactWithClassifier
public Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier) - Specified by:
createArtifactWithClassifier
in interfaceArtifactFactory
-
createDependencyArtifact
public Artifact createDependencyArtifact(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope) - Specified by:
createDependencyArtifact
in interfaceArtifactFactory
-
createDependencyArtifact
public Artifact createDependencyArtifact(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, boolean optional) - Specified by:
createDependencyArtifact
in interfaceArtifactFactory
-
createDependencyArtifact
public Artifact createDependencyArtifact(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, String inheritedScope) - Specified by:
createDependencyArtifact
in interfaceArtifactFactory
-
createDependencyArtifact
public Artifact createDependencyArtifact(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, String inheritedScope, boolean optional) - Specified by:
createDependencyArtifact
in interfaceArtifactFactory
-
createBuildArtifact
public Artifact createBuildArtifact(String groupId, String artifactId, String version, String packaging) - Specified by:
createBuildArtifact
in interfaceArtifactFactory
-
createProjectArtifact
- Specified by:
createProjectArtifact
in interfaceArtifactFactory
-
createParentArtifact
- Specified by:
createParentArtifact
in interfaceArtifactFactory
-
createPluginArtifact
- Specified by:
createPluginArtifact
in interfaceArtifactFactory
-
createProjectArtifact
public Artifact createProjectArtifact(String groupId, String artifactId, String version, String scope) - Specified by:
createProjectArtifact
in interfaceArtifactFactory
-
createExtensionArtifact
public Artifact createExtensionArtifact(String groupId, String artifactId, VersionRange versionRange) - Specified by:
createExtensionArtifact
in interfaceArtifactFactory
-