Class M2RepoServiceImpl

    • Constructor Detail

      • M2RepoServiceImpl

        public M2RepoServiceImpl()
      • M2RepoServiceImpl

        public M2RepoServiceImpl​(org.slf4j.Logger logger,
                                 GuvnorM2Repository repository)
    • Method Detail

      • deployJar

        public void deployJar​(InputStream is,
                              org.guvnor.common.services.project.model.GAV gav)
        Description copied from interface: ExtendedM2RepoService
        Deploy JAR to all repositories (this includes Guvnor's internal Maven Repository, external Repositories configured by Distribution Management in the JAR's pom.xml and external Repositories configured by active Profiles in settings.xml).
        Specified by:
        deployJar in interface ExtendedM2RepoService
        Parameters:
        is - InputStream holding JAR
        gav - GAV representing the JAR
      • deployJarInternal

        public void deployJarInternal​(InputStream is,
                                      org.guvnor.common.services.project.model.GAV gav)
        Description copied from interface: ExtendedM2RepoService
        Convenience method for unit tests - to avoid deploying to additional (possibly external) repositories
        Specified by:
        deployJarInternal in interface ExtendedM2RepoService
        Parameters:
        is - InputStream holding JAR
        gav - GAV representing the JAR
      • deployPom

        public void deployPom​(InputStream is,
                              org.guvnor.common.services.project.model.GAV gav)
        Description copied from interface: ExtendedM2RepoService
        Deploy POM to local Maven Repository and Workbench's remote Maven Repository.
        Specified by:
        deployPom in interface ExtendedM2RepoService
        Parameters:
        is - InputStream holding POM
        gav - GAV representing the POM
      • getPomText

        public String getPomText​(String path)
        Specified by:
        getPomText in interface org.guvnor.m2repo.service.M2RepoService
      • loadGAVFromJar

        public org.guvnor.common.services.project.model.GAV loadGAVFromJar​(String path)
        Specified by:
        loadGAVFromJar in interface org.guvnor.m2repo.service.M2RepoService
      • listArtifacts

        public org.uberfire.paging.PageResponse<org.guvnor.m2repo.model.JarListPageRow> listArtifacts​(org.guvnor.m2repo.model.JarListPageRequest pageRequest)
        Specified by:
        listArtifacts in interface org.guvnor.m2repo.service.M2RepoService
      • getRepositoryURL

        public String getRepositoryURL()
        URL point to local file system if URL property is not available.
        Specified by:
        getRepositoryURL in interface org.guvnor.m2repo.service.M2RepoService
        Returns:
        String
      • getKModuleText

        public String getKModuleText​(String path)
        Specified by:
        getKModuleText in interface org.guvnor.m2repo.service.M2RepoService
      • getKieDeploymentDescriptorText

        public String getKieDeploymentDescriptorText​(String path)
        Specified by:
        getKieDeploymentDescriptorText in interface org.guvnor.m2repo.service.M2RepoService