Package org.apache.karaf.tooling.utils
Class ReactorMavenResolver
- java.lang.Object
-
- org.apache.karaf.tooling.utils.ReactorMavenResolver
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.ops4j.pax.url.mvn.MavenResolver
public class ReactorMavenResolver extends Object implements org.ops4j.pax.url.mvn.MavenResolver
MavenResolverthat may look up artifacts inside Maven reactor
-
-
Constructor Summary
Constructors Constructor Description ReactorMavenResolver(org.eclipse.aether.repository.WorkspaceReader reactor, org.ops4j.pax.url.mvn.MavenResolver fallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.ops4j.pax.url.mvn.MavenResolver.RetryChanceisRetryableException(Exception exception)Fileresolve(String url)Fileresolve(String url, Exception previousException)Fileresolve(String groupId, String artifactId, String classifier, String extension, String version)Fileresolve(String groupId, String artifactId, String classifier, String extension, String version, Exception previousException)FileresolveMetadata(String groupId, String artifactId, String type, String version)FileresolveMetadata(String groupId, String artifactId, String type, String version, Exception previousException)voidupload(String groupId, String artifactId, String classifier, String extension, String version, File artifact)voiduploadMetadata(String groupId, String artifactId, String type, String version, File artifact)
-
-
-
Method Detail
-
resolve
public File resolve(String url) throws IOException
- Specified by:
resolvein interfaceorg.ops4j.pax.url.mvn.MavenResolver- Throws:
IOException
-
resolve
public File resolve(String url, Exception previousException) throws IOException
- Specified by:
resolvein interfaceorg.ops4j.pax.url.mvn.MavenResolver- Throws:
IOException
-
resolve
public File resolve(String groupId, String artifactId, String classifier, String extension, String version) throws IOException
- Specified by:
resolvein interfaceorg.ops4j.pax.url.mvn.MavenResolver- Throws:
IOException
-
resolve
public File resolve(String groupId, String artifactId, String classifier, String extension, String version, Exception previousException) throws IOException
- Specified by:
resolvein interfaceorg.ops4j.pax.url.mvn.MavenResolver- Throws:
IOException
-
resolveMetadata
public File resolveMetadata(String groupId, String artifactId, String type, String version) throws IOException
- Specified by:
resolveMetadatain interfaceorg.ops4j.pax.url.mvn.MavenResolver- Throws:
IOException
-
resolveMetadata
public File resolveMetadata(String groupId, String artifactId, String type, String version, Exception previousException) throws IOException
- Specified by:
resolveMetadatain interfaceorg.ops4j.pax.url.mvn.MavenResolver- Throws:
IOException
-
upload
public void upload(String groupId, String artifactId, String classifier, String extension, String version, File artifact) throws IOException
- Specified by:
uploadin interfaceorg.ops4j.pax.url.mvn.MavenResolver- Throws:
IOException
-
uploadMetadata
public void uploadMetadata(String groupId, String artifactId, String type, String version, File artifact) throws IOException
- Specified by:
uploadMetadatain interfaceorg.ops4j.pax.url.mvn.MavenResolver- Throws:
IOException
-
isRetryableException
public org.ops4j.pax.url.mvn.MavenResolver.RetryChance isRetryableException(Exception exception)
- Specified by:
isRetryableExceptionin interfaceorg.ops4j.pax.url.mvn.MavenResolver
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-