Class RemoteCatalogArchetypeDataSource
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.apache.maven.archetype.source.CatalogArchetypeDataSource
-
- org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource
-
- All Implemented Interfaces:
ArchetypeDataSource,org.codehaus.plexus.logging.LogEnabled
@Named("remote-catalog") @Singleton public class RemoteCatalogArchetypeDataSource extends CatalogArchetypeDataSource implements ArchetypeDataSource
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARCHETYPE_REPOSITORY_IDId of the repository used to download catalog file.static java.lang.StringCENTRAL_REPOSITORY_IDprivate org.eclipse.aether.RepositorySystemrepositorySystem-
Fields inherited from interface org.apache.maven.archetype.source.ArchetypeDataSource
ARCHETYPE_CATALOG_FILENAME
-
-
Constructor Summary
Constructors Constructor Description RemoteCatalogArchetypeDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchetypeCataloggetArchetypeCatalog(org.eclipse.aether.RepositorySystemSession repositorySession, java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories)private org.eclipse.aether.repository.RemoteRepositorygetRemoteRepo(java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories)java.io.FileupdateCatalog(org.eclipse.aether.RepositorySystemSession repositorySession, Archetype archetype)-
Methods inherited from class org.apache.maven.archetype.source.CatalogArchetypeDataSource
readCatalog, writeLocalCatalog
-
-
-
-
Field Detail
-
repositorySystem
@Inject private org.eclipse.aether.RepositorySystem repositorySystem
-
ARCHETYPE_REPOSITORY_ID
public static final java.lang.String ARCHETYPE_REPOSITORY_ID
Id of the repository used to download catalog file. Proxy or authentication info can be setup in settings.xml.- See Also:
- Constant Field Values
-
CENTRAL_REPOSITORY_ID
public static final java.lang.String CENTRAL_REPOSITORY_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getArchetypeCatalog
public ArchetypeCatalog getArchetypeCatalog(org.eclipse.aether.RepositorySystemSession repositorySession, java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) throws ArchetypeDataSourceException
- Specified by:
getArchetypeCatalogin interfaceArchetypeDataSource- Throws:
ArchetypeDataSourceException
-
getRemoteRepo
private org.eclipse.aether.repository.RemoteRepository getRemoteRepo(java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories)
-
updateCatalog
public java.io.File updateCatalog(org.eclipse.aether.RepositorySystemSession repositorySession, Archetype archetype) throws ArchetypeDataSourceException- Specified by:
updateCatalogin interfaceArchetypeDataSource- Throws:
ArchetypeDataSourceException
-
-