Package org.sonatype.nexus.templates.repository

Examples of org.sonatype.nexus.templates.repository.ManuallyConfiguredRepositoryTemplate


        // UGLY HACK
        // This is all broken here, the conversions that happens (Repo REST DTO -> CRepo DTO -> Repo creation)
        // is simply damn too stupid.
        // All this should be removed, and do not use C* config classes anymore in REST API (see NEXUS-2505).
        // For now, this is a "backdoor", using manual template when we have a CRepo object.
        ManuallyConfiguredRepositoryTemplate template =
            repositoryTemplateProvider.createManuallyTemplate(new CRepositoryCoreConfiguration(
                repositoryTemplateProvider.getApplicationConfiguration(), config, null));

        template.create();

        getNexusConfiguration().saveConfiguration();
      }
      catch (ConfigurationException e) {
        handleConfigurationException(e);
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.templates.repository.ManuallyConfiguredRepositoryTemplate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.