@Test( expected = DeploymentException.class ) public void testNullArtifactFile() throws DeploymentException { request.addArtifact( artifact.setFile( null ) ); deployer.deploy( session, request ); }
public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { try { Utils.checkOffline( session, offlineController, request.getRepository() ); } catch ( RepositoryOfflineException e ) { throw new DeploymentException( "Cannot deploy while " + request.getRepository().getId() + " (" + request.getRepository().getUrl() + ") is in offline mode", e ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.close(); } }
DefaultDeployer implements Deployer, Service { public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { try { Utils.checkOffline( session, offlineController, request.getRepository() ); } catch ( RepositoryOfflineException e ) { throw new DeploymentException( "Cannot deploy while " + request.getRepository().getId() + " (" + request.getRepository().getUrl() + ") is in offline mode", e ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.close(); } } }
DefaultDeployer implements Deployer, Service { public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { try { Utils.checkOffline( session, offlineController, request.getRepository() ); } catch ( RepositoryOfflineException e ) { throw new DeploymentException( "Cannot deploy while " + request.getRepository().getId() + " (" + request.getRepository().getUrl() + ") is in offline mode", e ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.close(); } } DefaultDeployer(); @Inject  DefaultDeployer( FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher,
                     RepositoryConnectorProvider repositoryConnectorProvider,
                     RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager,
                     Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory,
                     OfflineController offlineController, LoggerFactory loggerFactory ); }
DefaultDeployer implements Deployer, Service { public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { try { Utils.checkOffline( session, offlineController, request.getRepository() ); } catch ( RepositoryOfflineException e ) { throw new DeploymentException( "Cannot deploy while " + request.getRepository().getId() + " (" + request.getRepository().getUrl() + ") is in offline mode", e ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.close(); } } DefaultDeployer(); @Inject  DefaultDeployer( FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher,
                     RepositoryConnectorProvider repositoryConnectorProvider,
                     RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager,
                     Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory,
                     OfflineController offlineController, LoggerFactory loggerFactory ); void initService( ServiceLocator locator ); DefaultDeployer setLoggerFactory( LoggerFactory loggerFactory ); DefaultDeployer setFileProcessor( FileProcessor fileProcessor ); DefaultDeployer setRepositoryEventDispatcher( RepositoryEventDispatcher repositoryEventDispatcher ); DefaultDeployer setRepositoryConnectorProvider( RepositoryConnectorProvider repositoryConnectorProvider ); DefaultDeployer setRemoteRepositoryManager( RemoteRepositoryManager remoteRepositoryManager ); DefaultDeployer setUpdateCheckManager( UpdateCheckManager updateCheckManager ); DefaultDeployer addMetadataGeneratorFactory( MetadataGeneratorFactory factory ); DefaultDeployer setMetadataGeneratorFactories( Collection<MetadataGeneratorFactory> metadataFactories ); DefaultDeployer setSyncContextFactory( SyncContextFactory syncContextFactory ); DefaultDeployer setOfflineController( OfflineController offlineController ); DeployResult deploy( RepositorySystemSession session, DeployRequest request ); }
DefaultDeployer implements Deployer, Service { public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { try { Utils.checkOffline( session, offlineController, request.getRepository() ); } catch ( RepositoryOfflineException e ) { throw new DeploymentException( "Cannot deploy while " + request.getRepository().getId() + " (" + request.getRepository().getUrl() + ") is in offline mode", e ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.close(); } } DefaultDeployer(); @Inject  DefaultDeployer( FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher,
                     RepositoryConnectorProvider repositoryConnectorProvider,
                     RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager,
                     Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory,
                     OfflineController offlineController, LoggerFactory loggerFactory ); void initService( ServiceLocator locator ); DefaultDeployer setLoggerFactory( LoggerFactory loggerFactory ); DefaultDeployer setFileProcessor( FileProcessor fileProcessor ); DefaultDeployer setRepositoryEventDispatcher( RepositoryEventDispatcher repositoryEventDispatcher ); DefaultDeployer setRepositoryConnectorProvider( RepositoryConnectorProvider repositoryConnectorProvider ); DefaultDeployer setRemoteRepositoryManager( RemoteRepositoryManager remoteRepositoryManager ); DefaultDeployer setUpdateCheckManager( UpdateCheckManager updateCheckManager ); DefaultDeployer addMetadataGeneratorFactory( MetadataGeneratorFactory factory ); DefaultDeployer setMetadataGeneratorFactories( Collection<MetadataGeneratorFactory> metadataFactories ); DefaultDeployer setSyncContextFactory( SyncContextFactory syncContextFactory ); DefaultDeployer setOfflineController( OfflineController offlineController ); DeployResult deploy( RepositorySystemSession session, DeployRequest request );  }