@Service(value="legacyRepositoryConverter#default") public class DefaultLegacyRepositoryConverter extends Object implements LegacyRepositoryConverter
| Modifier and Type | Field and Description | 
|---|---|
private org.apache.maven.artifact.repository.ArtifactRepositoryFactory | 
artifactRepositoryFactory  | 
private org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout | 
defaultLayout  | 
private LegacyConverterArtifactConsumer | 
legacyConverterConsumer  | 
private RepositoryScanner | 
repoScanner  | 
| Constructor and Description | 
|---|
DefaultLegacyRepositoryConverter(PlexusSisuBridge plexusSisuBridge)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
convertLegacyRepository(File legacyRepositoryDirectory,
                       File repositoryDirectory,
                       List<String> fileExclusionPatterns)
Convert a legacy repository to a modern repository. 
 | 
private org.apache.maven.artifact.repository.ArtifactRepositoryFactory artifactRepositoryFactory
private org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout defaultLayout
@Inject @Named(value="knownRepositoryContentConsumer#artifact-legacy-to-default-converter") private LegacyConverterArtifactConsumer legacyConverterConsumer
@Inject private RepositoryScanner repoScanner
@Inject public DefaultLegacyRepositoryConverter(PlexusSisuBridge plexusSisuBridge) throws PlexusSisuBridgeException
PlexusSisuBridgeExceptionpublic void convertLegacyRepository(File legacyRepositoryDirectory, File repositoryDirectory, List<String> fileExclusionPatterns) throws RepositoryConversionException
LegacyRepositoryConverterconvertLegacyRepository in interface LegacyRepositoryConverterlegacyRepositoryDirectory - the directory of the legacy repository.repositoryDirectory - the directory of the modern repository.fileExclusionPatterns - the list of patterns to exclude from the conversion.RepositoryConversionExceptionCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.