org.jvnet.hudson.update_center
Class MavenArtifact
java.lang.Object
org.jvnet.hudson.update_center.MavenArtifact
- Direct Known Subclasses:
- HPI, HudsonWar
public class MavenArtifact
- extends Object
Artifact from a Maven repository and its metadata.
- Author:
- Kohsuke Kawaguchi
repository
public final MavenRepository repository
- Where did this plugin come from?
artifact
public final org.sonatype.nexus.index.ArtifactInfo artifact
version
public final String version
MavenArtifact
public MavenArtifact(MavenRepository repository,
org.sonatype.nexus.index.ArtifactInfo artifact)
resolve
public File resolve()
throws IOException
- Throws:
IOException
resolvePOM
public File resolvePOM()
throws IOException
- Throws:
IOException
toJSON
public net.sf.json.JSONObject toJSON(String name)
throws IOException
- Throws:
IOException
getVersion
public VersionNumber getVersion()
getTimestampAsString
public String getTimestampAsString()
throws IOException
- Throws:
IOException
getTimestampAsDate
public Date getTimestampAsDate()
throws IOException
- Throws:
IOException
getDateFormat
public static SimpleDateFormat getDateFormat()
getTimestamp
public long getTimestamp()
throws IOException
- Throws:
IOException
getManifestAttributes
public Attributes getManifestAttributes()
throws IOException
- Throws:
IOException
getURL
public URL getURL()
throws MalformedURLException
- Where to download from?
- Throws:
MalformedURLException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2004-2011. All Rights Reserved.