# integrate Maven repository API (Aether) into Ansible?

**URL:** <https://forum.ansible.com/t/integrate-maven-repository-api-aether-into-ansible/17763>\
**Category:** Ansible Project\
**Created:** [March 17, 2015, 10:34am UTC](https://forum.ansible.com/t/integrate-maven-repository-api-aether-into-ansible/17763 "2015-03-17T10:34:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torsten\_Reinhard](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Torsten\_Reinhard](https://forum.ansible.com/u/Torsten_Reinhard)\
**Post date:** [March 17, 2015, 10:34am UTC](https://forum.ansible.com/t/integrate-maven-repository-api-aether-into-ansible/17763/1 "2015-03-17T10:34:05Z")

</div>

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
