java.lang.Object
javax0.jamal.maven.input.MavenInput
- All Implemented Interfaces:
javax0.jamal.api.ResourceReader,javax0.jamal.api.ServiceLoaded
MavenInput can read a file which is inside an archive file in a Maven repository.
The format of the reference is
maven:groupId:artifactId:version:classifier:fileName
or
maven:groupId:artifactId:version::fileName
When there is no classifier then the actual resource is consulted only.
If there is a classifier then the dependency tree is followed to find the resource. In this latter case all the dependencies and resources are downloaded, even if the resource can be found in the actual artifact.
-
Constructor Details
-
MavenInput
public MavenInput()
-
-
Method Details
-
canRead
- Specified by:
canReadin interfacejavax0.jamal.api.ResourceReader
-
fileStart
- Specified by:
fileStartin interfacejavax0.jamal.api.ResourceReader
-
read
- Specified by:
readin interfacejavax0.jamal.api.ResourceReader- Throws:
IOException
-
read
- Specified by:
readin interfacejavax0.jamal.api.ResourceReader- Throws:
IOException
-