@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
PlexusSisuBridgeException
public void convertLegacyRepository(File legacyRepositoryDirectory, File repositoryDirectory, List<String> fileExclusionPatterns) throws RepositoryConversionException
LegacyRepositoryConverter
convertLegacyRepository
in interface LegacyRepositoryConverter
legacyRepositoryDirectory
- the directory of the legacy repository.repositoryDirectory
- the directory of the modern repository.fileExclusionPatterns
- the list of patterns to exclude from the conversion.RepositoryConversionException
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.