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 java.lang.Object

A collection of artifacts from which we build index.

Author:
Kohsuke Kawaguchi

Constructor Summary
MavenRepository()
           
 
Method Summary
abstract  java.util.TreeMap<VersionNumber,HudsonWar> getHudsonWar()
          Discover all hudson.war versions.
abstract  java.util.Collection<PluginHistory> listHudsonPlugins()
          Discover all plugins from this Maven repository.
 java.util.Map<java.util.Date,java.util.Map<java.lang.String,HPI>> listHudsonPluginsByReleaseDate()
          Discover all plugins from this Maven repository in order released, not using PluginHistory.
protected  java.io.File resolve(org.sonatype.nexus.index.ArtifactInfo a)
           
protected abstract  java.io.File resolve(org.sonatype.nexus.index.ArtifactInfo a, java.lang.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 java.util.Collection<PluginHistory> listHudsonPlugins()
                                                               throws org.codehaus.plexus.PlexusContainerException,
                                                                      org.codehaus.plexus.component.repository.exception.ComponentLookupException,
                                                                      java.io.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
java.io.IOException
org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException

listHudsonPluginsByReleaseDate

public java.util.Map<java.util.Date,java.util.Map<java.lang.String,HPI>> listHudsonPluginsByReleaseDate()
                                                                                                 throws org.codehaus.plexus.PlexusContainerException,
                                                                                                        org.codehaus.plexus.component.repository.exception.ComponentLookupException,
                                                                                                        java.io.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
java.io.IOException
org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException

getHudsonWar

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

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

resolve

protected java.io.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 java.io.File resolve(org.sonatype.nexus.index.ArtifactInfo a,
                                        java.lang.String type)
                                 throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Throws:
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException


Copyright © 2010. All Rights Reserved.