1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.internal.impl.resolver;
20
21 import org.apache.maven.api.di.Named;
22 import org.apache.maven.api.di.Singleton;
23 import org.eclipse.aether.util.version.GenericVersionScheme;
24 import org.eclipse.aether.version.InvalidVersionSpecificationException;
25 import org.eclipse.aether.version.Version;
26 import org.eclipse.aether.version.VersionConstraint;
27 import org.eclipse.aether.version.VersionRange;
28 import org.eclipse.aether.version.VersionScheme;
29
30
31
32
33 @Singleton
34 @Named
35 public class MavenVersionScheme implements VersionScheme {
36
37 private final VersionScheme delegate = new GenericVersionScheme();
38
39 @Override
40 public Version parseVersion(String version) throws InvalidVersionSpecificationException {
41 return delegate.parseVersion(version);
42 }
43
44 @Override
45 public VersionRange parseVersionRange(String range) throws InvalidVersionSpecificationException {
46 return delegate.parseVersionRange(range);
47 }
48
49 @Override
50 public VersionConstraint parseVersionConstraint(String constraint) throws InvalidVersionSpecificationException {
51 return delegate.parseVersionConstraint(constraint);
52 }
53 }