@ApplicationScoped public class M2RepoServiceImpl extends Object implements M2RepoService, ExtendedM2RepoService
Constructor and Description |
---|
M2RepoServiceImpl() |
M2RepoServiceImpl(GuvnorM2Repository repository) |
M2RepoServiceImpl(org.slf4j.Logger logger,
GuvnorM2Repository repository) |
Modifier and Type | Method and Description |
---|---|
void |
deployJar(InputStream is,
GAV gav)
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).
|
void |
deployJarInternal(InputStream is,
GAV gav)
Convenience method for unit tests - to avoid deploying to additional (possibly external) repositories
|
void |
deployPom(InputStream is,
GAV gav)
Deploy POM to local Maven Repository and Workbench's remote Maven Repository.
|
String |
getKieDeploymentDescriptorText(String path) |
String |
getKModuleText(String path) |
String |
getPomText(String path) |
String |
getRepositoryURL()
URL point to local file system if URL property is not available.
|
PageResponse<JarListPageRow> |
listArtifacts(JarListPageRequest pageRequest) |
GAV |
loadGAVFromJar(String path) |
public M2RepoServiceImpl()
@Inject public M2RepoServiceImpl(GuvnorM2Repository repository)
public M2RepoServiceImpl(org.slf4j.Logger logger, GuvnorM2Repository repository)
public void deployJar(InputStream is, GAV gav)
ExtendedM2RepoService
deployJar
in interface ExtendedM2RepoService
is
- InputStream holding JARgav
- GAV representing the JARpublic void deployJarInternal(InputStream is, GAV gav)
ExtendedM2RepoService
deployJarInternal
in interface ExtendedM2RepoService
is
- InputStream holding JARgav
- GAV representing the JARpublic void deployPom(InputStream is, GAV gav)
ExtendedM2RepoService
deployPom
in interface ExtendedM2RepoService
is
- InputStream holding POMgav
- GAV representing the POMpublic String getPomText(String path)
getPomText
in interface M2RepoService
public GAV loadGAVFromJar(String path)
loadGAVFromJar
in interface M2RepoService
public PageResponse<JarListPageRow> listArtifacts(JarListPageRequest pageRequest)
listArtifacts
in interface M2RepoService
public String getRepositoryURL()
getRepositoryURL
in interface M2RepoService
public String getKModuleText(String path)
getKModuleText
in interface M2RepoService
public String getKieDeploymentDescriptorText(String path)
getKieDeploymentDescriptorText
in interface M2RepoService
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.