1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.project;
20
21 import org.eclipse.aether.RepositorySystemSession;
22 import org.eclipse.aether.graph.DependencyFilter;
23
24
25
26
27 public class DefaultDependencyResolutionRequest implements DependencyResolutionRequest {
28
29 private MavenProject project;
30
31 private DependencyFilter filter;
32
33 private RepositorySystemSession session;
34
35 public DefaultDependencyResolutionRequest() {
36
37 }
38
39 public DefaultDependencyResolutionRequest(MavenProject project, RepositorySystemSession session) {
40 setMavenProject(project);
41 setRepositorySession(session);
42 }
43
44 public DependencyFilter getResolutionFilter() {
45 return filter;
46 }
47
48 public MavenProject getMavenProject() {
49 return project;
50 }
51
52 public RepositorySystemSession getRepositorySession() {
53 return session;
54 }
55
56 public DependencyResolutionRequest setResolutionFilter(DependencyFilter filter) {
57 this.filter = filter;
58 return this;
59 }
60
61 public DependencyResolutionRequest setMavenProject(MavenProject project) {
62 this.project = project;
63 return this;
64 }
65
66 public DependencyResolutionRequest setRepositorySession(RepositorySystemSession repositorySession) {
67 this.session = repositorySession;
68 return this;
69 }
70 }