class MetadataUtils
extends java.lang.Object
| Constructor and Description |
|---|
MetadataUtils() |
| Modifier and Type | Method and Description |
|---|---|
private static org.codehaus.plexus.util.xml.Xpp3Dom |
addChild(org.codehaus.plexus.util.xml.Xpp3Dom parent,
java.lang.String childName,
java.lang.String childValue) |
private static org.codehaus.plexus.util.xml.Xpp3Dom |
addChildren(org.codehaus.plexus.util.xml.Xpp3Dom parent,
java.lang.String childName,
java.util.Collection<java.lang.String> childValues) |
static void |
createMetadata(java.io.File file,
org.apache.maven.artifact.Artifact artifact)
Creates local metadata files for the specified artifact.
|
private static org.codehaus.plexus.util.xml.Xpp3Dom |
readMetadata(java.io.File metadataFile) |
private static void |
writeMetadata(java.io.File metadataFile,
org.codehaus.plexus.util.xml.Xpp3Dom metadata) |
public static void createMetadata(java.io.File file,
org.apache.maven.artifact.Artifact artifact)
throws java.io.IOException
file - The artifact's file in the local test repository, must not be null.artifact - The artifact to create metadata for, must not be null.java.io.IOException - If the metadata could not be created.private static org.codehaus.plexus.util.xml.Xpp3Dom addChild(org.codehaus.plexus.util.xml.Xpp3Dom parent,
java.lang.String childName,
java.lang.String childValue)
private static org.codehaus.plexus.util.xml.Xpp3Dom addChildren(org.codehaus.plexus.util.xml.Xpp3Dom parent,
java.lang.String childName,
java.util.Collection<java.lang.String> childValues)
private static org.codehaus.plexus.util.xml.Xpp3Dom readMetadata(java.io.File metadataFile)
throws java.io.IOException
java.io.IOExceptionprivate static void writeMetadata(java.io.File metadataFile,
org.codehaus.plexus.util.xml.Xpp3Dom metadata)
throws java.io.IOException
java.io.IOException