1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.basepom.mojo.dvc;
16
17 import org.basepom.mojo.dvc.model.VersionCheckExcludes;
18
19 import java.util.List;
20
21 import org.apache.maven.project.MavenProject;
22 import org.apache.maven.project.ProjectBuilder;
23 import org.apache.maven.project.ProjectBuildingRequest;
24 import org.apache.maven.project.ProjectDependenciesResolver;
25 import org.eclipse.aether.RepositorySystem;
26 import org.eclipse.aether.RepositorySystemSession;
27 import org.eclipse.aether.artifact.Artifact;
28 import org.eclipse.aether.resolution.VersionRangeRequest;
29
30 public interface Context {
31
32
33
34
35 boolean isUnresolvedSystemArtifactsFailBuild();
36
37
38
39
40 boolean useFastResolution();
41
42
43
44
45 boolean useDeepScan();
46
47
48
49
50 boolean isOptionalDependenciesMustExist();
51
52
53
54
55 List<VersionCheckExcludes> getExclusions();
56
57
58
59
60 StrategyCache getStrategyCache();
61
62
63
64
65 ProjectBuilder getProjectBuilder();
66
67
68
69
70 ProjectDependenciesResolver getProjectDependenciesResolver();
71
72
73
74
75 MavenProject getRootProject();
76
77
78
79
80 List<MavenProject> getReactorProjects();
81
82
83
84
85 RepositorySystemSession getRepositorySystemSession();
86
87
88
89
90 RepositorySystem getRepositorySystem();
91
92
93
94
95 ProjectBuildingRequest createProjectBuildingRequest();
96
97
98
99
100
101 VersionRangeRequest createVersionRangeRequest(Artifact artifact);
102 }