1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.artifact.resolver;
20
21 import org.apache.maven.artifact.Artifact;
22 import org.apache.maven.artifact.versioning.VersionRange;
23
24
25
26
27 @Deprecated
28 public interface ResolutionListener {
29 String ROLE = ResolutionListener.class.getName();
30
31 int TEST_ARTIFACT = 1;
32
33 int PROCESS_CHILDREN = 2;
34
35 int FINISH_PROCESSING_CHILDREN = 3;
36
37 int INCLUDE_ARTIFACT = 4;
38
39 int OMIT_FOR_NEARER = 5;
40
41 int UPDATE_SCOPE = 6;
42
43 @Deprecated
44 int MANAGE_ARTIFACT = 7;
45
46 int OMIT_FOR_CYCLE = 8;
47
48
49
50
51
52 int UPDATE_SCOPE_CURRENT_POM = 9;
53
54 int SELECT_VERSION_FROM_RANGE = 10;
55
56 int RESTRICT_RANGE = 11;
57
58 int MANAGE_ARTIFACT_VERSION = 12;
59
60 int MANAGE_ARTIFACT_SCOPE = 13;
61
62 int MANAGE_ARTIFACT_SYSTEM_PATH = 14;
63
64 void testArtifact(Artifact node);
65
66 void startProcessChildren(Artifact artifact);
67
68 void endProcessChildren(Artifact artifact);
69
70 void includeArtifact(Artifact artifact);
71
72 void omitForNearer(Artifact omitted, Artifact kept);
73
74 void updateScope(Artifact artifact, String scope);
75
76 @Deprecated
77 void manageArtifact(Artifact artifact, Artifact replacement);
78
79
80
81 void omitForCycle(Artifact artifact);
82
83
84
85
86
87
88
89
90 void updateScopeCurrentPom(Artifact artifact, String ignoredScope);
91
92 void selectVersionFromRange(Artifact artifact);
93
94 void restrictRange(Artifact artifact, Artifact replacement, VersionRange newRange);
95 }