public class NexusRepositoryManager extends RepositoryManager
| Modifier and Type | Field and Description |
|---|---|
NexusCache |
cache |
protected org.gcube.common.core.utils.logging.GCUBELog |
logger |
static NexusRepositoryManager |
singleton |
static String |
TEMPORARY_SA_FILE_NAME |
cacheEnabled, servers, SERVICE_ARCHIVE_IDENTIFIER| Constructor and Description |
|---|
NexusRepositoryManager(String[] mavenServerList,
boolean cacheEnabled) |
| Modifier and Type | Method and Description |
|---|---|
String |
extractDepsFromMavenEmb(String url)
Download pom file and extract Dependencies from maven repositories
|
String |
get(Object mavenC,
String extension,
String classifier)
Return the URL for download a maven object (pom, tar.gz, jar) that corresponds to the maven coordinates in input
|
String |
getSALocation(File tmpTargetDirectory,
List<MavenCoordinates> mcList,
Coordinates coordinates)
Get location of software archive
|
String |
searchArtifact(String baseUrl,
String groupName,
String artifact,
String extension,
String ver,
boolean pom,
String classifier)
Search a maven object (pom, jar, tar.gz) from a maven repository
|
public static final String TEMPORARY_SA_FILE_NAME
protected final org.gcube.common.core.utils.logging.GCUBELog logger
public NexusCache cache
public static NexusRepositoryManager singleton
public NexusRepositoryManager(String[] mavenServerList, boolean cacheEnabled)
public String get(Object mavenC, String extension, String classifier) throws MalformedURLException, ServiceNotAvaiableFault
RepositoryManagerget in class RepositoryManagerMalformedURLExceptionServiceNotAvaiableFaultpublic String extractDepsFromMavenEmb(String url) throws ServiceNotAvaiableFault
extractDepsFromMavenEmb in class RepositoryManagerurl: - url of the pom fileBadCoordinatesExceptionServiceNotAvaiableFaultpublic String searchArtifact(String baseUrl, String groupName, String artifact, String extension, String ver, boolean pom, String classifier) throws MalformedURLException
searchArtifact in class RepositoryManagerbaseUrl - base url of a maven repositorygroupName - groupIDartifact - artifactIDextension - type of extension: jar, pom, tar.gzver - version of the maven objectpom - true if the maven object searched is a pom fileMalformedURLExceptionpublic String getSALocation(File tmpTargetDirectory, List<MavenCoordinates> mcList, Coordinates coordinates) throws MalformedURLException, ServiceNotAvaiableFault, IOException, Exception
RepositoryManagergetSALocation in class RepositoryManagertmpTargetDirectory - mcList - MalformedURLExceptionServiceNotAvaiableFaultIOExceptionExceptionCopyright © 2014. All Rights Reserved.