public class NexusRestConnector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.common.core.utils.logging.GCUBELog |
logger |
| Constructor and Description |
|---|
NexusRestConnector() |
| Modifier and Type | Method and Description |
|---|---|
File |
byteToFile(String cfgDir,
String fileName,
byte[] data)
Trasforms a byte array in a file object
|
String |
extractDepsFromPomByMavenEmb(byte[] pomByte,
String[] repositorieServers)
Extracts dependencies from a list of maven repositories
|
byte[] |
getAsByteArray(URL url)
Return a byte array of the maven object downloaded
|
void |
searchAllRepoMavenInfo(String baseUrl) |
String |
searchArtifact(String baseUrl,
String groupName,
String artifact,
String extension,
String ver,
boolean pom)
Search a maven object (pom, jar, tar.gz) from a maven repository
|
public void searchAllRepoMavenInfo(String baseUrl)
public String searchArtifact(String baseUrl, String groupName, String artifact, String extension, String ver, boolean pom) throws MalformedURLException
baseUrl - 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 byte[] getAsByteArray(URL url) throws IOException
url - IOExceptionpublic String extractDepsFromPomByMavenEmb(byte[] pomByte, String[] repositorieServers) throws BadCoordinatesException, Exception
pomByte - repositorieServers - is - BadCoordinatesExceptionExceptionpublic File byteToFile(String cfgDir, String fileName, byte[] data)
fileName - data - IOExceptionCopyright © 2015. All Rights Reserved.