public class ArtifactUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_EXTENSION |
static String |
DEFAULT_VERSION |
static org.eclipse.aether.artifact.Artifact |
DUMMY
Dummy artifact.
|
static org.eclipse.aether.artifact.Artifact |
DUMMY_JPP
The same as
DUMMY , but in JPP style. |
Constructor and Description |
---|
ArtifactUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
collectionToString(Collection<org.eclipse.aether.artifact.Artifact> set)
Convert a collection of artifacts to a human-readable string.
|
static String |
collectionToString(Collection<org.eclipse.aether.artifact.Artifact> collection,
boolean multiLine)
Convert a collection of artifacts to a human-readable string.
|
static Path |
getEffectiveModelPath(org.eclipse.aether.artifact.Artifact artifact) |
static Path |
getRawModelPath(org.eclipse.aether.artifact.Artifact artifact) |
static String |
getScope(org.eclipse.aether.artifact.Artifact artifact) |
static String |
getStereotype(org.eclipse.aether.artifact.Artifact artifact) |
static void |
serialize(org.eclipse.aether.artifact.Artifact artifact,
org.codehaus.plexus.util.xml.pull.XmlSerializer serializer,
String namespace,
String tag) |
static org.eclipse.aether.artifact.Artifact |
setEffectiveModelPath(org.eclipse.aether.artifact.Artifact artifact,
Path effectiveModelPath) |
static org.eclipse.aether.artifact.Artifact |
setProperty(org.eclipse.aether.artifact.Artifact artifact,
String key,
String value) |
static org.eclipse.aether.artifact.Artifact |
setRawModelPath(org.eclipse.aether.artifact.Artifact artifact,
Path rawModelPath) |
static org.eclipse.aether.artifact.Artifact |
setScope(org.eclipse.aether.artifact.Artifact artifact,
String scope) |
static org.eclipse.aether.artifact.Artifact |
setStereotype(org.eclipse.aether.artifact.Artifact artifact,
String stereotype) |
static org.codehaus.plexus.util.xml.Xpp3Dom |
toXpp3Dom(org.eclipse.aether.artifact.Artifact artifact,
String tag) |
public static final String DEFAULT_EXTENSION
public static final String DEFAULT_VERSION
public static final org.eclipse.aether.artifact.Artifact DUMMY
public static final org.eclipse.aether.artifact.Artifact DUMMY_JPP
DUMMY
, but in JPP style. Any dependencies on this artifact will be removed during model
validation.public static org.eclipse.aether.artifact.Artifact setProperty(org.eclipse.aether.artifact.Artifact artifact, String key, String value)
public static String getScope(org.eclipse.aether.artifact.Artifact artifact)
public static org.eclipse.aether.artifact.Artifact setScope(org.eclipse.aether.artifact.Artifact artifact, String scope)
public static String getStereotype(org.eclipse.aether.artifact.Artifact artifact)
public static org.eclipse.aether.artifact.Artifact setStereotype(org.eclipse.aether.artifact.Artifact artifact, String stereotype)
public static Path getRawModelPath(org.eclipse.aether.artifact.Artifact artifact)
public static org.eclipse.aether.artifact.Artifact setRawModelPath(org.eclipse.aether.artifact.Artifact artifact, Path rawModelPath)
public static Path getEffectiveModelPath(org.eclipse.aether.artifact.Artifact artifact)
public static org.eclipse.aether.artifact.Artifact setEffectiveModelPath(org.eclipse.aether.artifact.Artifact artifact, Path effectiveModelPath)
public static String collectionToString(Collection<org.eclipse.aether.artifact.Artifact> set)
collection
- collection of artifactspublic static String collectionToString(Collection<org.eclipse.aether.artifact.Artifact> collection, boolean multiLine)
collection
- collection of artifactsmultiLine
- if multi-line representation should be used instead of single-linepublic static org.codehaus.plexus.util.xml.Xpp3Dom toXpp3Dom(org.eclipse.aether.artifact.Artifact artifact, String tag)
public static void serialize(org.eclipse.aether.artifact.Artifact artifact, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer, String namespace, String tag) throws IOException
IOException
Copyright © 2012–2013 Red Hat, Inc.. All rights reserved.