1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.artifact.factory;
20
21 import org.apache.maven.artifact.Artifact;
22 import org.apache.maven.artifact.versioning.VersionRange;
23
24
25
26
27 @Deprecated
28 @SuppressWarnings("checkstyle:parameternumber")
29 public interface ArtifactFactory {
30 @Deprecated
31 String ROLE = ArtifactFactory.class.getName();
32
33 Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type);
34
35 Artifact createArtifactWithClassifier(
36 String groupId, String artifactId, String version, String type, String classifier);
37
38 Artifact createDependencyArtifact(
39 String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope);
40
41 Artifact createDependencyArtifact(
42 String groupId,
43 String artifactId,
44 VersionRange versionRange,
45 String type,
46 String classifier,
47 String scope,
48 boolean optional);
49
50 Artifact createDependencyArtifact(
51 String groupId,
52 String artifactId,
53 VersionRange versionRange,
54 String type,
55 String classifier,
56 String scope,
57 String inheritedScope);
58
59 Artifact createDependencyArtifact(
60 String groupId,
61 String artifactId,
62 VersionRange versionRange,
63 String type,
64 String classifier,
65 String scope,
66 String inheritedScope,
67 boolean optional);
68
69 Artifact createBuildArtifact(String groupId, String artifactId, String version, String packaging);
70
71 Artifact createProjectArtifact(String groupId, String artifactId, String version);
72
73 Artifact createParentArtifact(String groupId, String artifactId, String version);
74
75 Artifact createPluginArtifact(String groupId, String artifactId, VersionRange versionRange);
76
77 Artifact createProjectArtifact(String groupId, String artifactId, String version, String scope);
78
79 Artifact createExtensionArtifact(String groupId, String artifactId, VersionRange versionRange);
80 }