@Test( expected = DeploymentException.class ) public void testNullMetadataFile() throws DeploymentException { request.addArtifact( artifact.setFile( null ) ); deployer.deploy( session, request ); }
public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { if ( session.isOffline() ) { throw new DeploymentException( "The repository system is in offline mode, deployment impossible" ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.release(); } }
DefaultDeployer implements Deployer, Service { public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { if ( session.isOffline() ) { throw new DeploymentException( "The repository system is in offline mode, deployment impossible" ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.release(); } } }
DefaultDeployer implements Deployer, Service { public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { if ( session.isOffline() ) { throw new DeploymentException( "The repository system is in offline mode, deployment impossible" ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.release(); } } DefaultDeployer();  DefaultDeployer( Logger logger, FileProcessor fileProcessor,
                            RepositoryEventDispatcher repositoryEventDispatcher,
                            RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager,
                            List<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory ); }
DefaultDeployer implements Deployer, Service { public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { if ( session.isOffline() ) { throw new DeploymentException( "The repository system is in offline mode, deployment impossible" ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.release(); } } DefaultDeployer();  DefaultDeployer( Logger logger, FileProcessor fileProcessor,
                            RepositoryEventDispatcher repositoryEventDispatcher,
                            RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager,
                            List<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory ); void initService( ServiceLocator locator ); DefaultDeployer setLogger( Logger logger ); DefaultDeployer setFileProcessor( FileProcessor fileProcessor ); DefaultDeployer setRepositoryEventDispatcher( RepositoryEventDispatcher repositoryEventDispatcher ); DefaultDeployer setRemoteRepositoryManager( RemoteRepositoryManager remoteRepositoryManager ); DefaultDeployer setUpdateCheckManager( UpdateCheckManager updateCheckManager ); DefaultDeployer addMetadataGeneratorFactory( MetadataGeneratorFactory factory ); DefaultDeployer setMetadataFactories( List<MetadataGeneratorFactory> metadataFactories ); DefaultDeployer setSyncContextFactory( SyncContextFactory syncContextFactory ); DeployResult deploy( RepositorySystemSession session, DeployRequest request ); }
DefaultDeployer implements Deployer, Service { public DeployResult deploy( RepositorySystemSession session, DeployRequest request ) throws DeploymentException { if ( session.isOffline() ) { throw new DeploymentException( "The repository system is in offline mode, deployment impossible" ); } SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return deploy( syncContext, session, request ); } finally { syncContext.release(); } } DefaultDeployer();  DefaultDeployer( Logger logger, FileProcessor fileProcessor,
                            RepositoryEventDispatcher repositoryEventDispatcher,
                            RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager,
                            List<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory ); void initService( ServiceLocator locator ); DefaultDeployer setLogger( Logger logger ); DefaultDeployer setFileProcessor( FileProcessor fileProcessor ); DefaultDeployer setRepositoryEventDispatcher( RepositoryEventDispatcher repositoryEventDispatcher ); DefaultDeployer setRemoteRepositoryManager( RemoteRepositoryManager remoteRepositoryManager ); DefaultDeployer setUpdateCheckManager( UpdateCheckManager updateCheckManager ); DefaultDeployer addMetadataGeneratorFactory( MetadataGeneratorFactory factory ); DefaultDeployer setMetadataFactories( List<MetadataGeneratorFactory> metadataFactories ); DefaultDeployer setSyncContextFactory( SyncContextFactory syncContextFactory ); DeployResult deploy( RepositorySystemSession session, DeployRequest request );  }