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
- Author:
- Jason van Zyl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Id of the repository used to download catalog file.static final String
Fields inherited from interface org.apache.maven.archetype.source.ArchetypeDataSource
ARCHETYPE_CATALOG_FILENAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArchetypeCatalog
(org.eclipse.aether.RepositorySystemSession repositorySession, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) updateCatalog
(org.eclipse.aether.RepositorySystemSession repositorySession, Archetype archetype) Methods inherited from class org.apache.maven.archetype.source.CatalogArchetypeDataSource
readCatalog, writeLocalCatalog
-
Field Details
-
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:
getArchetypeCatalog
in interfaceArchetypeDataSource
- Throws:
ArchetypeDataSourceException
-
updateCatalog
public File updateCatalog(org.eclipse.aether.RepositorySystemSession repositorySession, Archetype archetype) throws ArchetypeDataSourceException - Specified by:
updateCatalog
in interfaceArchetypeDataSource
- Throws:
ArchetypeDataSourceException
-