org.jvnet.hudson.update_center
Class VersionCappedMavenRepository

java.lang.Object
  extended by org.jvnet.hudson.update_center.MavenRepository
      extended by org.jvnet.hudson.update_center.VersionCappedMavenRepository

public class VersionCappedMavenRepository
extends MavenRepository

Delegating MavenRepository to limit the data to the subset compatible with the specific version.

Author:
Kohsuke Kawaguchi

Constructor Summary
VersionCappedMavenRepository(MavenRepository base, hudson.util.VersionNumber cap)
           
 
Method Summary
 TreeMap<hudson.util.VersionNumber,HudsonWar> getHudsonWar()
          Discover all hudson.war versions.
 Collection<PluginHistory> listHudsonPlugins()
          Discover all plugins from this Maven repository.
 File resolve(org.sonatype.nexus.index.ArtifactInfo a, String type, String classifier)
           
 
Methods inherited from class org.jvnet.hudson.update_center.MavenRepository
findPlugin, listHudsonPluginsByReleaseDate, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionCappedMavenRepository

public VersionCappedMavenRepository(MavenRepository base,
                                    hudson.util.VersionNumber cap)
Method Detail

getHudsonWar

public TreeMap<hudson.util.VersionNumber,HudsonWar> getHudsonWar()
                                                          throws IOException,
                                                                 org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Description copied from class: MavenRepository
Discover all hudson.war versions.

Specified by:
getHudsonWar in class MavenRepository
Throws:
IOException
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException

listHudsonPlugins

public 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
Description copied from class: MavenRepository
Discover all plugins from this Maven repository.

Specified by:
listHudsonPlugins in class MavenRepository
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

resolve

public File resolve(org.sonatype.nexus.index.ArtifactInfo a,
                    String type,
                    String classifier)
             throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
Specified by:
resolve in class MavenRepository
Throws:
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException


Copyright © 2004-2012. All Rights Reserved.