org.apache.maven.shared.repository
Class DefaultRepositoryAssembler

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.shared.repository.DefaultRepositoryAssembler
All Implemented Interfaces:
RepositoryAssembler, LogEnabled, Contextualizable

public class DefaultRepositoryAssembler
extends AbstractLogEnabled
implements RepositoryAssembler, Contextualizable

Author:
Jason van Zyl
Plexus component:
role:
"org.apache.maven.shared.repository.RepositoryAssembler"
role-hint:
"default"

Field Summary
protected  org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
           
protected  org.apache.maven.artifact.repository.ArtifactRepositoryFactory artifactRepositoryFactory
           
protected  org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
           
protected  org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource
           
protected  org.apache.maven.project.MavenProjectBuilder projectBuilder
           
protected  org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout repositoryLayout
           
protected static TimeZone UTC_TIME_ZONE
           
protected static String UTC_TIMESTAMP_PATTERN
           
 
Fields inherited from interface org.apache.maven.shared.repository.RepositoryAssembler
ROLE
 
Constructor Summary
DefaultRepositoryAssembler()
           
DefaultRepositoryAssembler(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout repositoryLayout, org.apache.maven.artifact.repository.ArtifactRepositoryFactory artifactRepositoryFactory, org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource, org.apache.maven.project.MavenProjectBuilder projectBuilder)
           
 
Method Summary
 void buildRemoteRepository(File repositoryDirectory, RepositoryInfo repository, RepositoryBuilderConfigSource configSource)
           
 void contextualize(Context context)
           
protected  Map createGroupVersionAlignments(List versionAlignments)
           
protected  org.apache.maven.artifact.repository.ArtifactRepository createLocalRepository(File directory)
           
 org.apache.maven.artifact.repository.ArtifactRepository createRepository(String repositoryId, String repositoryUrl, boolean offline, boolean updateSnapshots, String globalChecksumPolicy)
           
protected static DateFormat getUtcDateFormatter()
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTC_TIME_ZONE

protected static final TimeZone UTC_TIME_ZONE

UTC_TIMESTAMP_PATTERN

protected static final String UTC_TIMESTAMP_PATTERN
See Also:
Constant Field Values

artifactFactory

protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
Plexus requirement

artifactResolver

protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver

repositoryLayout

protected org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout repositoryLayout
Plexus requirement

artifactRepositoryFactory

protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory artifactRepositoryFactory
Plexus requirement

metadataSource

protected org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource
Plexus requirement

projectBuilder

protected org.apache.maven.project.MavenProjectBuilder projectBuilder
Plexus requirement
Constructor Detail

DefaultRepositoryAssembler

public DefaultRepositoryAssembler()

DefaultRepositoryAssembler

public DefaultRepositoryAssembler(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
                                  org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
                                  org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout repositoryLayout,
                                  org.apache.maven.artifact.repository.ArtifactRepositoryFactory artifactRepositoryFactory,
                                  org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource,
                                  org.apache.maven.project.MavenProjectBuilder projectBuilder)
Method Detail

buildRemoteRepository

public void buildRemoteRepository(File repositoryDirectory,
                                  RepositoryInfo repository,
                                  RepositoryBuilderConfigSource configSource)
                           throws RepositoryAssemblyException
Specified by:
buildRemoteRepository in interface RepositoryAssembler
Throws:
RepositoryAssemblyException

createGroupVersionAlignments

protected Map createGroupVersionAlignments(List versionAlignments)

getUtcDateFormatter

protected static DateFormat getUtcDateFormatter()

createLocalRepository

protected org.apache.maven.artifact.repository.ArtifactRepository createLocalRepository(File directory)

createRepository

public org.apache.maven.artifact.repository.ArtifactRepository createRepository(String repositoryId,
                                                                                String repositoryUrl,
                                                                                boolean offline,
                                                                                boolean updateSnapshots,
                                                                                String globalChecksumPolicy)

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.