public class IniArtifactDescriptorReader extends Object
gid:aid:ext:ver
is expected to be named gid_aid_ver.ini
and can optionally have
some prefix. The data file can have the following sections:
gid:aid:ext:ver[:scope][:optional]The dependency sections may also specify exclusions:
-gid:aidA repository definition is of the form:
id:type:url
[relocation] gid:aid:ext:ver [dependencies] gid:aid:ext:ver:scope -exclusion:aid gid:aid2:ext:ver:scope:optional [managed-dependencies] gid:aid2:ext:ver2:scope -gid:aid -gid:aid [repositories] id:type:file:///test-repo
Constructor and Description |
---|
IniArtifactDescriptorReader(String prefix)
Use the given prefix to load the artifact descriptions from the classpath.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.aether.resolution.ArtifactDescriptorResult |
readArtifactDescriptor(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.resolution.ArtifactDescriptorRequest request)
Parses the resource
$prefix/gid_aid_ver.ini from the request artifact as an artifact description and
wraps it into an ArtifactDescriptorResult. |
public IniArtifactDescriptorReader(String prefix)
public org.eclipse.aether.resolution.ArtifactDescriptorResult readArtifactDescriptor(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorRequest request) throws org.eclipse.aether.resolution.ArtifactDescriptorException
$prefix/gid_aid_ver.ini
from the request artifact as an artifact description and
wraps it into an ArtifactDescriptorResult.org.eclipse.aether.resolution.ArtifactDescriptorException
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.