1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.resolver.internal.ant;
20
21 import org.apache.maven.model.building.ModelBuilder;
22 import org.eclipse.aether.impl.RemoteRepositoryManager;
23 import org.eclipse.aether.impl.UpdatePolicyAnalyzer;
24 import org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider;
25 import org.eclipse.aether.supplier.RepositorySystemSupplier;
26
27
28
29
30
31
32 public class AntRepositorySystemSupplier extends RepositorySystemSupplier {
33
34 ModelBuilder modelBuilder;
35
36 RemoteRepositoryManager remoteRepositoryManager;
37
38 @Override
39 protected ModelBuilder getModelBuilder() {
40 modelBuilder = super.getModelBuilder();
41 return modelBuilder;
42 }
43
44 @Override
45 protected RemoteRepositoryManager getRemoteRepositoryManager(
46 UpdatePolicyAnalyzer updatePolicyAnalyzer, ChecksumPolicyProvider checksumPolicyProvider) {
47 remoteRepositoryManager = super.getRemoteRepositoryManager(updatePolicyAnalyzer, checksumPolicyProvider);
48 return remoteRepositoryManager;
49 }
50 }