@Component(role=Resolver.class) public class DefaultResolver extends Object implements Resolver, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Resolver
interface.
WARNING: This class is part of internal implementation of XMvn and it is marked as public only for technical reasons. This class is not part of XMvn API. Client code using XMvn should not reference it directly.
Constructor and Description |
---|
DefaultResolver() |
Modifier and Type | Method and Description |
---|---|
void |
initialize() |
File |
resolve(org.sonatype.aether.artifact.Artifact artifact)
Deprecated.
|
ResolutionResult |
resolve(ResolutionRequest request)
Resolve artifacts from system repositories configured in
<resolverSettings> in XMvn configuration. |
File |
resolve(String groupId,
String artifactId,
String version,
String extension)
Deprecated.
|
public void initialize()
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
public ResolutionResult resolve(ResolutionRequest request)
Resolver
<resolverSettings>
in XMvn configuration.@Deprecated public File resolve(String groupId, String artifactId, String version, String extension)
Resolver
<resolverSettings>
in XMvn configuration.
This method is deprecated. Clients should use Resolver.resolve(ResolutionRequest)
instead.
resolve
in interface Resolver
groupId
- groupId of artifact which resolution is requestedartifactId
- artifactId of artifact which resolution is requestedversion
- version of artifact which resolution is requestedextension
- extension of artifact which resolution is requestednull
if requested artifact could not be resolved@Deprecated public File resolve(org.sonatype.aether.artifact.Artifact artifact)
Resolver
<resolverSettings>
in XMvn configuration.
This method is deprecated. Clients should use Resolver.resolve(ResolutionRequest)
instead.
Copyright © 2012-2016 Red Hat, Inc.. All Rights Reserved.