1 package org.apache.maven.repository.internal;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.codehaus.plexus.component.annotations.Component;
23 import org.eclipse.aether.RepositorySystemSession;
24 import org.eclipse.aether.deployment.DeployRequest;
25 import org.eclipse.aether.impl.MetadataGenerator;
26 import org.eclipse.aether.impl.MetadataGeneratorFactory;
27 import org.eclipse.aether.installation.InstallRequest;
28
29
30
31
32 @Component( role = MetadataGeneratorFactory.class, hint = "snapshot" )
33 public class SnapshotMetadataGeneratorFactory
34 implements MetadataGeneratorFactory
35 {
36
37 public MetadataGenerator newInstance( RepositorySystemSession session, InstallRequest request )
38 {
39 return new LocalSnapshotMetadataGenerator( session, request );
40 }
41
42 public MetadataGenerator newInstance( RepositorySystemSession session, DeployRequest request )
43 {
44 return new RemoteSnapshotMetadataGenerator( session, request );
45 }
46
47 public float getPriority()
48 {
49 return 10;
50 }
51
52 }