@Singleton @Named public class DefaultDeployer extends Object implements Deployer, org.eclipse.aether.spi.locator.Service
Constructor and Description |
---|
DefaultDeployer() |
Modifier and Type | Method and Description |
---|---|
DefaultDeployer |
addMetadataGeneratorFactory(MetadataGeneratorFactory factory) |
org.eclipse.aether.deployment.DeployResult |
deploy(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.deployment.DeployRequest request)
Uploads a collection of artifacts and their accompanying metadata to a remote repository.
|
void |
initService(org.eclipse.aether.spi.locator.ServiceLocator locator) |
DefaultDeployer |
setFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor) |
DefaultDeployer |
setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories) |
DefaultDeployer |
setOfflineController(OfflineController offlineController) |
DefaultDeployer |
setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager) |
DefaultDeployer |
setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider) |
DefaultDeployer |
setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) |
DefaultDeployer |
setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory) |
DefaultDeployer |
setUpdateCheckManager(UpdateCheckManager updateCheckManager) |
public DefaultDeployer()
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
initService
in interface org.eclipse.aether.spi.locator.Service
public DefaultDeployer setFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor)
public DefaultDeployer setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
public DefaultDeployer setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider)
public DefaultDeployer setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager)
public DefaultDeployer setUpdateCheckManager(UpdateCheckManager updateCheckManager)
public DefaultDeployer addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
public DefaultDeployer setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories)
public DefaultDeployer setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
public DefaultDeployer setOfflineController(OfflineController offlineController)
public org.eclipse.aether.deployment.DeployResult deploy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request) throws org.eclipse.aether.deployment.DeploymentException
Deployer
deploy
in interface Deployer
session
- The repository session, must not be null
.request
- The deployment request, must not be null
.null
.org.eclipse.aether.deployment.DeploymentException
- If any artifact/metadata from the request could not be deployed.RepositorySystem.deploy(RepositorySystemSession, DeployRequest)
,
MetadataGeneratorFactory.newInstance(RepositorySystemSession, DeployRequest)
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.