@Test( expected = InstallationException.class ) public void testMetadataDestinationEqualsSource() throws Exception { String path = session.getLocalRepositoryManager().getPathForLocalMetadata( metadata ); File file = new File( session.getLocalRepository().getBasedir(), path ); metadata = metadata.setFile( file ); TestFileUtils.writeString( file, "test" ); request.addMetadata( metadata ); installer.install( session, request ); }
public InstallResult install( RepositorySystemSession session, InstallRequest request ) throws InstallationException { SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return install( syncContext, session, request ); } finally { syncContext.close(); } }
DefaultInstaller implements Installer, Service { public InstallResult install( RepositorySystemSession session, InstallRequest request ) throws InstallationException { SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return install( syncContext, session, request ); } finally { syncContext.close(); } } }
DefaultInstaller implements Installer, Service { public InstallResult install( RepositorySystemSession session, InstallRequest request ) throws InstallationException { SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return install( syncContext, session, request ); } finally { syncContext.close(); } } DefaultInstaller(); @Inject  DefaultInstaller( FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher,
                      Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory,
                      LoggerFactory loggerFactory ); }
DefaultInstaller implements Installer, Service { public InstallResult install( RepositorySystemSession session, InstallRequest request ) throws InstallationException { SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return install( syncContext, session, request ); } finally { syncContext.close(); } } DefaultInstaller(); @Inject  DefaultInstaller( FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher,
                      Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory,
                      LoggerFactory loggerFactory ); void initService( ServiceLocator locator ); DefaultInstaller setLoggerFactory( LoggerFactory loggerFactory ); DefaultInstaller setFileProcessor( FileProcessor fileProcessor ); DefaultInstaller setRepositoryEventDispatcher( RepositoryEventDispatcher repositoryEventDispatcher ); DefaultInstaller addMetadataGeneratorFactory( MetadataGeneratorFactory factory ); DefaultInstaller setMetadataGeneratorFactories( Collection<MetadataGeneratorFactory> metadataFactories ); DefaultInstaller setSyncContextFactory( SyncContextFactory syncContextFactory ); InstallResult install( RepositorySystemSession session, InstallRequest request ); }
DefaultInstaller implements Installer, Service { public InstallResult install( RepositorySystemSession session, InstallRequest request ) throws InstallationException { SyncContext syncContext = syncContextFactory.newInstance( session, false ); try { return install( syncContext, session, request ); } finally { syncContext.close(); } } DefaultInstaller(); @Inject  DefaultInstaller( FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher,
                      Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory,
                      LoggerFactory loggerFactory ); void initService( ServiceLocator locator ); DefaultInstaller setLoggerFactory( LoggerFactory loggerFactory ); DefaultInstaller setFileProcessor( FileProcessor fileProcessor ); DefaultInstaller setRepositoryEventDispatcher( RepositoryEventDispatcher repositoryEventDispatcher ); DefaultInstaller addMetadataGeneratorFactory( MetadataGeneratorFactory factory ); DefaultInstaller setMetadataGeneratorFactories( Collection<MetadataGeneratorFactory> metadataFactories ); DefaultInstaller setSyncContextFactory( SyncContextFactory syncContextFactory ); InstallResult install( RepositorySystemSession session, InstallRequest request );  }