[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aether-users] How to create custom provider ?
|
Hi,
Context :
I try to create a script (java, scala, ...) runner. The script include info about dependencies + repositories. I used aether to download artifact from maven repository and to create the classpath.
Now I would like the script to be able to use other script from local fs or http (gist, github, ...) . I imagine to use aether to manage dependency script (recursively) : download, cache (script and build).
I imagine to create a Custom provider to provide :
* Metadata extracted from the script (I don't plan to use pom.xml for script)
* Artifact (jar or directory) result of script's compiler (compilation done on demand)
* May be a local repository to store/cache
Questions :
1. Is it a correct usage of aether ?
2. Can I manage dependencies from a maven provider AND from a custom provider ? Should they share the local repository ?
3. How to create a custom provider and to use/register it ?
4. Should I use "SNAPSHOT" or WorkspaceRepository for scripts in local file system ?
Sorry for so many questions in one shot, I explore possibility.
Thanks for any help (suggestion, reply, info, links, ...)
/davidB