@Component(role=ArchetypeDataSource.class, hint="remote-catalog") public class RemoteCatalogArchetypeDataSource extends CatalogArchetypeDataSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REPOSITORY_ID
Id of the repository used to download catalog file.
|
static java.lang.String |
REPOSITORY_PROPERTY |
private org.apache.maven.artifact.manager.WagonManager |
wagonManager |
ARCHETYPE_CATALOG_FILENAME, ARCHETYPE_CATALOG_PROPERTY, DEFAULT_ARCHETYPE_CATALOG, MAVEN_CONFIGURATION, USER_HOME
ROLE
Constructor and Description |
---|
RemoteCatalogArchetypeDataSource() |
Modifier and Type | Method and Description |
---|---|
private void |
disconnectWagon(org.apache.maven.wagon.Wagon wagon) |
private ArchetypeCatalog |
downloadCatalog(java.lang.String repositoryPath,
java.lang.String filename) |
ArchetypeCatalog |
getArchetypeCatalog(java.util.Properties properties) |
void |
updateCatalog(java.util.Properties properties,
Archetype archetype) |
readCatalog, writeLocalCatalog
@Requirement private org.apache.maven.artifact.manager.WagonManager wagonManager
public static final java.lang.String REPOSITORY_PROPERTY
public static final java.lang.String REPOSITORY_ID
public ArchetypeCatalog getArchetypeCatalog(java.util.Properties properties) throws ArchetypeDataSourceException
getArchetypeCatalog
in interface ArchetypeDataSource
getArchetypeCatalog
in class CatalogArchetypeDataSource
ArchetypeDataSourceException
public void updateCatalog(java.util.Properties properties, Archetype archetype) throws ArchetypeDataSourceException
updateCatalog
in interface ArchetypeDataSource
updateCatalog
in class CatalogArchetypeDataSource
ArchetypeDataSourceException
private ArchetypeCatalog downloadCatalog(java.lang.String repositoryPath, java.lang.String filename) throws org.apache.maven.wagon.WagonException, java.io.IOException, ArchetypeDataSourceException
org.apache.maven.wagon.WagonException
java.io.IOException
ArchetypeDataSourceException
private void disconnectWagon(org.apache.maven.wagon.Wagon wagon)