Hi, 

our developers use Maven for their (local) builds which stores artifacts in 
the local filesystem (~/.m2/repository)
The build server uses the same build - and uploads artifact to a repository 
server (Nexus), which is a quite common setup I guess.

Now we have introduced Ansible - for deployment purposes, which works quite 
good.
It´s accessing the Nexus URL - and downloads the needed artifacts.

>From developement side it would be useful to be also able to use the local 
filesystem repository (~/.m2/repository) first, 
before looking in the remote repository (Nexus).
Of course we can "wrap" this inside a role, introduce some properties to 
switch between local and remote repository and so on, 
but for me this looks like re-inventing the wheel.

Much more smarter may be to use "Aether" as the API to access the artifact 
repository, because than we can rely on it´s functionality 
to cache downloaded artifacts, to handle updated SNAPSHOT versions and so 
on.
Another benefit would be, that whenever a Maven build has already 
downloaded an artifact to the (local) repository, the Ansible run
can use this, too, so the Maven repository behaves like a "Ansible get_url 
cache".

Has anyone setup this already? Or other ideas to integrate Maven´s 
repository with Ansible ?

Thanx for any advice, 

Torsten


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6f9cd789-75fb-4a9e-91e0-a2df75afb1ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to