public class MavenRepositoryImpl extends MavenRepository
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
af |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
ar |
protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory |
arf |
static hudson.util.VersionNumber |
CUT_OFF
Hudson -> Jenkins cut-over version.
|
protected org.sonatype.nexus.index.NexusIndexer |
indexer |
protected org.apache.maven.artifact.repository.ArtifactRepository |
local |
protected static org.apache.maven.artifact.repository.ArtifactRepositoryPolicy |
POLICY |
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepositories |
| Constructor and Description |
|---|
MavenRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRemoteRepository(String id,
File indexDirectory,
URL repository) |
void |
addRemoteRepository(String id,
URL repository) |
void |
addRemoteRepository(String id,
URL remoteIndex,
URL repository) |
protected HPI |
createHpiArtifact(org.sonatype.nexus.index.ArtifactInfo a,
PluginHistory p) |
protected HudsonWar |
createHudsonWarArtifact(org.sonatype.nexus.index.ArtifactInfo a) |
TreeMap<hudson.util.VersionNumber,HudsonWar> |
getHudsonWar()
Discover all hudson.war versions.
|
org.codehaus.plexus.PlexusContainer |
getPlexus()
Plexus container that's hosting the Maven components.
|
Collection<PluginHistory> |
listHudsonPlugins()
Discover all plugins from this Maven repository.
|
protected File |
resolve(org.sonatype.nexus.index.ArtifactInfo a,
String type,
String classifier) |
void |
setMaxPlugins(Integer maxPlugins) |
findPlugin, listHudsonPluginsByReleaseDate, resolveprotected org.sonatype.nexus.index.NexusIndexer indexer
protected org.apache.maven.artifact.factory.ArtifactFactory af
protected org.apache.maven.artifact.resolver.ArtifactResolver ar
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
protected org.apache.maven.artifact.repository.ArtifactRepository local
protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory arf
protected static final org.apache.maven.artifact.repository.ArtifactRepositoryPolicy POLICY
public static final hudson.util.VersionNumber CUT_OFF
public void setMaxPlugins(Integer maxPlugins)
public org.codehaus.plexus.PlexusContainer getPlexus()
public void addRemoteRepository(String id, File indexDirectory, URL repository) throws IOException, org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException
id - Repository ID. This ID has to match the ID in the repository index, due to a design bug in Maven.indexDirectory - Directory that contains exploded index zip file.repository - URL of the Maven repository. Used to resolve artifacts.IOExceptionorg.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexExceptionpublic void addRemoteRepository(String id, URL repository) throws IOException, org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException
IOExceptionorg.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexExceptionpublic void addRemoteRepository(String id, URL remoteIndex, URL repository) throws IOException, org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException
IOExceptionorg.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexExceptionprotected File resolve(org.sonatype.nexus.index.ArtifactInfo a, String type, String classifier) throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
resolve in class MavenRepositoryorg.apache.maven.artifact.resolver.AbstractArtifactResolutionExceptionpublic 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
MavenRepositorylistHudsonPlugins in class MavenRepositoryorg.codehaus.plexus.PlexusContainerExceptionorg.codehaus.plexus.component.repository.exception.ComponentLookupExceptionIOExceptionorg.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexExceptionorg.apache.maven.artifact.resolver.AbstractArtifactResolutionExceptionpublic TreeMap<hudson.util.VersionNumber,HudsonWar> getHudsonWar() throws IOException, org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
MavenRepositorygetHudsonWar in class MavenRepositoryIOExceptionorg.apache.maven.artifact.resolver.AbstractArtifactResolutionExceptionprotected HPI createHpiArtifact(org.sonatype.nexus.index.ArtifactInfo a, PluginHistory p) throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
org.apache.maven.artifact.resolver.AbstractArtifactResolutionExceptionprotected HudsonWar createHudsonWarArtifact(org.sonatype.nexus.index.ArtifactInfo a)
Copyright © 2004-2012. All Rights Reserved.