1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.repository.internal;
20
21 import javax.inject.Named;
22 import javax.inject.Singleton;
23
24 import org.eclipse.aether.RepositorySystemSession;
25 import org.eclipse.aether.deployment.DeployRequest;
26 import org.eclipse.aether.impl.MetadataGenerator;
27 import org.eclipse.aether.impl.MetadataGeneratorFactory;
28 import org.eclipse.aether.installation.InstallRequest;
29
30
31
32
33 @Named(VersionsMetadataGeneratorFactory.NAME)
34 @Singleton
35 public class VersionsMetadataGeneratorFactory implements MetadataGeneratorFactory {
36 public static final String NAME = "versions";
37
38 @Override
39 public MetadataGenerator newInstance(RepositorySystemSession session, InstallRequest request) {
40 return new VersionsMetadataGenerator(session, request);
41 }
42
43 @Override
44 public MetadataGenerator newInstance(RepositorySystemSession session, DeployRequest request) {
45 return new VersionsMetadataGenerator(session, request);
46 }
47
48 @Override
49 public float getPriority() {
50 return 20;
51 }
52 }