@ApplicationScoped public class M2RepoServiceImpl extends Object implements M2RepoService, ExtendedM2RepoService
| Constructor and Description |
|---|
M2RepoServiceImpl() |
M2RepoServiceImpl(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(String baseURL) |
PageResponse<JarListPageRow> |
listArtifacts(JarListPageRequest pageRequest) |
GAV |
loadGAVFromJar(String path) |
public M2RepoServiceImpl()
@Inject public M2RepoServiceImpl(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(String baseURL)
getRepositoryURL in interface M2RepoServicebaseURL - the base URL where Guvnor M2 repo is hosted in web container. return a Guvnor M2 repo
URL point to local file system if baseURL is not available.Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.