@ApplicationScoped public class M2RepoServiceImpl extends Object implements M2RepoService, ExtendedM2RepoService
| Constructor and Description |
|---|
M2RepoServiceImpl() |
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 |
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(org.slf4j.Logger logger,
GuvnorM2Repository repository)
public void deployJar(InputStream is, GAV gav)
ExtendedM2RepoServicedeployJar in interface ExtendedM2RepoServiceis - InputStream holding JARgav - GAV representing the JARpublic void deployJarInternal(InputStream is, GAV gav)
ExtendedM2RepoServicedeployJarInternal in interface ExtendedM2RepoServiceis - InputStream holding JARgav - GAV representing the JARpublic void deployPom(InputStream is, GAV gav)
ExtendedM2RepoServicedeployPom in interface ExtendedM2RepoServiceis - InputStream holding POMgav - GAV representing the POMpublic String getPomText(String path)
getPomText in interface M2RepoServicepublic GAV loadGAVFromJar(String path)
loadGAVFromJar in interface M2RepoServicepublic PageResponse<JarListPageRow> listArtifacts(JarListPageRequest pageRequest)
listArtifacts in interface M2RepoServicepublic String getRepositoryURL()
getRepositoryURL in interface M2RepoServiceCopyright © 2012–2018 JBoss by Red Hat. All rights reserved.