|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MavenUrlProvider
The definition of a URL provider for Maven 2 repositories.
Method Summary | |
---|---|
void |
configure(Properties properties)
Configure this provider given the configuration properties. |
URL |
getUrl(MavenId mavenId,
ArtifactType artifactType,
SignatureType signatureType,
boolean createIfRequired)
Get the URL for the artifact with the specified type in the given Maven project. |
Method Detail |
---|
void configure(Properties properties) throws MavenRepositoryException
MavenRepository
that instantiates this provider, and only once immediately after instantiation and before any calls
to getUrl(MavenId, ArtifactType, SignatureType, boolean)
.
properties
- the configuration properties
MavenRepositoryException
- if there is a problem connecting to or using the Maven repository, as configuredURL getUrl(MavenId mavenId, ArtifactType artifactType, SignatureType signatureType, boolean createIfRequired) throws MalformedURLException, MavenRepositoryException
connect
to the repository to read
or
write
the artifact's content.
mavenId
- the ID of the Maven project; may not be nullartifactType
- the type of artifact; may be null, but the URL will not be able to be read or written tosignatureType
- the type of signature; may be null if the signature file is not desiredcreateIfRequired
- true if the node structure should be created if any part of it does not exist; this always expects
that the path to the top of the repository tree exists.
MalformedURLException
- if the supplied information cannot be turned into a valid URL
MavenRepositoryException
- if there is a problem connecting to or using the Maven repository, as configured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |