org.jvnet.hudson.update_center
Class MavenRepository

java.lang.Object
  extended by org.jvnet.hudson.update_center.MavenRepository
Direct Known Subclasses:
MavenRepositoryImpl

public abstract class MavenRepository
extends Object

A collection of artifacts from which we build index.

Author:
Kohsuke Kawaguchi

Constructor Summary
MavenRepository()
           
 
Method Summary
abstract  TreeMap<VersionNumber,HudsonWar> getHudsonWar()
          Discover all hudson.war versions.
abstract  Collection<PluginHistory> listHudsonPlugins()
          Discover all plugins from this Maven repository.
 Map<Date,Map<String,HPI>> listHudsonPluginsByReleaseDate()
          Discover all plugins from this Maven repository in order released, not using PluginHistory.
protected  File resolve(org.sonatype.nexus.index.ArtifactInfo a)
           
protected abstract  File resolve(org.sonatype.nexus.index.ArtifactInfo a, String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenRepository

public MavenRepository()
Method Detail

listHudsonPlugins

public abstract Collection<PluginHistory> listHudsonPlugins()
                                                     throws org.codehaus.plexus.PlexusContainerException,
                                                            org.codehaus.plexus.component.repository.exception.ComponentLookupException,
                                                            IOException,
                                                            org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException,
                                                            org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Discover all plugins from this Maven repository.

Throws:
org.codehaus.plexus.PlexusContainerException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
IOException
org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException

listHudsonPluginsByReleaseDate

public Map<Date,Map<String,HPI>> listHudsonPluginsByReleaseDate()
                                                         throws org.codehaus.plexus.PlexusContainerException,
                                                                org.codehaus.plexus.component.repository.exception.ComponentLookupException,
                                                                IOException,
                                                                org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException,
                                                                org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Discover all plugins from this Maven repository in order released, not using PluginHistory.

Throws:
org.codehaus.plexus.PlexusContainerException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
IOException
org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException

getHudsonWar

public abstract TreeMap<VersionNumber,HudsonWar> getHudsonWar()
                                                       throws IOException,
                                                              org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Discover all hudson.war versions.

Throws:
IOException
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException

resolve

protected File resolve(org.sonatype.nexus.index.ArtifactInfo a)
                throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Throws:
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException

resolve

protected abstract File resolve(org.sonatype.nexus.index.ArtifactInfo a,
                                String type)
                         throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Throws:
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException


Copyright © 2004-2011. All Rights Reserved.