Class RemoteCatalogArchetypeDataSource
java.lang.Object
org.apache.maven.archetype.source.CatalogArchetypeDataSource
org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource
- All Implemented Interfaces:
ArchetypeDataSource
@Named("remote-catalog")
@Singleton
public class RemoteCatalogArchetypeDataSource
extends CatalogArchetypeDataSource
implements ArchetypeDataSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringId of the repository used to download catalog file.static final Stringprivate static final org.slf4j.Loggerprivate org.eclipse.aether.RepositorySystemFields inherited from interface ArchetypeDataSource
ARCHETYPE_CATALOG_FILENAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArchetypeCatalog(org.eclipse.aether.RepositorySystemSession repositorySession, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) private org.eclipse.aether.repository.RemoteRepositorygetRemoteRepo(List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) updateCatalog(org.eclipse.aether.RepositorySystemSession repositorySession, Archetype archetype) Methods inherited from class CatalogArchetypeDataSource
readCatalog, writeLocalCatalog
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
repositorySystem
@Inject private org.eclipse.aether.RepositorySystem repositorySystem -
ARCHETYPE_REPOSITORY_ID
Id of the repository used to download catalog file. Proxy or authentication info can be setup in settings.xml.- See Also:
-
CENTRAL_REPOSITORY_ID
- See Also:
-
-
Constructor Details
-
RemoteCatalogArchetypeDataSource
public RemoteCatalogArchetypeDataSource()
-
-
Method Details
-
getArchetypeCatalog
public ArchetypeCatalog getArchetypeCatalog(org.eclipse.aether.RepositorySystemSession repositorySession, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) throws ArchetypeDataSourceException - Specified by:
getArchetypeCatalogin interfaceArchetypeDataSource- Throws:
ArchetypeDataSourceException
-
getRemoteRepo
private org.eclipse.aether.repository.RemoteRepository getRemoteRepo(List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) -
updateCatalog
public File updateCatalog(org.eclipse.aether.RepositorySystemSession repositorySession, Archetype archetype) throws ArchetypeDataSourceException - Specified by:
updateCatalogin interfaceArchetypeDataSource- Throws:
ArchetypeDataSourceException
-