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
@Component(role=ArchetypeDataSource.class, hint="remote-catalog") public class RemoteCatalogArchetypeDataSource extends CatalogArchetypeDataSource implements ArchetypeDataSource
- Author:
- Jason van Zyl
-
-
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_ID-
Fields inherited from class org.apache.maven.archetype.source.CatalogArchetypeDataSource
ARCHETYPE_CATALOG_PROPERTY
-
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.apache.maven.project.ProjectBuildingRequest buildingRequest)voidupdateCatalog(org.apache.maven.project.ProjectBuildingRequest buildingRequest, Archetype archetype)-
Methods inherited from class org.apache.maven.archetype.source.CatalogArchetypeDataSource
readCatalog, writeLocalCatalog
-
-
-
-
Field Detail
-
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.apache.maven.project.ProjectBuildingRequest buildingRequest) throws ArchetypeDataSourceException
- Specified by:
getArchetypeCatalogin interfaceArchetypeDataSource- Throws:
ArchetypeDataSourceException
-
updateCatalog
public void updateCatalog(org.apache.maven.project.ProjectBuildingRequest buildingRequest, Archetype archetype) throws ArchetypeDataSourceException- Specified by:
updateCatalogin interfaceArchetypeDataSource- Throws:
ArchetypeDataSourceException
-
-